mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-16 22:39:48 +00:00
be careful with nd->inode in path_init() and follow_dotdot_rcu()
commit 4023bfc9f3 upstream.
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.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
This commit is contained in:
parent
52dafa6920
commit
3ff4c0b892
1 changed files with 13 additions and 2 deletions
15
fs/namei.c
15
fs/namei.c
Loading…
Add table
Add a link
Reference in a new issue