From: Jeff Layton <jlayton@kernel.org>
To: Trond Myklebust <trondmy@kernel.org>,
Anna Schumaker <anna@kernel.org>, Chuck Lever <cel@kernel.org>,
NeilBrown <neil@brown.name>,
Olga Kornievskaia <okorniev@redhat.com>,
Dai Ngo <Dai.Ngo@oracle.com>, Tom Talpey <tom@talpey.com>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>,
Paolo Abeni <pabeni@redhat.com>, Simon Horman <horms@kernel.org>,
Donald Hunter <donald.hunter@gmail.com>,
Shuah Khan <shuah@kernel.org>
Cc: linux-nfs@vger.kernel.org, linux-kernel@vger.kernel.org,
netdev@vger.kernel.org, linux-kselftest@vger.kernel.org,
Jeff Layton <jlayton@kernel.org>
Subject: [PATCH 0/5] nfsd/sunrpc: allow userland to handle rpcbind registration
Date: Thu, 10 Sep 2026 14:00:33 -0400 [thread overview]
Message-ID: <20260910-nfsd-norpcb-v1-0-b4d5182d634c@kernel.org> (raw)
Consider this series an RFC. While working on the recent hardening
patches for the nfsd listener netlink interface, Chuck mentioned that we
could allow userland to handle rpcbind registation itself.
This adds such a mechanism to the netlink listener set interface. The
main idea is to add a new optional flag to the netlink downcall that
tells the kernel to skip rpcbind registration altogether for the nfsd
listeners.
Note that NLM registration is not affected and is still handled by the
kernel. Handling that is trickier since it can be started by the
client.
Patches to nfsdctl will follow.
Signed-off-by: Jeff Layton <jlayton@kernel.org>
---
Jeff Layton (5):
SUNRPC: allow a service to opt out of rpcbind registration
NFSD: add a userspace-rpcbind flag to listener_set
NFSD: honour the userspace-rpcbind flag in listener_set
NFSD: report registerable programs in the listener_set reply
selftests/nfsd: exercise the userspace-rpcbind listener_set flag
Documentation/netlink/specs/nfsd.yaml | 55 +++-
fs/nfsd/netlink.c | 5 +-
fs/nfsd/nfsctl.c | 162 +++++++++++-
fs/nfsd/nfsd.h | 4 +-
fs/nfsd/nfssvc.c | 67 +++--
include/linux/sunrpc/svc.h | 2 +
include/uapi/linux/nfsd_netlink.h | 20 ++
net/sunrpc/svc.c | 5 +
net/sunrpc/svc_xprt.c | 2 +-
.../testing/selftests/nfsd/nfsd_netlink_listener.c | 284 ++++++++++++++++++++-
10 files changed, 571 insertions(+), 35 deletions(-)
---
base-commit: 5965280c53faff01983ccf89de70a5d48318f035
change-id: 20260903-nfsd-norpcb-21cdcaf246bb
Best regards,
--
Jeff Layton <jlayton@kernel.org>
next reply other threads:[~2026-09-10 18:00 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-10 18:00 Jeff Layton [this message]
2026-09-10 18:00 ` [PATCH 1/5] SUNRPC: allow a service to opt out of rpcbind registration Jeff Layton
2026-09-10 18:00 ` [PATCH 2/5] NFSD: add a userspace-rpcbind flag to listener_set Jeff Layton
2026-09-10 19:43 ` Chuck Lever
2026-09-10 18:00 ` [PATCH 3/5] NFSD: honour the userspace-rpcbind flag in listener_set Jeff Layton
2026-09-10 19:44 ` Chuck Lever
2026-09-10 18:00 ` [PATCH 4/5] NFSD: report registerable programs in the listener_set reply Jeff Layton
2026-09-10 19:46 ` Chuck Lever
2026-09-10 18:00 ` [PATCH 5/5] selftests/nfsd: exercise the userspace-rpcbind listener_set flag Jeff Layton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260910-nfsd-norpcb-v1-0-b4d5182d634c@kernel.org \
--to=jlayton@kernel.org \
--cc=Dai.Ngo@oracle.com \
--cc=anna@kernel.org \
--cc=cel@kernel.org \
--cc=davem@davemloft.net \
--cc=donald.hunter@gmail.com \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=linux-nfs@vger.kernel.org \
--cc=neil@brown.name \
--cc=netdev@vger.kernel.org \
--cc=okorniev@redhat.com \
--cc=pabeni@redhat.com \
--cc=shuah@kernel.org \
--cc=tom@talpey.com \
--cc=trondmy@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).