]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
jbd2: use a per-journal lock_class_key for jbd2_trans_commit_key
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Wed, 22 Oct 2025 11:11:37 +0000 (20:11 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Jan 2026 09:14:16 +0000 (10:14 +0100)
commit22ea3cb34dc92e466fa41d1a3f55ea93ae883534
treed24bf9fbd9f9b3d05b93784f98727801d5fe076a
parent4f6f4e5a33282e36228a54085b9fbcac0f386787
jbd2: use a per-journal lock_class_key for jbd2_trans_commit_key

commit 524c3853831cf4f7e1db579e487c757c3065165c upstream.

syzbot is reporting possibility of deadlock due to sharing lock_class_key
for jbd2_handle across ext4 and ocfs2. But this is a false positive, for
one disk partition can't have two filesystems at the same time.

Reported-by: syzbot+6e493c165d26d6fcbf72@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=6e493c165d26d6fcbf72
Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Tested-by: syzbot+6e493c165d26d6fcbf72@syzkaller.appspotmail.com
Reviewed-by: Jan Kara <jack@suse.cz>
Message-ID: <987110fc-5470-457a-a218-d286a09dd82f@I-love.SAKURA.ne.jp>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/jbd2/journal.c
include/linux/jbd2.h