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)
commit4023bfc9f351a7994fb6a7d515476c320f94a574
tree6d913f5173ec88cbf8277cc25c33b4898b3ef467
parent7bd88377d482e1eae3c5329b12e33cfd664fa6a9
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