Linux/linux 16a34adfs namespace.c

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 at kernel.org
Reported-by: Alexander Aring <aring at mojatatu.com>
Bisected-by: Kirill Tkhai <ktkhai at virtuozzo.com>
Tested-by: Kirill Tkhai <ktkhai at virtuozzo.com>
Tested-by: Alexander Aring <aring at mojatatu.com>
Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
DeltaFile
+2-1fs/namespace.c
+2-11 files

UnifiedSplitRaw