diff options
| author | Jeff Layton <[email protected]> | 2025-04-10 20:42:03 +0000 |
|---|---|---|
| committer | Trond Myklebust <[email protected]> | 2025-04-28 03:25:44 +0000 |
| commit | 6b9785dc8b13d9fb75ceec8cf4ea7ec3f3b1edbc (patch) | |
| tree | 8c6a38f71992c49cc7c83b1f9d7482f4a1326522 /rust/helpers/mutex.c | |
| parent | nfs: handle failure of nfs_get_lock_context in unlock path (diff) | |
| download | kernel-6b9785dc8b13d9fb75ceec8cf4ea7ec3f3b1edbc.tar.gz kernel-6b9785dc8b13d9fb75ceec8cf4ea7ec3f3b1edbc.zip | |
nfs: don't share pNFS DS connections between net namespaces
Currently, different NFS clients can share the same DS connections, even
when they are in different net namespaces. If a containerized client
creates a DS connection, another container can find and use it. When the
first client exits, the connection will close which can lead to stalls
in other clients.
Add a net namespace pointer to struct nfs4_pnfs_ds, and compare those
value to the caller's netns in _data_server_lookup_locked() when
searching for a nfs4_pnfs_ds to match.
Reported-by: Omar Sandoval <[email protected]>
Reported-by: Sargun Dillon <[email protected]>
Closes: https://lore.kernel.org/linux-nfs/Z_ArpQC_vREh_hEA@telecaster/
Tested-by: Sargun Dillon <[email protected]>
Signed-off-by: Jeff Layton <[email protected]>
Reviewed-by: Benjamin Coddington <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Trond Myklebust <[email protected]>
Diffstat (limited to 'rust/helpers/mutex.c')
0 files changed, 0 insertions, 0 deletions
