aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorAl Viro <[email protected]>2025-06-24 14:25:04 +0000
committerAl Viro <[email protected]>2025-06-24 14:25:04 +0000
commit0748e553df0225754c316a92af3a77fdc057b358 (patch)
tree5344ea758d9a9fa9e3464d205e8567fba08c2e11 /net/unix/af_unix.c
parentattach_recursive_mnt(): do not lock the covering tree when sliding something ... (diff)
downloadkernel-0748e553df0225754c316a92af3a77fdc057b358.tar.gz
kernel-0748e553df0225754c316a92af3a77fdc057b358.zip
userns and mnt_idmap leak in open_tree_attr(2)
Once want_mount_setattr() has returned a positive, it does require finish_mount_kattr() to release ->mnt_userns. Failing do_mount_setattr() does not change that. As the result, we can end up leaking userns and possibly mnt_idmap as well. Fixes: c4a16820d901 ("fs: add open_tree_attr()") Reviewed-by: Christian Brauner <[email protected]> Signed-off-by: Al Viro <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions