aboutsummaryrefslogtreecommitdiffstats
path: root/lib/string_helpers.c
diff options
context:
space:
mode:
authorAl Viro <[email protected]>2019-05-09 06:32:28 +0000
committerAl Viro <[email protected]>2019-05-09 06:32:50 +0000
commit05883eee857eab4693e7d13ebab06716475c5754 (patch)
tree686a142254d360a963f010bb573f4db5fb83e7bc /lib/string_helpers.c
parentMerge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next (diff)
downloadkernel-05883eee857eab4693e7d13ebab06716475c5754.tar.gz
kernel-05883eee857eab4693e7d13ebab06716475c5754.zip
do_move_mount(): fix an unsafe use of is_anon_ns()
What triggers it is a race between mount --move and umount -l of the source; we should reject it (the source is parentless *and* not the root of anon namespace at that), but the check for namespace being an anon one is broken in that case - is_anon_ns() needs ns to be non-NULL. Better fixed here than in is_anon_ns(), since the rest of the callers is guaranteed to get a non-NULL argument... Reported-by: [email protected] Signed-off-by: Al Viro <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions