ext4: annotate data race in start_this_handle()
authorJan Kara <jack@suse.cz>
Tue, 6 Apr 2021 16:17:59 +0000 (18:17 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 May 2021 12:47:37 +0000 (14:47 +0200)
commit9aca313726cb657325eeb01ab00142a6572c2175
treef1cc2f0d7c115eb9c2d3e1f14ec12f52b26db639
parenta27aad32175179083e6a05b7c58d047639a1b1c0
ext4: annotate data race in start_this_handle()

commit 3b1833e92baba135923af4a07e73fe6e54be5a2f upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/jbd2/transaction.c