All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] nfsd: close potential race between open and delegation
@ 2022-07-15 18:32 Jeff Layton
  2022-07-15 18:32 ` [PATCH v2 1/2] nfsd: drop fh argument from alloc_init_deleg Jeff Layton
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Jeff Layton @ 2022-07-15 18:32 UTC (permalink / raw)
  To: chuck.lever; +Cc: neilb, linux-nfs

v2:
- use nfsd_lookup_dentry instead of lookup_one_len

Here's a respin of the patches to fix up the potential race between an
open and delegation. I took Neil's advice an changed over to use
nfsd_lookup_dentry.

This patchset is based on top of Neil's recent patchset entitled:

    [PATCH 0/8] NFSD: clean up locking.

Tested with xfstests and it seemed to behave. I haven't done any testing
to ensure that the race is actually fixed, mainly because I don't have a
way to reliably reproduce it.

Jeff Layton (2):
  nfsd: drop fh argument from alloc_init_deleg
  nfsd: vet the opened dentry after setting a delegation

 fs/nfsd/nfs4state.c | 58 ++++++++++++++++++++++++++++++++++++++-------
 1 file changed, 49 insertions(+), 9 deletions(-)

-- 
2.36.1


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

end of thread, other threads:[~2022-07-16  0:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-15 18:32 [PATCH v2 0/2] nfsd: close potential race between open and delegation Jeff Layton
2022-07-15 18:32 ` [PATCH v2 1/2] nfsd: drop fh argument from alloc_init_deleg Jeff Layton
2022-07-15 18:32 ` [PATCH v2 2/2] nfsd: vet the opened dentry after setting a delegation Jeff Layton
2022-07-15 18:42 ` [PATCH v2 0/2] nfsd: close potential race between open and delegation Chuck Lever III
2022-07-16  0:23   ` Jeff Layton

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.