]> git.karo-electronics.de Git - karo-tx-linux.git/commit
vfs: fix race in rcu lookup of pruned dentry
authorLinus Torvalds <torvalds@linux-foundation.org>
Mon, 18 Jul 2011 22:43:29 +0000 (15:43 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 20 Jul 2011 04:49:01 +0000 (21:49 -0700)
commit59430262401bec02d415179c43dbe5b8819c09ce
tree18caba988f1fb650bb804727de06adc73953b2c6
parentfec11dd9a0109fe52fd631e5c510778d6cbff6cc
vfs: fix race in rcu lookup of pruned dentry

Don't update *inode in __follow_mount_rcu() until we'd verified that
there is mountpoint there.  Kudos to Hugh Dickins for catching that
one in the first place and eventually figuring out the solution (and
catching a braino in the earlier version of patch).

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namei.c