Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp410938pxx; Mon, 26 Oct 2020 11:16:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxmmo1L+G0o5Ug9YHWRGIZl1NFLGwxjGC4brrYhqYkyqpvZOsjJMt4MvOU8y/PHvSJ+xJiZ X-Received: by 2002:a17:906:1a57:: with SMTP id j23mr17297550ejf.291.1603736195388; Mon, 26 Oct 2020 11:16:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603736195; cv=none; d=google.com; s=arc-20160816; b=xKUIyQMDG3qnl8Fxigphp8f/cSgQSrVFUvx3nVjQiS2Gmr1MmN8TJzCfDB03pLWEI9 g4kEdyq9WrfPuxEGhqKdnEqIEI9LseN1cRqCYeq2AOZxfLV/Zl5hFfuH3TbbaMqhcFHj wNH0MLQ4pN9QC8EiPVw9c8h5Xj1Vge85TvX3blF2DYpAAB3Ez7HRltOGsfSFZXRCZYsy 3gGSI5Yyzyb1vJ6WMAiaut/Z3ShFu++PEwiFbty2RtG71dY6D5egf04seldPffaf0e6h 3NoTRPb8r1dFvs+ro3sSlzpyUdtMGd7ZkW2fN7CBB+R7Y+8uR5JhrnbHUeMxJ2+HC0PW lOag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=L/1Si+JMj/NmERCCp9NJC1I/7vzwgwWghkSzsOpnQ0E=; b=VaXnStHbMjHZIPFbyJbMeDYtI62jt2+BK+oYBezBOEuNqbZ1rSvLs/66efifF6KBVp BARK2euDx+nFTSERGvJyT5WwZH5N/EIWADl5dWin4gvc/ZpN4Lw+2zoplXF3pudsr8+4 exW9ltynMH/m9XcPc8LjVu8/Tg0H/CGrk3thutqOM2xO3TlecgLio8GF4Rx0dQ5S9Reh Dx7dhTqARacR806NpEuwZsQBiifPGOzCPMehGm87MfmpiTXXctmTFq4xiTRM1jQE/ZQy EwPh0tXgk3CYrtZNnF7mRRv5p71zmkyXx3/KBYA5V+pV0nIMLbYH/evTItlCsHgRKmPG yMew== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=udima.es Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n9si7452221edy.248.2020.10.26.11.15.57; Mon, 26 Oct 2020 11:16:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=udima.es Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1783824AbgJZP1C (ORCPT + 99 others); Mon, 26 Oct 2020 11:27:02 -0400 Received: from etc.inittab.org ([51.254.149.154]:41784 "EHLO etc.inittab.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1783556AbgJZP1C (ORCPT ); Mon, 26 Oct 2020 11:27:02 -0400 Received: from var.inittab.org (249.171.116.91.static.reverse-mundo-r.com [91.116.171.249]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: smtp_auth_agi@correo-e.org) by etc.inittab.org (Postfix) with ESMTPSA id DE3C7A10BA; Mon, 26 Oct 2020 16:26:58 +0100 (CET) Received: by var.inittab.org (Postfix, from userid 1000) id C1664404E9; Mon, 26 Oct 2020 16:26:57 +0100 (CET) Date: Mon, 26 Oct 2020 16:26:57 +0100 From: Alberto Gonzalez Iniesta To: Chuck Lever Cc: Bruce Fields , Linux NFS Mailing List , Miguel Rodriguez , Isaac Marco Blancas Subject: Re: Random IO errors on nfs clients running linux > 4.20 Message-ID: <20201026152657.GP74269@var.inittab.org> References: <20200429171527.GG2531021@var.inittab.org> <20200430173200.GE29491@fieldses.org> <20200909092900.GO189595@var.inittab.org> <20200909134727.GA3894@fieldses.org> <20201026134216.GK74269@var.inittab.org> <40FDCE82-5895-4184-BAB3-AC221326EB34@oracle.com> <20201026144358.GM74269@var.inittab.org> <8A4C335B-446F-4385-BA7C-643911FF9498@oracle.com> <20201026150247.GB2417@fieldses.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Mon, Oct 26, 2020 at 11:06:24AM -0400, Chuck Lever wrote: > > > > On Oct 26, 2020, at 11:02 AM, Bruce Fields wrote: > > > > On Mon, Oct 26, 2020 at 10:46:05AM -0400, Chuck Lever wrote: > >> > >> > >>> On Oct 26, 2020, at 10:43 AM, Alberto Gonzalez Iniesta wrote: > >>> > >>> On Mon, Oct 26, 2020 at 09:58:17AM -0400, Chuck Lever wrote: > >>>>>> So all I notice from this one is the readdir EIO came from call_decode. > >>>>>> I suspect that means it failed in the xdr decoding. Looks like xdr > >>>>>> decoding of the actual directory data (which is the complicated part) is > >>>>>> done later, so this means it failed decoding the header or verifier, > >>>>>> which is a little odd: > >>>>>> > >>>>>>> Sep 8 16:03:23 portatil264 kernel: [15033.016276] RPC: 3284 call_decode result -5 > >>>>>>> Sep 8 16:03:23 portatil264 kernel: [15033.016281] nfs41_sequence_process: Error 1 free the slot > >>>>>>> Sep 8 16:03:23 portatil264 kernel: [15033.016286] RPC: wake_up_first(00000000d3f50f4d "ForeChannel Slot table") > >>>>>>> Sep 8 16:03:23 portatil264 kernel: [15033.016288] nfs4_free_slot: slotid 0 highest_used_slotid 4294967295 > >>>>>>> Sep 8 16:03:23 portatil264 kernel: [15033.016290] RPC: 3284 return 0, status -5 > >>>>>>> Sep 8 16:03:23 portatil264 kernel: [15033.016291] RPC: 3284 release task > >>>>>>> Sep 8 16:03:23 portatil264 kernel: [15033.016295] RPC: freeing buffer of size 4144 at 00000000a3649daf > >>>>>>> Sep 8 16:03:23 portatil264 kernel: [15033.016298] RPC: 3284 release request 0000000079df89b2 > >>>>>>> Sep 8 16:03:23 portatil264 kernel: [15033.016300] RPC: wake_up_first(00000000c5ee49ee "xprt_backlog") > >>>>>>> Sep 8 16:03:23 portatil264 kernel: [15033.016302] RPC: rpc_release_client(00000000b930c343) > >>>>>>> Sep 8 16:03:23 portatil264 kernel: [15033.016304] RPC: 3284 freeing task > >>>>>>> Sep 8 16:03:23 portatil264 kernel: [15033.016309] _nfs4_proc_readdir: returns -5 > >>>>>>> Sep 8 16:03:23 portatil264 kernel: [15033.016318] NFS: readdir(departamentos/innovacion) returns -5 > >>>>> > >>>>> Hi, Bruce et al. > >>>>> > >>>>> Is there anything we can do to help debugging/fixing this? It's still > >>>>> biting our users with a +4.20.x kernel. > >>>> > >>>> Alberto, can you share a snippet of a raw network capture that shows > >>>> the READDIR Reply that fails to decode? > >>> > >>> Hi, Chuck. > >>> > >>> Thanks for your reply. We're using "sec=krb5p", which makes the network > >>> capture useless :-( > >> > >> You can plug keytabs into Wireshark to enable it to decrypt the traffic. > > > > Just skimming that range of history, there's some changes to the > > handling of gss sequence numbers, I wonder if there's a chance he could > > be hitting that? You had a workload that would lead to calls dropping > > out of the sequence number window, didn't you, Chuck? Is there a quick > > way to check whether that's happening? > > The server is supposed to drop the connection when that happens, though > I'm not sure 4.20's NFSD was perfect in that regard. Connection loss in > itself wouldn't result in EIO. In case this is relevant, server is running 3.16.0. Clients (with issues) +4.20. -- Alberto Gonz?lez Iniesta | Universidad a Distancia alberto.gonzalez@udima.es | de Madrid