should_follow_link(): validate ->d_seq after having decided to follow

commit a7f775428b upstream.

... otherwise d_is_symlink() above might have nothing to do with
the inode value we've got.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Al Viro 2016-02-27 19:31:01 -05:00 • committed by Greg Kroah-Hartman
commit 6f4b352f00