aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2023-05-29 14:35:55 +0300
committerChuck Lever <[email protected]>2023-05-31 09:57:14 -0400
commitc034203b6a9dae6751ef4371c18cb77983e30c28 (patch)
treeac499da052b4a58091c2eb857fdbdeb58ca7f692 /lib/mpi/mpi-sub-ui.c
parentd53d70084d27f56bcdf5074328f2c9ec861be596 (diff)
nfsd: fix double fget() bug in __write_ports_addfd()
The bug here is that you cannot rely on getting the same socket from multiple calls to fget() because userspace can influence that. This is a kind of double fetch bug. The fix is to delete the svc_alien_sock() function and instead do the checking inside the svc_addsock() function. Fixes: 3064639423c4 ("nfsd: check passed socket's net matches NFSd superblock's one") Signed-off-by: Dan Carpenter <[email protected]> Reviewed-by: NeilBrown <[email protected]> Reviewed-by: Jeff Layton <[email protected]> Signed-off-by: Chuck Lever <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions