get rid of unprotected dereferencing of mnt->mnt_ns
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 23 Feb 2013 03:45:42 +0000 (22:45 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 23 Feb 2013 04:31:05 +0000 (23:31 -0500)
It's safe only under namespace_sem or vfsmount_lock; all places
in fs/namespace.c that want mnt->mnt_ns->user_ns actually want to use
current->nsproxy->mnt_ns->user_ns (note the calls of check_mnt() in
there).

Cc: stable@vger.kernel.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

No differences found