]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: annotate data race in start_this_handle()
authorJan Kara <jack@suse.cz>
Tue, 6 Apr 2021 16:17:59 +0000 (18:17 +0200)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 10 Apr 2021 01:19:32 +0000 (21:19 -0400)
commit67c022b37d61a7bbf73df821d872db2032287a8b
tree1217f69aa4503b53d733a74f20536cada00608a4
parent1b6f19603723cfadc68615e2ef1e3f729ffe78a0
ext4: annotate data race in start_this_handle()

Access to journal->j_running_transaction is not protected by appropriate
lock and thus is racy. We are well aware of that and the code handles
the race properly. Just add a comment and data_race() annotation.

Cc: stable@kernel.org
Reported-by: syzbot+30774a6acf6a2cf6d535@syzkaller.appspotmail.com
Signed-off-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20210406161804.20150-1-jack@suse.cz
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/jbd2/transaction.c