syzbot


KCSAN: data-race in start_this_handle / start_this_handle

Status: fixed on 2021/11/10 00:50
Subsystems: ext4
[Documentation on labels]
Reported-by: syzbot+30774a6acf6a2cf6d535@syzkaller.appspotmail.com
Fix commit: 3b1833e92bab ext4: annotate data race in start_this_handle()
First crash: 1400d, last: 1362d
Discussions (5)
Title Replies (including bot) Last reply
[PATCH 5.10 000/299] 5.10.36-rc1 review 323 (323) 2021/05/28 16:59
[PATCH 5.11 000/342] 5.11.20-rc1 review 354 (354) 2021/05/12 06:38
[PATCH 5.12 000/384] 5.12.3-rc1 review 395 (395) 2021/05/11 21:07
[PATCH 0/2] ext4: Annotate two harmless KCSAN data races 5 (5) 2021/04/10 01:24
[syzbot] KCSAN: data-race in start_this_handle / start_this_handle 7 (8) 2021/03/19 17:23

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

write to 0xffff88814462b070 of 8 bytes by task 26818 on cpu 1:
 jbd2_get_transaction fs/jbd2/transaction.c:125 [inline]
 start_this_handle+0xceb/0x1010 fs/jbd2/transaction.c:400
 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
 ovl_write_iter+0x62f/0x8f0 fs/overlayfs/file.c:358
 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:1319 [inline]
 __se_sys_sendfile64 fs/read_write.c:1311 [inline]
 __x64_sys_sendfile64+0xa9/0x130 fs/read_write.c:1311
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88814462b070 of 8 bytes by task 26835 on cpu 0:
 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_new_inode+0xc6c/0x2fe0 fs/ext4/ialloc.c:1077
 ext4_symlink+0x2d1/0x780 fs/ext4/namei.c:3347
 vfs_symlink+0xbe/0x170 fs/namei.c:4176
 do_symlinkat+0x11e/0x2b0 fs/namei.c:4206
 __do_sys_symlink fs/namei.c:4227 [inline]
 __se_sys_symlink fs/namei.c:4225 [inline]
 __x64_sys_symlink+0x32/0x40 fs/namei.c:4225
 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: 0 PID: 26835 Comm: syz-executor.5 Not tainted 5.12.0-rc2-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (54):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/03/12 10:44 upstream f78d76e72a46 429d8a6b .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in start_this_handle / start_this_handle
