]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit16a34adb9392b2fe4195267475ab5b472e55292c
tree5766d9f28563c58dde9077501d23d7319dfcdd98
parent8e04944f0ea8b838399049bdcda920ab36ae3b04
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