aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorAl Viro <[email protected]>2011-03-18 12:29:36 +0000
committerAl Viro <[email protected]>2011-03-18 12:54:59 +0000
commit27cb1572e3e6bb1f8cf6bb3d74c914a87b131792 (patch)
tree01e6510de480d3595ccff315d777770490e51f9c /net/unix/af_unix.c
parentvfs: split off vfsmount-related parts of vfs_kern_mount() (diff)
downloadkernel-27cb1572e3e6bb1f8cf6bb3d74c914a87b131792.tar.gz
kernel-27cb1572e3e6bb1f8cf6bb3d74c914a87b131792.zip
fix deadlock in pivot_root()
Don't hold vfsmount_lock over the loop traversing ->mnt_parent; do check_mnt(new.mnt) under namespace_sem instead; combined with namespace_sem held over all that code it'll guarantee the stability of ->mnt_parent chain all the way to the root. Doing check_mnt() outside of namespace_sem in case of pivot_root() is wrong anyway. Signed-off-by: Al Viro <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions