Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp7937918rwr; Wed, 10 May 2023 15:09:13 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4FBqwYn3E280cWgxeUFgq0zaqaCDBbmr8zfMWoJW1pUut7+lbfVFZYTaBleQMhzXxF4iMP X-Received: by 2002:a05:6a21:78a9:b0:102:a593:a158 with SMTP id bf41-20020a056a2178a900b00102a593a158mr4707939pzc.47.1683756552867; Wed, 10 May 2023 15:09:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683756552; cv=none; d=google.com; s=arc-20160816; b=iFIIsOIKRO+6AJ7ip85JK4gl+FqkbIkNXseVBzzl+As/pn8T5q9J5DWIURJxTHbU7J fiTAFq78hK0URtWyoAFjVKI71cSHmVAKWBAk7eZdeK9YHOYPHAmpDaYB1wql44X8Zu4o YQSIuX6kcUjHwJ9rxLhHxh3520+CvqEMkL3euBBCkr8X31jSoP4UsgxZmzy+PCx679sr hd0ujdJpE5R9xvX8NUSn8iQExQBzn+COn3wEcsrap/H2yzMIdiZTUd5QVpgreOwo4s74 6+ZGLLWrgBuGi48Lz0XqAPvitO15yux3aA4dNTt1zXuJKhHJy1fZrPnId9w/Wt2TjTBq Lghg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:message-id:date:cc:to:from:subject:dkim-signature :dkim-signature; bh=Fgj92GNXnWn6vyGg4Se7Z7jElWjro1mKUqstrauxKp8=; b=NjlXLw+lRdB9V5DWR/GfiH/kt3EFRf09ZtQLNfHJMPfYnJ8grUgOxePvJfwEji8LHY XhrwwEKDr2A2xzo4qSDHOhnLHhmh8t13cHWaHlbzdfk78XegU6XBy0FTWmZPuhLzEMxF /A/TzxRCdn76B9nvh5DlNtM7YPGklAvrt/gFP0/KNUZsbR2bM1ORDbNFqd1shDCWgCFh pulZejyrgFi7CJ2CUQ1kaiukqE+XixMt3R12n/3lmNusPL7UxDwszK7MK4f2z/5Zzzm1 gEgaS16OxW5YRY12fL+J+m0WTAuIjm2tpqg+VEH/kaIjDMgaEZFnKkJ8AcwBy6buVwAK 5XHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=uKJy+zl8; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; 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 d2-20020a633602000000b0050bfa82c23bsi4728557pga.230.2023.05.10.15.08.53; Wed, 10 May 2023 15:09:12 -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=uKJy+zl8; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; 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 S236396AbjEJWII (ORCPT + 99 others); Wed, 10 May 2023 18:08:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236339AbjEJWID (ORCPT ); Wed, 10 May 2023 18:08:03 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6289E3A92 for ; Wed, 10 May 2023 15:07:59 -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 13F3121923; Wed, 10 May 2023 22:07:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1683756478; 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; bh=Fgj92GNXnWn6vyGg4Se7Z7jElWjro1mKUqstrauxKp8=; b=uKJy+zl8UBVaXKE8RQaakKdOrLZRcUzi3Z4gfLFHn/0vrKpVNs5+lC2R5wrjXM8Ch3KX0u riwkvyr6jz+7bV14Wyr/HN7NELF7Xby7qXpU4QKElEQEnVBx7qgqlagzqTYEwRwtEoAiQB gSrTEhecDe/6Q6gHmVDewD5u5ZwWtt4= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1683756478; 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; bh=Fgj92GNXnWn6vyGg4Se7Z7jElWjro1mKUqstrauxKp8=; b=gF7YW/xPMst0h1hMqZoX7IYuQYx73e23V8wqgHuGSWTrYz7KEUqx7z/6cYfBPbK/j+AF5v P8bumXRTjky3RyDg== 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 EAA6413519; Wed, 10 May 2023 22:07:55 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id h69QJ7sVXGTcBAAAMHmgww (envelope-from ); Wed, 10 May 2023 22:07:55 +0000 Subject: [PATCH 0/2] Support abstract address for rpcbind in kernel From: NeilBrown To: Jeff Layton , Trond Myklebust Cc: linux-nfs@vger.kernel.org, Petr Vorel , Nikita Yushchenko , Steve Dickson Date: Thu, 11 May 2023 08:06:24 +1000 Message-ID: <168375610447.26246.3237443941479930060.stgit@noble.brown> User-Agent: StGit/1.5 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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,URIBL_BLOCKED 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 These two patches cause the SUNRPC layer in Linux to attempt to contact rpcbind using an AF_UNIX socket with an abstract address before the existing attempts of AF_UNIX to a socket in the filesystem, and IP to a well known port. This allows the benefits of an AF_UNIX connection combined with the benefits of honouring the network namespace when connection rpcbind. For this to be useful, rpcbind must listed on that name, and user-space tools must also connect to the same address. This requires changes to rpcbind and too libtirpc. libtirpc currently has a bug which causes sockets bountd to abstract addresses to appear to be unbound, so asking systemd to pass rpcbind an abstract socket doesn't work - rpcbind rejects it. Patches for rpcbind and libtirpc will follow. NeilBrown --- NeilBrown (2): SUNRPC: support abstract unix socket addresses SUNRPC: attempt to reach rpcbind with an abstract socket name net/sunrpc/clnt.c | 8 ++++++-- net/sunrpc/rpcb_clnt.c | 39 +++++++++++++++++++++++++++++++-------- net/sunrpc/xprtsock.c | 9 +++++++-- 3 files changed, 44 insertions(+), 12 deletions(-) -- Signature