Commit 32a995d6 authored by Theodore Ts'o's avatar Theodore Ts'o Committed by openeuler-sync-bot
Browse files

ext4: set lockdep subclass for the ea_inode in ext4_xattr_inode_cache_find()

stable inclusion
from stable-v5.10.183
commit 6f4fa43757bbf2cc97751545a4a428a5abc6ec5f
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8IRR2

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=6f4fa43757bbf2cc97751545a4a428a5abc6ec5f



--------------------------------

commit b928dfdc upstream.

If the ea_inode has been pushed out of the inode cache while there is
still a reference in the mb_cache, the lockdep subclass will not be
set on the inode, which can lead to some lockdep false positives.

Fixes: 33d201e0 ("ext4: fix lockdep warning about recursive inode locking")
Cc: stable@kernel.org
Reported-by: default avatar <syzbot+d4b971e744b1f5439336@syzkaller.appspotmail.com>
Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
Link: https://lore.kernel.org/r/20230524034951.779531-3-tytso@mit.edu


Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
(cherry picked from commit 2f477b81)
parent 654b3c1e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment