]> git.baikalelectronics.ru Git - kernel.git/commit
Don't leak MNT_INTERNAL away from internal mounts
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 20 Apr 2018 02:03:08 +0000 (22:03 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 20 Apr 2018 03:52:15 +0000 (23:52 -0400)
commit7ab6e10ad9ad3afc9278bd82057b0764923fe2e4
tree5766d9f28563c58dde9077501d23d7319dfcdd98
parentec760dadc99521e064587f0763597d516cf30cc7
Don't leak MNT_INTERNAL away from internal mounts

We want it only for the stuff created by SB_KERNMOUNT mounts, *not* for
their copies.  As it is, creating a deep stack of bindings of /proc/*/ns/*
somewhere in a new namespace and exiting yields a stack overflow.

Cc: stable@kernel.org
Reported-by: Alexander Aring <aring@mojatatu.com>
Bisected-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Tested-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Tested-by: Alexander Aring <aring@mojatatu.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namespace.c