]> git.baikalelectronics.ru Git - kernel.git/commit
fs: fix dropping of rcu-walk from force_reval_path
authorNick Piggin <npiggin@kernel.dk>
Fri, 14 Jan 2011 02:36:19 +0000 (02:36 +0000)
committerNick Piggin <npiggin@hera.kernel.org>
Fri, 14 Jan 2011 02:36:19 +0000 (02:36 +0000)
commit4bd1b167d273db10245b7c9aeb6320dce121397f
tree446772602e5944075a6c614db05dd06681f3f3d8
parentfe39ec701b3c27b4e9715d94fc638e2d25fe5ea5
fs: fix dropping of rcu-walk from force_reval_path

As J. R. Okajima noted, force_reval_path passes in the same dentry to
d_revalidate as the one in the nameidata structure (other callers pass in a
child), so the locking breaks. This can oops with a chrooted nfs mount, for
example. Similarly there can be other problems with revalidating a dentry
which is already in nameidata of the path walk.

Signed-off-by: Nick Piggin <npiggin@kernel.dk>
fs/namei.c