Skip to content

nfsd: fix use-after-free oops in v4.0 (and some other minor cleanups)

Jeff Layton linux-nfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3nfsd: return correct openowner when there is a race to put one in the hashfs/nfsd/nfs4state.c+1 -15 replies
2/3nfsd: remove bogus setting of status in nfsd4_process_open2fs/nfsd/nfs4state.c+0 -11 reply
3/3nfsd: remove unused status arg to nfsd4_cleanup_open_statefs/nfsd/nfs4proc.c fs/nfsd/nfs4state.c fs/nfsd/xdr4.h+3 -31 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchJeff LaytonChristoph Hellwig
1/3A-b R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] nfsd: fix use-after-free oops in v4.0 (and some other minor cleanups)

Hi Bruce,

After staring at this code for a _long_ time, I think I've finally found the source of the use-after-free oops that HCH spotted. The first patch in this series should fix that. The other two patches are just cleanups that I generated while staring at the code.

The first one obviously needs to go into v4.0 (and stable) ASAP. The other two can wait for v4.1.

Jeff Layton (3):
nfsd: return correct openowner when there is a race to put one in the
hash
nfsd: remove bogus setting of status in nfsd4_process_open2
nfsd: remove unused status arg to nfsd4_cleanup_open_state

 fs/nfsd/nfs4proc.c  | 2 +-
 fs/nfsd/nfs4state.c | 5 ++---
 fs/nfsd/xdr4.h      | 2 +-
 3 files changed, 4 insertions(+), 5 deletions(-)
Signature · 1 line
2.1.0