]> git.karo-electronics.de Git - linux-beck.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)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 26 Mar 2016 20:15:42 +0000 (16:15 -0400)
commit3d43bcfef5f0548845a425365011c499875491b0
treed2d0be7090b3e17401a70788e93a2668866c831b
parentc0a37d48788475d0a2cf4fbfaa28559a9de612fc
ext4 crypto: use dget_parent() in ext4_d_revalidate()

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>
Cc: stable@vger.kernel.org
fs/ext4/crypto.c