syzbot


KCSAN: data-race in jbd2_journal_commit_transaction / start_this_handle

Status: auto-closed as invalid on 2021/05/17 11:26
Subsystems: ext4
[Documentation on labels]
First crash: 1455d, last: 1425d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in jbd2_journal_commit_transaction / start_this_handle

write to 0xffff888144531870 of 8 bytes by task 4812 on cpu 0:
 jbd2_journal_commit_transaction+0x7b2/0x3290 fs/jbd2/commit.c:579
 kjournald2+0x263/0x480 fs/jbd2/journal.c:213
 kthread+0x20b/0x230 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294

read to 0xffff888144531870 of 8 bytes by task 10252 on cpu 1:
 start_this_handle+0x1c1/0x1010 fs/jbd2/transaction.c:352
 jbd2__journal_start+0x1fc/0x3f0 fs/jbd2/transaction.c:503
 __ext4_journal_start_sb+0x159/0x310 fs/ext4/ext4_jbd2.c:105
 __ext4_journal_start fs/ext4/ext4_jbd2.h:320 [inline]
 ext4_da_write_begin+0x460/0xaf0 fs/ext4/inode.c:2998
 generic_perform_write+0x196/0x3a0 mm/filemap.c:3575
 ext4_buffered_write_iter+0x2e5/0x3e0 fs/ext4/file.c:269
 ext4_file_write_iter+0x48a/0x10b0 fs/ext4/file.c:502
 call_write_iter include/linux/fs.h:1977 [inline]
 do_iter_readv_writev+0x2cb/0x360 fs/read_write.c:740
 do_iter_write+0x112/0x4c0 fs/read_write.c:866
 vfs_iter_write+0x4c/0x70 fs/read_write.c:907
 iter_file_splice_write+0x40a/0x750 fs/splice.c:689
 do_splice_from fs/splice.c:767 [inline]
 direct_splice_actor+0x80/0xa0 fs/splice.c:936
 splice_direct_to_actor+0x345/0x650 fs/splice.c:891
 do_splice_direct+0xf5/0x170 fs/splice.c:979
 do_sendfile+0x7a6/0xe20 fs/read_write.c:1260
 __do_sys_sendfile64 fs/read_write.c:1325 [inline]
 __se_sys_sendfile64 fs/read_write.c:1311 [inline]
 __x64_sys_sendfile64+0xf2/0x130 fs/read_write.c:1311
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 10252 Comm: syz-executor.4 Not tainted 5.12.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (7):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/03/04 20:37 upstream cee407c5cc42 f89ed068 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_commit_transaction / start_this_handle
2021/02/24 05:51 upstream c03c21ba6f4e fcc6d71b .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_commit_transaction / start_this_handle
2021/02/13 09:03 upstream c6d8570e4d64 98682e5e .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_commit_transaction / start_this_handle
2021/02/11 18:11 upstream 291009f656e8 a5f86b15 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_commit_transaction / start_this_handle
2021/02/08 21:23 upstream e0756cfc7d7c 2bd9619f .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_commit_transaction / start_this_handle
2021/02/07 08:31 upstream 825b5991a46e 2ce644fc .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_commit_transaction / start_this_handle
2021/02/02 22:47 upstream 3aaf0a27ffc2 624dad51 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in jbd2_journal_commit_transaction / start_this_handle
* Struck through repros no longer work on HEAD.