From: Dominik Maier <dmnk@google.com>
To: Chuck Lever <cel@kernel.org>, Jeff Layton <jlayton@kernel.org>
Cc: NeilBrown <neil@brown.name>,
Olga Kornievskaia <okorniev@redhat.com>,
Dai Ngo <Dai.Ngo@oracle.com>, Tom Talpey <tom@talpey.com>,
linux-nfs@vger.kernel.org, dmnk+artist@google.com
Subject: [PATCH v2 0/2] nfsd: enforce search permission on directory delegations without breaking stat()
Date: Tue, 24 Nov 2026 18:06:04 +0000 [thread overview]
Message-ID: <20261124180606.73719-1-dmnk@google.com> (raw)
Enforce NFSD_MAY_EXEC (and limit NFSD_MAY_OWNER_OVERRIDE to S_IFREG) when
acquiring directory delegations, preceded by returning GDD4_UNAVAIL on
nfsd_file_acquire_dir() failure so Linux NFS clients issuing
PUTFH + GET_DIR_DELEGATION + GETATTR do not fail stat() with EACCES on
directories lacking read or search permission.
Changes in v2:
- Add patch 1/2 returning NFS4_OK with GDD4_UNAVAIL when
nfsd_file_acquire_dir() fails (Chuck Lever).
- Add Jeff Layton's Reviewed-by on patch 2/2, keep the single root
Fixes: 544a0ee152f0 tag, and drop the commit-body tool boilerplate.
- v1: https://lore.kernel.org/linux-nfs/20261119192318.2689409-1-dmnk@google.com/
Patch 2/2 was found with AI-assisted code review and reproduced against
an unmodified kernel in QEMU; the v2 series is based on nfsd-testing.
Dominik Maier (2):
nfsd: return GDD4_UNAVAIL when nfsd_file_acquire_dir() fails
nfsd: require NFSD_MAY_EXEC when acquiring directory delegations
fs/nfsd/filecache.c | 10 ++++++----
fs/nfsd/nfs4proc.c | 6 ++++--
2 files changed, 10 insertions(+), 6 deletions(-)
--
2.56.1.831.g720f3f5937-goog
next reply other threads:[~2026-11-24 18:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 18:06 Dominik Maier [this message]
2026-11-24 18:06 ` [PATCH v2 1/2] nfsd: return GDD4_UNAVAIL when nfsd_file_acquire_dir() fails Dominik Maier
2026-11-24 19:45 ` Chuck Lever
2026-11-24 18:06 ` [PATCH v2 2/2] nfsd: require NFSD_MAY_EXEC when acquiring directory delegations Dominik Maier
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=20261124180606.73719-1-dmnk@google.com \
--to=dmnk@google.com \
--cc=Dai.Ngo@oracle.com \
--cc=cel@kernel.org \
--cc=dmnk+artist@google.com \
--cc=jlayton@kernel.org \
--cc=linux-nfs@vger.kernel.org \
--cc=neil@brown.name \
--cc=okorniev@redhat.com \
--cc=tom@talpey.com \
/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