diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2025-06-24 10:25:04 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2025-06-24 10:25:04 -0400 |
commit | 0748e553df0225754c316a92af3a77fdc057b358 (patch) | |
tree | 5344ea758d9a9fa9e3464d205e8567fba08c2e11 /scripts/lib/kdoc/kdoc_parser.py | |
parent | ce7df19686530920f2f6b636e71ce5eb1d9303ef (diff) |
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 <brauner@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_parser.py')
0 files changed, 0 insertions, 0 deletions