Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d16c842e authored by Theodore Ts'o's avatar Theodore Ts'o Committed by Eric Biggers
Browse files

UPSTREAM: 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: default avatarAl Viro <viro@ZenIV.linux.org.uk>
Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 41948f88a521b95e8abc793602015a6d45f52a06)
Change-Id: Icea8f440a708274ecfa12d0c2a392b6aa3cc22c4
Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
parent fa9d8ddc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment