All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] nfsd: enforce search permission on directory delegations without breaking stat()
@ 2026-11-24 18:06 Dominik Maier
  2026-11-24 18:06 ` [PATCH v2 1/2] nfsd: return GDD4_UNAVAIL when nfsd_file_acquire_dir() fails Dominik Maier
  2026-11-24 18:06 ` [PATCH v2 2/2] nfsd: require NFSD_MAY_EXEC when acquiring directory delegations Dominik Maier
  0 siblings, 2 replies; 5+ messages in thread
From: Dominik Maier @ 2026-11-24 18:06 UTC (permalink / raw)
  To: Chuck Lever, Jeff Layton
  Cc: NeilBrown, Olga Kornievskaia, Dai Ngo, Tom Talpey, linux-nfs,
	dmnk+artist

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-11-24 20:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-24 18:06 [PATCH v2 0/2] nfsd: enforce search permission on directory delegations without breaking stat() Dominik Maier
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 20:02   ` Jeff Layton
2026-11-24 18:06 ` [PATCH v2 2/2] nfsd: require NFSD_MAY_EXEC when acquiring directory delegations Dominik Maier

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.