diff options
| author | Trond Myklebust <[email protected]> | 2025-04-21 18:43:34 +0000 |
|---|---|---|
| committer | Trond Myklebust <[email protected]> | 2025-04-28 16:50:50 +0000 |
| commit | fa7ab64f1e2fdc8f2603aab8e0dd20de89cb10d9 (patch) | |
| tree | 6a0f74b5d8c5cab8c8a2c9f95a67922a536620d4 /rust/helpers/mutex.c | |
| parent | nfs: nfs3acl: drop useless assignment in nfs3_get_acl() (diff) | |
| download | kernel-fa7ab64f1e2fdc8f2603aab8e0dd20de89cb10d9.tar.gz kernel-fa7ab64f1e2fdc8f2603aab8e0dd20de89cb10d9.zip | |
NFS/localio: Fix a race in nfs_local_open_fh()
Once the clp->cl_uuid.lock has been dropped, another CPU could come in
and free the struct nfsd_file that was just added. To prevent that from
happening, take the RCU read lock before dropping the spin lock.
Fixes: 86e00412254a ("nfs: cache all open LOCALIO nfsd_file(s) in client")
Signed-off-by: Trond Myklebust <[email protected]>
Reviewed-by: Mike Snitzer <[email protected]>
Diffstat (limited to 'rust/helpers/mutex.c')
0 files changed, 0 insertions, 0 deletions
