]> git.baikalelectronics.ru Git - kernel.git/commit
be careful with nd->inode in path_init() and follow_dotdot_rcu()
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 14 Sep 2014 01:59:43 +0000 (21:59 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 14 Sep 2014 18:24:47 +0000 (14:24 -0400)
commit62b59f5a3483f93b504feb68990af60f92d9043b
tree6d913f5173ec88cbf8277cc25c33b4898b3ef467
parent74a0f81697e836ce4bd580272951db55061d12c1
be careful with nd->inode in path_init() and follow_dotdot_rcu()

in the former we simply check if dentry is still valid after picking
its ->d_inode; in the latter we fetch ->d_inode in the same places
where we fetch dentry and its ->d_seq, under the same checks.

Cc: stable@vger.kernel.org # 2.6.38+
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namei.c