OSDN Git Service

ext4 crypto: use dget_parent() in ext4_d_revalidate()
authorTheodore Ts'o <tytso@mit.edu>
Mon, 12 Sep 2016 07:43:52 +0000 (10:43 +0300)
committerGerrit - the friendly Code Review server <code-review@localhost>
Mon, 12 Sep 2016 08:06:21 +0000 (01:06 -0700)
commit63004e80c8c6915f04b039f65598347e4b9859f0
tree9f0c57a60dc8c2e33280eaa87eea790be3dcbbab
parent4dfa31b4af7e936832f657b18fd9f64eb26ed09d
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.

Change-Id: I28a1f87f236ca97ce28e876265075f1d3bcdca6a
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
Git-commit: 3d43bcfef5f0548845a425365011c499875491b0
Git-repo: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git
Signed-off-by: Andrey Markovytch <andreym@codeaurora.org>
fs/ext4/crypto.c