]> git.baikalelectronics.ru Git - kernel.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)
commit7c7b8f2019be13522d7bb9221b860e9eb34bc024
treed2d0be7090b3e17401a70788e93a2668866c831b
parentc3c64e629aae4414b30c39576fd3a4f1067703aa
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: 3ccf39f83e25
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