]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Feb 2013 13:38:35 +0000 (05:38 -0800)
commita21a1cac2e5b85560412e6ef0666fed5dbe02d21
tree122609f5adbc8f88d773041e05e6a42d38541aeb
parent0f4b4029531a0595a40832b3635b57073bc873dc
get rid of unprotected dereferencing of mnt->mnt_ns

commit 9b40bc90abd126bcc5da5658059b8e72e285e559 upstream.

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).

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/namespace.c