Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp7408616rwr; Tue, 2 May 2023 14:23:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4NCc8B6mhy4d6mP+xEEpEyiHbxoXkPyzSeX7JUcDXcLYQj/0wxVnQzHbR8Tgohjywupg5r X-Received: by 2002:a05:6a20:938c:b0:f2:afd5:e52e with SMTP id x12-20020a056a20938c00b000f2afd5e52emr23879885pzh.33.1683062597840; Tue, 02 May 2023 14:23:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683062597; cv=none; d=google.com; s=arc-20160816; b=QGi/U3mxauehQxkrpnwEp4YPW5oklGxTz3QMp/DH4IfEIU53RQp1jVY5YyHpiIItWz s1PhZ32jvZLM0jdygLGx1U7pzy6iHSh3QcEz8DasQQgFBpFtGPgUM5uxAP32oQ+9Jz3d 7/YIz8myEU8R1tsSNMCsYNqAZTnHjoOTEavCd+RVY2ECqurpXpVvpHNtpL4tO6kJSzju qpFUj6i3Ld0uhVB6JE9a0W1HIgjcwO/XMktGYjig8LoF5DMv/Sd5XDIhj/6XPp9/M8l2 sBDn1Iz9v1IHJKSKkPOiM1nQ9M2PHe3tponWnOXAKGedDk3QTo2XRswKfrgTRdq7PJOY Pb7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:references:in-reply-to:subject :cc:to:from:mime-version:content-transfer-encoding:dkim-signature :dkim-signature; bh=yqHcT1BHJ1MgKwU0Y2ccjvWhxGEz0csoNFyVUCd7Rgo=; b=K1rQKLwSVmf0WkoRvV2udy2Gi/qyN4A14r6Zbq+WcMWYNO64WmNaX1SDJ8T7cVBKYX kQTmIZ2K3X8HicWM2/UrWF53usztwU+z61OGdd/njM6gmUOx87BWSa0KOsMFcPun+Kt0 Ynd53qyMenUr0nsR+N19rpiUbr/tTGhTPiM6VlTH1kOERILntXfH67AezjSVmmW/p1Lp EUK/rJXEVUs53zydIGQXRwBJA1zkN9d4DJanX0BRnXiq9W0QdSF0LmhNbIAbsfIeu3vQ rAXY1PPCrfMQfSVSca3zUDQBZIzZfrapltCtVxHmDx5fByM7aquFCDiam3wjnQSGuIcn He8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=fSKstwd8; dkim=neutral (no key) header.i=@suse.de; 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=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e125-20020a636983000000b00524f00fee68si27658132pgc.372.2023.05.02.14.22.47; Tue, 02 May 2023 14:23:17 -0700 (PDT) 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=@suse.de header.s=susede2_rsa header.b=fSKstwd8; dkim=neutral (no key) header.i=@suse.de; 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=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229818AbjEBVVs (ORCPT + 99 others); Tue, 2 May 2023 17:21:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229559AbjEBVVr (ORCPT ); Tue, 2 May 2023 17:21:47 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D28A10EF for ; Tue, 2 May 2023 14:21:46 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id EC07921E58; Tue, 2 May 2023 21:21:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1683062504; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=yqHcT1BHJ1MgKwU0Y2ccjvWhxGEz0csoNFyVUCd7Rgo=; b=fSKstwd87A67VkAGyxp24wYQCch5LWg1sRddawQ7q9mLq+98nIvoxFb8F3U7uugQc1RDOV VLBcsXFuO2LFKcYSU02uMrvfTP7lWPDAi1RoUjmzuCrbMrtj/kQ+pr/oUcixm7rOdJ7irS qr9M3b+Ds4ci3vscjA8XBaCcccoi2xU= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1683062504; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=yqHcT1BHJ1MgKwU0Y2ccjvWhxGEz0csoNFyVUCd7Rgo=; b=RqzhBgbzu8/ejpzKV9hWkYaDlJhWKFobTkMikUPW3DgJyjaVv3K4G/4Eaf9f/AxpT9/6sw fi9iOKFpsK7YvdDw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 2F6CF139C3; Tue, 2 May 2023 21:21:42 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id hXLpNeZ+UWStRwAAMHmgww (envelope-from ); Tue, 02 May 2023 21:21:42 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 From: "NeilBrown" To: "Jeff Layton" Cc: "Petr Vorel" , ltp@lists.linux.it, "Cyril Hrubis" , linux-nfs@vger.kernel.org Subject: Re: [PATCH 1/1] nfslock01.sh: Don't test on NFS v3 on TCP In-reply-to: References: <20230502075921.3614794-1-pvorel@suse.cz>, Date: Wed, 03 May 2023 07:21:36 +1000 Message-id: <168306249608.19756.8898498995753159325@noble.neil.brown.name> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 Tue, 02 May 2023, Jeff Layton wrote: > On Tue, 2023-05-02 at 09:59 +0200, Petr Vorel wrote: > > > > Although there is suggestion, how to fix the problem in kernel [2]: > > > > > Maybe rpcb_create_local() shall detect that it is not in root > > > netns, and only try AF_INET connection to > localhost in that case. > > > > That would be simple and might be sensible. IF changing the AF_UNIX > > path to "/run/rpcbind.sock" isn't sufficient, then testing for the > > root_ns is probably the best second option. > > > > Was it determined that changing the location of the socket wasn't > sufficient to fix this? FWIW, My Fedora 38 machine seems to listen on > that socket already: > > [Socket] > ListenStream=/run/rpcbind.sock I think the best solution for this problem is to change the kernel to first try to send to an abstract socket: "\0/run/rpcbind.sock". Only if that fails do we try "/run/rpcbind.sock". We also change rpcbind to listen on both ListenStream=@/run/rpcbind.sock ListenStream=/run/rpcbind.sock Abstract sockets are local to a network namespace, while non-abstract Unix domain sockets are local to a file and so can only be local to a mount namespace. We clearly need rpcbind lookup from the kernel to be netns-local, so abstract is the obvious choice. NeilBrown