summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>2025-10-22 20:11:37 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-01-11 15:21:56 +0100
commit815327958ec41b0a2df2a50a01578d5cc8f36ae4 (patch)
tree3495adc8aa291525b4ed1a60a4629635ad0e8d8e /include/linux
parent79a0e4d3fbef7c8ca3fd5e5b5c00d79cd399cd46 (diff)
downloadlinux-815327958ec41b0a2df2a50a01578d5cc8f36ae4.tar.gz
linux-815327958ec41b0a2df2a50a01578d5cc8f36ae4.tar.bz2
linux-815327958ec41b0a2df2a50a01578d5cc8f36ae4.zip
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>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/jbd2.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/jbd2.h b/include/linux/jbd2.h
index f0bc9aa5aed3..7dad9b761cbc 100644
--- a/include/linux/jbd2.h
+++ b/include/linux/jbd2.h
@@ -1266,6 +1266,12 @@ struct journal_s
*/
struct lockdep_map j_trans_commit_map;
#endif
+ /**
+ * @jbd2_trans_commit_key:
+ *
+ * "struct lock_class_key" for @j_trans_commit_map
+ */
+ struct lock_class_key jbd2_trans_commit_key;
/**
* @j_fc_cleanup_callback: