]> git.hungrycats.org Git - linux/commit
[PATCH] proc_check_root() locking fix
authorAndrew Morton <akpm@osdl.org>
Wed, 4 Feb 2004 02:48:48 +0000 (18:48 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Wed, 4 Feb 2004 02:48:48 +0000 (18:48 -0800)
commit541f40bda2743d5c6aef0ebeb09c6c89e5fcf37a
treeb85ae7228f638d2f8d18bf23641bd7ca4e8eb7ec
parentb5a660eee1899a0ed48ea925e94ab5985a8c03f4
[PATCH] proc_check_root() locking fix

From: Maneesh Soni <maneesh@in.ibm.com>

The patch fixes locking in proc_check_root().  It brings is_subdir() call
under vfsmount_lock.  Holding vfsmount_lock will ensure mnt_mountpoint
dentry is intact and the dentry does not go away while it is being checked
in is_subdir().
fs/proc/base.c