Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1222775ybl; Tue, 13 Aug 2019 09:11:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqzOIYjfpP4b43bI3mvs40ZMvjX97gYvrTkOlMdSCboL2nk+OGtla1rKQ/vPucUbGKL3iMkP X-Received: by 2002:a17:902:b48c:: with SMTP id y12mr37987272plr.202.1565712690456; Tue, 13 Aug 2019 09:11:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565712690; cv=none; d=google.com; s=arc-20160816; b=rTJXxv1fg8EVYCdfnUhbz7LPORe0ffTYZF6268UypiIZ8TVjzjM2IhnyU9N5KCXvwj eXQ0HC/avNMmaX+ZCFjenAZ+ky1qrjB3yZigGY83tckTp9f3mdKuLrnRE+PnofFmu9Xe 6zYR8e0C5Zup+1BwmP1nKWvFabNG5c2wCKJPxBhh/OKQsfY8Ce+L1NP/5hfAevSCIk8N RzCDVSEDn2I/rILfowijyC8sX9bd01NbL00A4PJ8Pt9nBrbsoT1KRGVNjVIg2cJTdV7l NU185YN8cFL1ddfJdq6q7dusjzHucjsUuzxAasDl9hBNbzZCSJpHh9UFC9ON1kR/N5XQ BfMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id:date :subject:to:from; bh=o0nBdSCSQeCpjfI59A0EVkMkSBKerAs1UO5GCdaMLQs=; b=jiiapyCN5eerByQUJ3nzkwkhQprG9q1sqeFYrH0f6czkGvbK7xLp22tprQg6PpzFmB NKCZLkg3ImLIr3tQSQMvSzxPT+27Zg+55jjQyaqIdnyLl5e3MzXkA7OT8CO8t/YglZng KFkbKSyqK8MwGSGIuf93iGU0km7WfxOu6g48PQaxx/ETpezg3oQQ4nbWr5FQ92Zur+bg ZvRtzE2sQFz16biIkgVxW2QFqVCD86p3DwyKS5M++sTgyQ1fx2/2SVNN9vJtt+GP+El2 pZM0d5GWLFIyRPQ7wD9to9OGSHTdSrzObtfa+QElm28QVrR50kLQVEafTdSUO5aHGpGT /EQQ== 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 h186si67093550pge.110.2019.08.13.09.11.06; Tue, 13 Aug 2019 09:11:30 -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 S1728327AbfHMQF2 (ORCPT + 99 others); Tue, 13 Aug 2019 12:05:28 -0400 Received: from mx1.math.uh.edu ([129.7.128.32]:50814 "EHLO mx1.math.uh.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728321AbfHMQF1 (ORCPT ); Tue, 13 Aug 2019 12:05:27 -0400 X-Greylist: delayed 3391 seconds by postgrey-1.27 at vger.kernel.org; Tue, 13 Aug 2019 12:05:27 EDT Received: from epithumia.math.uh.edu ([129.7.128.2]) by mx1.math.uh.edu with esmtp (Exim 4.92) (envelope-from ) id 1hxYPv-0000RG-LW for linux-nfs@vger.kernel.org; Tue, 13 Aug 2019 10:08:56 -0500 Received: by epithumia.math.uh.edu (Postfix, from userid 7225) id 91176801554; Tue, 13 Aug 2019 10:08:55 -0500 (CDT) From: Jason L Tibbitts III To: linux-nfs@vger.kernel.org Subject: Regression in 5.1.20: Reading long directory fails Date: Tue, 13 Aug 2019 10:08:55 -0500 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.9 (--) Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org A user reported to me that they couldn't see the entirety of their home directory. And indeed: [root@ld00 ~]# ls -l ~dblecher|wc -l ls: reading directory '/home/dblecher': Input/output error 1844 [root@ld00 ~]# cat /proc/version Linux version 5.1.20-300.fc30.x86_64 (mockbuild@bkernel04.phx2.fedoraproject.org) (gcc version 9.1.1 20190503 (Red Hat 9.1.1-1) (GCC)) #1 SMP Fri Jul 26 15:03:11 UTC 2019 Mount options are: nfs4 rw,relatime,vers=4.2,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=krb5i The server is running CentOS 7 (kernel 3.10.0-957.12.2.el7.x86_64). The problem does not appear in 5.1.19 and all 7657 entries in that directory are returned. Looking at the 5.1.20 changelog I see a few NFS-related changes but commit 3536b79ba75ba44b9ac1a9f1634f2e833bbb735c: Revert "NFS: readdirplus optimization by cache mechanism" (memleak) stands out; I'm working on building a kernel with the revert reverted. Note that this doesn't happen on any directory with lots of files; I've only managed to see it on this particular user's overly large home directory. So I can trivially reproduce it but I don't know how anyone else could. I'm happy to collect any debugging data that might be needed. - J<