Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5019710pxb; Sun, 13 Feb 2022 05:07:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJzT8msMr7stzoHGU5TDGplb0nAsNkToS0MEadXWgv0/VzZeqUengCiJIhaYiqkfsLgEyA5W X-Received: by 2002:a17:907:2d8d:: with SMTP id gt13mr7909087ejc.583.1644757630452; Sun, 13 Feb 2022 05:07:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644757630; cv=none; d=google.com; s=arc-20160816; b=BMyBeVkP1VxtrDVNofpfzJwLrtncUwoIhshNb0tCyHq8Am0z3dhSgWkXr9nx7UmP4R bCtd+TXpHM/X18xDq6WE5R87ZwHTxIgz5Qq7Z7BAxqacE3yX3RbdELP3uxoUdPV37prw pIfTVLirqo+DpnR4j5i7ZzDc5RIOxSzCmHqU2DyDx/PRnyo3kR+RJaOeyqaHbuehrpfg JNr93AzvT6jIv0bDN2JHptxyIY7Mkljn5q4V2QEOywUTcVl8Ju5n8qb1wTcALkvXYtKE yVHIzMBxGFlJjQmWeNkYmGArPfR3Ej4QG+qir3ojwK3mbCHhXGEtaPimBss1U0tRLaGY bQJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:subject :from:references:cc:to:content-language:user-agent:mime-version:date :message-id; bh=K3cUaoV//BGpdiBV9Al2ERW4MQp3phavH3xpFYvs6Es=; b=n/Sfi0PfxDQm4xidp1wZx9VL5cT4+dtkaxomi7WIBMg3Ht0RB//RRH7anTHSv7VQEl g4uIZc0Vpck8DseiIsnxOI7e1Mn5tcWh3zKjw+e/t4qgS04IO5yP6c7sCcQ2+1JG3Nlt KdQZAEAdOfvqerKEQrD4e+jCOiE3yo1WszMR+UQ5ROXjQ3XhAYy0C/2QyK/PekhQT6Xr vkWhPHrnRju5W3lKDASAorBXOdaWAuLK+LqVvS+DAptOUyYlScGtvf5u9SFd5khGl2bs HtIpW5x+cM1gkfBSEbCA3Yl6KSbAHz3ftkVkM/TQIJc/h4NE5HYFZj1mLoj0VBjveUZx 0wuQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l7si24714254edb.336.2022.02.13.05.06.32; Sun, 13 Feb 2022 05:07:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233008AbiBKLkO (ORCPT + 99 others); Fri, 11 Feb 2022 06:40:14 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:53074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232547AbiBKLkN (ORCPT ); Fri, 11 Feb 2022 06:40:13 -0500 Received: from wp530.webpack.hosteurope.de (wp530.webpack.hosteurope.de [IPv6:2a01:488:42:1000:50ed:8234::]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72728E9B for ; Fri, 11 Feb 2022 03:40:10 -0800 (PST) Received: from ip4d144895.dynamic.kabel-deutschland.de ([77.20.72.149] helo=[192.168.66.200]); authenticated by wp530.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) id 1nIUHY-0000YI-63; Fri, 11 Feb 2022 12:40:08 +0100 Message-ID: Date: Fri, 11 Feb 2022 12:40:07 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Content-Language: en-BS To: Paul Menzel , Trond Myklebust Cc: linux-nfs@vger.kernel.org, it+linux-nfs@molgen.mpg.de, Anna Schumaker , regressions@lists.linux.dev References: <20220208183823.1391397-1-trondmy@kernel.org> <82dffa3e-1b14-e590-aaf6-f9f8570e616c@molgen.mpg.de> From: Thorsten Leemhuis Subject: Re: [PATCH] NFS: LOOKUP_DIRECTORY is also ok with symlinks In-Reply-To: <82dffa3e-1b14-e590-aaf6-f9f8570e616c@molgen.mpg.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-bounce-key: webpack.hosteurope.de;linux@leemhuis.info;1644579610;a36ff182; X-HE-SMSGID: 1nIUHY-0000YI-63 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On 11.02.22 11:55, Paul Menzel wrote: > #regzbot monitor: > https://lore.kernel.org/linux-nfs/20220208183823.1391397-1-trondmy@kernel.org/ Thx for trying, but that failed (as is unneeded, see below): regzbot can't determine which of the tracked regression might be meant here, so it can't associate it with your report. > Am 09.02.22 um 23:02 schrieb Paul Menzel: > >> Am 08.02.22 um 19:38 schrieb trondmy@kernel.org: >>> From: Trond Myklebust >>> >>> Commit ac795161c936 (NFSv4: Handle case where the lookup of a directory >>> fails) [1], part of Linux since 5.17-rc2, introduced a regression, where >>> a symbolic link on an NFS mount to a directory on another NFS does not >>> resolve(?) the first time it is accessed: >>> >>> Reported-by: Paul Menzel >>> Fixes: ac795161c936 ("NFSv4: Handle case where the lookup of a >>> directory fails") >>> Signed-off-by: Trond Myklebust >> >> Thank you for fixing it so quickly. My colleague verified, that it >> fixes our issue. >> >> Tested-by: Donald Buczek > > Also for regzbot: > > Link: > https://lore.kernel.org/linux-nfs/0235e04a-18aa-ccbf-f520-38a2d55e8b54@molgen.mpg.de/ Hmmm, regzbot from this could in theory be modified to determine which regression was meant, but right now regzbot processes commands sequentially, so in this order it wouldn't work anyway. But there is a bigger problem: that link points to a reply to your report, not the report. I guess I can modify regzbot to handle such cases, but I have more pressing issue right now, sorry. But I'll keep it in mind. The right link tag one would have been: Link: https://lore.kernel.org/r/bd2075f0-2343-5bfa-83bf-0e916303727d@molgen.mpg.de/ (s!/r/!/linux-nfs/! would have worked for regzbot as well) Trond, can you please add this tag to your patch in case you respin it, as explained, as explained in 'Documentation/process/submitting-patches.rst' and 'Documentation/process/5.Posting.rst'. BTW, paul: Regzbot will monitor every subthread with a proper link tag (like I gave above), so there is no need for a "#regzbot monitor" in anyway if developers would just place the tags as the documentation states. Ciao, Thorsten >>> --- >>>   fs/nfs/dir.c | 4 ++-- >>>   1 file changed, 2 insertions(+), 2 deletions(-) >>> >>> diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c >>> index e128503728f2..6dee4e12d381 100644 >>> --- a/fs/nfs/dir.c >>> +++ b/fs/nfs/dir.c >>> @@ -2051,14 +2051,14 @@ int nfs_atomic_open(struct inode *dir, struct >>> dentry *dentry, >>>       if (!res) { >>>           inode = d_inode(dentry); >>>           if ((lookup_flags & LOOKUP_DIRECTORY) && inode && >>> -            !S_ISDIR(inode->i_mode)) >>> +            !(S_ISDIR(inode->i_mode) || S_ISLNK(inode->i_mode))) >>>               res = ERR_PTR(-ENOTDIR); >>>           else if (inode && S_ISREG(inode->i_mode)) >>>               res = ERR_PTR(-EOPENSTALE); >>>       } else if (!IS_ERR(res)) { >>>           inode = d_inode(res); >>>           if ((lookup_flags & LOOKUP_DIRECTORY) && inode && >>> -            !S_ISDIR(inode->i_mode)) { >>> +            !(S_ISDIR(inode->i_mode) || S_ISLNK(inode->i_mode))) { >>>               dput(res); >>>               res = ERR_PTR(-ENOTDIR); >>>           } else if (inode && S_ISREG(inode->i_mode)) { > >