aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/git-resolve.sh
diff options
context:
space:
mode:
authorNeilBrown <[email protected]>2025-07-18 01:26:14 +0000
committerChuck Lever <[email protected]>2025-08-05 14:31:33 +0000
commite5a73150776f18547ee685c9f6bfafe549714899 (patch)
tree30b3f5023fa45d27c9ffeb2d2c1bb5e78f22d4c9 /scripts/git-resolve.sh
parentnfsd: don't set the ctime on delegated atime updates (diff)
downloadkernel-e5a73150776f18547ee685c9f6bfafe549714899.tar.gz
kernel-e5a73150776f18547ee685c9f6bfafe549714899.zip
nfsd: avoid ref leak in nfsd_open_local_fh()
If two calls to nfsd_open_local_fh() race and both successfully call nfsd_file_acquire_local(), they will both get an extra reference to the net to accompany the file reference stored in *pnf. One of them will fail to store (using xchg()) the file reference in *pnf and will drop that reference but WON'T drop the accompanying reference to the net. This leak means that when the nfs server is shut down it will hang in nfsd_shutdown_net() waiting for &nn->nfsd_net_free_done. This patch adds the missing nfsd_net_put(). Reported-by: Mike Snitzer <[email protected]> Fixes: e6f7e1487ab5 ("nfs_localio: simplify interface to nfsd for getting nfsd_file") Cc: [email protected] Signed-off-by: NeilBrown <[email protected]> Tested-by: Mike Snitzer <[email protected]> Reviewed-by: Mike Snitzer <[email protected]> Reviewed-by: Jeff Layton <[email protected]> Signed-off-by: Chuck Lever <[email protected]>
Diffstat (limited to 'scripts/git-resolve.sh')
0 files changed, 0 insertions, 0 deletions