]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ext4 crypto: use dget_parent() in ext4_d_revalidate()
authorTheodore Ts'o <tytso@mit.edu>
Sat, 26 Mar 2016 20:15:42 +0000 (16:15 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Apr 2016 06:45:24 +0000 (15:45 +0900)
commit022cb9388d1cad67f97d18e4e79047aa402aa6bb
tree30423c2009a794f2c5c59564cbdf972f61a2f558
parent385e5edc295f7feeef00c64f2f5c14b3530940ef
ext4 crypto: use dget_parent() in ext4_d_revalidate()

commit 3d43bcfef5f0548845a425365011c499875491b0 upstream.

This avoids potential problems caused by a race where the inode gets
renamed out from its parent directory and the parent directory is
deleted while ext4_d_revalidate() is running.

Fixes: 28b4c263961c
Reported-by: Al Viro <viro@ZenIV.linux.org.uk>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/crypto.c