2021/03/11 21:15 upstream 28806e4d9b97 429d8a6b .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in start_this_handle / start_this_handle
2021/03/11 05:11 upstream a74e6a014c9d c2ca1f2a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in start_this_handle / start_this_handle
2021/03/10 16:38 upstream 05a59d79793d 764067f3 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in start_this_handle / start_this_handle
2021/03/10 06:47 upstream 05a59d79793d 26967e35 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in start_this_handle / start_this_handle
2021/03/09 17:20 upstream 144c79ef3353 26967e35 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in start_this_handle / start_this_handle
2021/03/07 23:36 upstream 144c79ef3353 09fbf400 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in start_this_handle / start_this_handle
2021/03/07 08:36 upstream a38fd8748464 c599ed12 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in start_this_handle / start_this_handle
2021/03/06 07:25 upstream a38fd8748464 e4b4d570 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in start_this_handle / start_this_handle
2021/03/05 18:17 upstream 280d542f6ffa 4a024a9b .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in start_this_handle / start_this_handle
2021/03/05 04:01 upstream cee407c5cc42 f89ed068 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in start_this_handle / start_this_handle
2021/03/04 14:38 upstream f69d02e37a85 d7e4e604 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in start_this_handle / start_this_handle
2021/03/03 23:54 upstream f69d02e37a85 06ed56cd .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in start_this_handle / start_this_handle
2021/02/24 06:44 upstream c03c21ba6f4e fcc6d71b .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in start_this_handle / start_this_handle
2021/02/23 17:36 upstream 3b9cdafb5358 fcc6d71b .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in start_this_handle / start_this_handle
2021/02/23 10:01 upstream b12b47249688 fcc6d71b .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in start_this_handle / start_this_handle
2021/02/22 16:57 upstream 31caf8b2a847 c26fb06b .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in start_this_handle / start_this_handle
2021/02/21 18:48 upstream 55f62bc87347 a659b3f1 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in start_this_handle / start_this_handle
2021/02/21 04:50 upstream e767b3530acb 3e5ed8b4 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in start_this_handle / start_this_handle
2021/02/21 04:49 upstream e767b3530acb 3e5ed8b4 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in start_this_handle / start_this_handle
2021/02/20 10:23 upstream f40ddce88593 3e5ed8b4 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in start_this_handle / start_this_handle
2021/02/19 15:50 upstream f40ddce88593 f689d40a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in start_this_handle / start_this_handle
2021/02/17 19:34 upstream f40ddce88593 14052202 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in start_this_handle / start_this_handle
2021/02/17 06:59 upstream f40ddce88593 052f8d9f .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in start_this_handle / start_this_handle
2021/02/15 01:45 upstream f40ddce88593 98682e5e .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in start_this_handle / start_this_handle
2021/02/14 12:06 upstream 358feceebbf6 98682e5e .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in start_this_handle / start_this_handle
2021/02/13 22:28 upstream ac30d8ce28d6 98682e5e .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in start_this_handle / start_this_handle
2021/02/13 09:10 upstream c6d8570e4d64 98682e5e .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in start_this_handle / start_this_handle
2021/02/12 19:39 upstream dcc0b49040c7 98682e5e .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in start_this_handle / start_this_handle
2021/02/12 07:44 upstream dcc0b49040c7 a5f86b15 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in start_this_handle / start_this_handle
2021/02/11 18:14 upstream 291009f656e8 a5f86b15 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in start_this_handle / start_this_handle
2021/02/10 21:59 upstream 291009f656e8 a52ee10a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in start_this_handle / start_this_handle
2021/02/10 08:20 upstream e0756cfc7d7c 9c8b8541 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in start_this_handle / start_this_handle
2021/02/08 21:45 upstream e0756cfc7d7c 2bd9619f .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in start_this_handle / start_this_handle
2021/02/08 11:54 upstream 92bf22614b21 2ce644fc .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in start_this_handle / start_this_handle
2021/02/08 11:53 upstream 92bf22614b21 2ce644fc .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in start_this_handle / start_this_handle
2021/02/07 22:06 upstream b75dba7f472c 2ce644fc .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in start_this_handle / start_this_handle
2021/02/07 08:35 upstream 825b5991a46e 2ce644fc .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in start_this_handle / start_this_handle
2021/02/07 08:33 upstream 825b5991a46e 2ce644fc .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in start_this_handle / start_this_handle
2021/02/06 23:37 upstream 964d069f93c4 0655e081 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in start_this_handle / start_this_handle
2021/02/06 14:44 upstream 1e0d27fce010 0655e081 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in start_this_handle / start_this_handle
2021/02/06 14:43 upstream 1e0d27fce010 0655e081 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in start_this_handle / start_this_handle
2021/02/06 12:32 upstream 1e0d27fce010 0655e081 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in start_this_handle / start_this_handle
2021/02/06 12:32 upstream 1e0d27fce010 0655e081 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in start_this_handle / start_this_handle
2021/02/06 12:31 upstream 1e0d27fce010 0655e081 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in start_this_handle / start_this_handle
2021/02/06 03:15 upstream 1e0d27fce010 23a562df .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in start_this_handle / start_this_handle
2021/02/05 13:23 upstream dd86e7fa07a3 23a562df .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in start_this_handle / start_this_handle
2021/02/05 01:52 upstream 5c279c4cf206 23a562df .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in start_this_handle / start_this_handle
2021/02/05 01:51 upstream 5c279c4cf206 23a562df .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in start_this_handle / start_this_handle
2021/02/04 10:49 upstream 61556703b610 42b90a7c .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in start_this_handle / start_this_handle
2021/02/03 20:53 upstream 3afe9076a7c1 624dad51 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in start_this_handle / start_this_handle
2021/02/02 23:34 upstream 3aaf0a27ffc2 624dad51 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in start_this_handle / start_this_handle
* Struck through repros no longer work on HEAD.