Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp13155141rwl; Wed, 4 Jan 2023 04:25:55 -0800 (PST) X-Google-Smtp-Source: AMrXdXsb1bVuiZNVyJBMmxOU6mGQS+hzqdU1FATRtE6cGK7SzHm5KDsn0p83obsLyyBstHCcra6e X-Received: by 2002:a17:907:c084:b0:7c1:22a6:818f with SMTP id st4-20020a170907c08400b007c122a6818fmr42380689ejc.25.1672835155637; Wed, 04 Jan 2023 04:25:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672835155; cv=none; d=google.com; s=arc-20160816; b=PbIJyt9vae6AsrJWdUH0R3ovqAIcY9pPydy++z5Ck4gsv9020zpC27yx/RKGaKXqId waAyKfpnGI3CNJK6zsWMR8y+8qSlxVvZKrrYYxe2DB+TqJdTp0Y4yBvOs1+jyfnM24gz MoMgBNzL/9DBjgQ7C887GUyHzzwiD9wNtqS2gUqU5Kg1BthitoukKfcB3CO7ln0UIrGw QSlEUljqgLA9PyXoCWA9eMx6w5TUMQAoxbXYSYbiJh9GG5AajGcTynoQZPWWEykbeTRn Pze1WxEDEncwWEsYMOWc6WQkhBHf08+0BkQ0/YO3n9OUbHTANRM0Ov7S9V6whYO3YZy3 OalQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=KrJHaZcrtdtZLz0v0rR66AyJK+44tqeWq29Eqronq3Q=; b=SeK6H80Sqh5gSxW2TYh1a2XCDAH/dt07nHY6guD7EcJxs1g1aSqJah8REzqscc+LwO BfH3kGqgWxKnMyUtDXyppVyu0B99wuGA7FbPg2ZrcRIFO9w3+klXShypAXPMuhwPVY4p 4KJqysZKCr29GRrjkMVxiPTGwYrdxdbvEd+8KFnpFoJVlDsPh0v1/HtgEa/iGKmCGLdm rbIE3+a23YlJwYrP6bsdFmRQt77OplX5kyKgK3ulptg9+PBuAOCJ9V+dT9Y3n5wWq/xA cUhhbyHlpo4aBnqynI8q6Ki3yAHETtH+xh+EZL/SvU4nEKTYQwZynNUuMu6Vum8gDw5r QzmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KoBaZp5q; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ho18-20020a1709070e9200b0084514612c2asi32299693ejc.609.2023.01.04.04.25.19; Wed, 04 Jan 2023 04:25:55 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KoBaZp5q; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230250AbjADMYD (ORCPT + 99 others); Wed, 4 Jan 2023 07:24:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230200AbjADMYC (ORCPT ); Wed, 4 Jan 2023 07:24:02 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 978F8DC for ; Wed, 4 Jan 2023 04:24:01 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 323896142C for ; Wed, 4 Jan 2023 12:24:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 21E8CC433EF; Wed, 4 Jan 2023 12:24:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672835040; bh=cl8QEa+4LKO/Jvp4GMZ0+G8c9V8uH7Yl2lEg3tdTWa8=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=KoBaZp5qwNqtOZPQJ8q5FEEb0dORSKMLlXdhOranJu3k2EVwekLEVNO0wU3qLzYBF SxsOJNHDIVLAYE2g/w28qwrodwsNuOjIRvoNqGEfpcYaPSTojCCMcuaUwQVV2k3Vib RJDVQl7MVDnrktkpKFTKOKccNeOhTUNbQB9pyHNWSJOSOSOGf+RZ1n3uI51fbUkP0C puNjTfEK3G4ZJwSTAVptVdeKYNfBB2orHBLkkTe2VCBy6oIX9R/S9SXtZjm17If6R2 9jTrViS5UTQvKtkM0kdCmeIIOdet0kWOk3AbXQY994sBM57nlbIaDzjKVeGhdzSJ62 PZ540DIjwnxlQ== Message-ID: Subject: Re: [nfs-utils PATCH] Don't allow junction tests to trigger automounts From: Jeff Layton To: steved@redhat.com Cc: linux-nfs@vger.kernel.org, Chuck Lever , JianHong Yin Date: Wed, 04 Jan 2023 07:23:58 -0500 In-Reply-To: <20221213160104.198237-1-jlayton@kernel.org> References: <20221213160104.198237-1-jlayton@kernel.org> Content-Type: text/plain; charset="ISO-8859-15" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.2 (3.46.2-1.fc37) MIME-Version: 1.0 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 Tue, 2022-12-13 at 11:01 -0500, Jeff Layton wrote: > JianHong reported some strange behavior with automounts on an nfs server > without an explicit pseudoroot. When clients issued a readdir in the > pseudoroot, automounted directories that were not yet mounted would show > up even if they weren't exported, though the clients wouldn't be able to > do anything with them. >=20 > The issue was that triggering the automount on a directory would cause > the mountd upcall to time out, which would cause nfsd to include the > automounted dentry in the readdir response. Eventually, the automount > would work and report that it wasn't exported and subsequent attempts to > access the dentry would (properly) fail. >=20 > We never want mountd to trigger an automount. The kernel should do that > if it wants to use it. Change the junction checks to do an O_PATH open > and use fstatat with AT_NO_AUTOMOUNT. >=20 > Cc: Chuck Lever > Link: https://bugzilla.redhat.com/show_bug.cgi?id=3D2148353 > Reported-by: JianHong Yin > Signed-off-by: Jeff Layton > --- > support/junction/junction.c | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) >=20 Ping? Steve, can you comment on (or merge) this patch? Thanks, --=20 Jeff Layton