Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 3f68e22e authored by Al Viro's avatar Al Viro Committed by Greg Kroah-Hartman
Browse files

Don't leak MNT_INTERNAL away from internal mounts



commit 16a34adb9392b2fe4195267475ab5b472e55292c upstream.

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: default avatarAlexander Aring <aring@mojatatu.com>
Bisected-by: default avatarKirill Tkhai <ktkhai@virtuozzo.com>
Tested-by: default avatarKirill Tkhai <ktkhai@virtuozzo.com>
Tested-by: default avatarAlexander Aring <aring@mojatatu.com>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 463f8459
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment