Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1137288ybe; Fri, 6 Sep 2019 12:25:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqy0dhBW0z97BmN7hwAotPNR3k7nH0nzojwtcV+nWf844icu2fQ/qZSRts2yFyUobfRk7Y+/ X-Received: by 2002:a17:902:547:: with SMTP id 65mr10884146plf.131.1567797936005; Fri, 06 Sep 2019 12:25:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567797935; cv=none; d=google.com; s=arc-20160816; b=JKlaAERvpld7ivwL2+IhhhXuBLQrbZ+uzeOHE+5G1VsF56SrOuTxmEoEKGqhn0uhpu J6IKMyjQENkkp0/+5SJlaaRWu0iKwQGUug1nU0HO0v7ZBxvE9w6cdF80AZ4PrSL/mTdt zRCOa5PV+GgkyU8x+sgx85uWZfkH2ZeKj67VQ5gV6imlqKLkVgUDvXXlQFPIi+cfr0gV 6HI4vTqSmsaziQ8GX5nXXDF0cMLxlWsK9xd4TTz8KPfOcTPMBJGa8WzpNHTJ4eI5IMit 8Rdi4Fo/6Az/I3ZSdpgkwa3m1nlx5VhElpq6Dk5Hx+fkLhF+E/HFbYyPZ177p9fN+fdl PuCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=/VqL110/P0GlzBpzAgIpKwCm0YqcptIm9IzdixdrTto=; b=OAjlwIfoKacdGVF3Js5TnsmLIbObvBbARJ31vRq8dGbmVoAkymxqvJ+maJ47jtgq+M wj68rRMbsBRSiIeJTvfxImR5KTIh8XdMvvmTeJu9MYwqNEbqCnB7alJIjG6Ps1DJgR5p tLiusoiNxCPW9uh3oHNGT7POIeHKZylt9qqk9AV4kEr8PxSMow25d+erFVKKQJBPMPqt kiAvuXvU6JYdzyg6H5pbhWBiiImaMFChRU1r1O4HLjcH9ApYjJ6845DGfldS7LkHt39V Fj+sRAzDlx3QAybD0As/VyESOyc6OStg07aEMbYq2hRn8cJzjDDJJBgjua9wGy0BImUE Vccg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z5si5453373plo.391.2019.09.06.12.25.20; Fri, 06 Sep 2019 12:25:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2394556AbfIFOsi (ORCPT + 99 others); Fri, 6 Sep 2019 10:48:38 -0400 Received: from fieldses.org ([173.255.197.46]:57420 "EHLO fieldses.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730799AbfIFOsi (ORCPT ); Fri, 6 Sep 2019 10:48:38 -0400 Received: by fieldses.org (Postfix, from userid 2815) id C0C951C9D; Fri, 6 Sep 2019 10:48:37 -0400 (EDT) Date: Fri, 6 Sep 2019 10:48:37 -0400 From: "J. Bruce Fields" To: Jason L Tibbitts III Cc: Wolfgang Walter , linux-nfs@vger.kernel.org, km@cm4all.com, linux-kernel@vger.kernel.org Subject: Re: Regression in 5.1.20: Reading long directory fails Message-ID: <20190906144837.GD17204@fieldses.org> References: <4418877.15LTP4gqqJ@stwm.de> <4198657.JbNDGbLXiX@h2o.as.studentenwerk.mhn.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Tue, Sep 03, 2019 at 08:50:39PM -0500, Jason L Tibbitts III wrote: > I asked the XFS folks who mentioned that the issues with 64 bit inodes > are old, constrained to larger filesystems than what I'm using, not an > issue with nfsv4, and not present on anything but 32bit clients with old > userspace. > > In any case, I have been experimenting a bit and somehow the issue seems > to be related to exporting with sec=krb5i:krb5p or sec=krb5i. If I > export with just sec=krb5p, things magically begin to work. That's interesting! We've occasionally had bugs that are rare corner cases in the xdr code--e.g. if the encoded directory data hits some limit at the same time that we reach the end of a page, and the end of the page falls at some offset with respect to the entry we're encoding. Something like switching between krb5i and krb5p could affect the offsets in a way that affected the likelihood of hitting such a case. That's one guess, anyway. > Anyway, I hope this helps to pinpoint the problem. I now have a really > easy way to reproduce this without having to kick people off of the > server, and if the successes aren't just some kind of false positives > then I guess I also have a workaround. I'm still at a loss as to why a > revert of the readdir changes makes any difference at all here. Those readdir changes were client-side, right? Based on that I'd been assuming a client bug, but maybe it'd be worth getting a full packet capture of the readdir reply to make sure it's legit. Looking at it in wireshark should tell us quickly whether it's corrupted somehow. --b.