syzbot


KCSAN: data-race in blk_mq_do_dispatch_sched / blk_mq_request_bypass_insert
Status: moderation: reported on 2020/12/07 11:25
Reported-by: syzbot+cbd503fe55400f0ef6f1@syzkaller.appspotmail.com
First crash: 694d, last: 5d08h

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

write to 0xffff88810297ea10 of 8 bytes by task 41 on cpu 1:
 __list_add include/linux/list.h:72 [inline]
 list_add include/linux/list.h:88 [inline]
 blk_mq_request_bypass_insert+0x6a/0x140 block/blk-mq.c:2359
 blk_mq_sched_insert_request+0xfd/0x220 block/blk-mq-sched.c:441
 blk_mq_requeue_work+0x39b/0x400 block/blk-mq.c:1312
 process_one_work+0x3d3/0x720 kernel/workqueue.c:2289
 worker_thread+0x618/0xa70 kernel/workqueue.c:2436
 kthread+0x1a9/0x1e0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30

read to 0xffff88810297ea10 of 8 bytes by task 15991 on cpu 0:
 list_empty_careful include/linux/list.h:329 [inline]
 __blk_mq_do_dispatch_sched block/blk-mq-sched.c:112 [inline]
 blk_mq_do_dispatch_sched+0x187/0x780 block/blk-mq-sched.c:187
 __blk_mq_sched_dispatch_requests+0x1ca/0x270
 blk_mq_sched_dispatch_requests+0x8f/0xf0 block/blk-mq-sched.c:339
 __blk_mq_run_hw_queue+0x7e/0x100 block/blk-mq.c:1974
 __blk_mq_delay_run_hw_queue+0x194/0x390 block/blk-mq.c:2051
 blk_mq_run_hw_queue+0x180/0x310 block/blk-mq.c:2102
 blk_mq_sched_insert_requests+0x1cb/0x2a0 block/blk-mq-sched.c:493
 blk_mq_dispatch_plug_list+0x1e9/0x2c0 block/blk-mq.c:2597
 blk_mq_flush_plug_list+0x2ea/0x340 block/blk-mq.c:2639
 __blk_flush_plug+0x25a/0x2b0 block/blk-core.c:1240
 blk_finish_plug+0x44/0x60 block/blk-core.c:1264
 ext4_writepages+0x14a1/0x1970 fs/ext4/inode.c:2855
 do_writepages+0x1db/0x350 mm/page-writeback.c:2352
 filemap_fdatawrite_wbc+0xd6/0xf0 mm/filemap.c:388
 __filemap_fdatawrite_range mm/filemap.c:421 [inline]
 file_write_and_wait_range+0xd6/0x170 mm/filemap.c:779
 ext4_sync_file+0xad/0x560 fs/ext4/fsync.c:151
 vfs_fsync_range+0x107/0x120 fs/sync.c:188
 generic_write_sync include/linux/fs.h:2732 [inline]
 ext4_buffered_write_iter+0x23f/0x280 fs/ext4/file.c:277
 ext4_file_write_iter+0x211/0xdf0
 do_iter_readv_writev+0x27b/0x300
 do_iter_write+0x16f/0x5c0 fs/read_write.c:852
 vfs_iter_write+0x4c/0x70 fs/read_write.c:893
 iter_file_splice_write+0x44a/0x7c0 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/0x660 fs/splice.c:891
 do_splice_direct+0xfb/0x180 fs/splice.c:979
 do_sendfile+0x3ad/0x900 fs/read_write.c:1246
 __do_sys_sendfile64 fs/read_write.c:1305 [inline]
 __se_sys_sendfile64 fs/read_write.c:1297 [inline]
 __x64_sys_sendfile64+0xb9/0x150 fs/read_write.c:1297
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0xffff88810297ea08 -> 0xffff888103094848

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 15991 Comm: syz-executor.0 Tainted: G        W         5.18.0-rc7-syzkaller-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================
syz-executor.0 (15991) used greatest stack depth: 9864 bytes left

Crashes (181):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/05/16 03:36 upstream 42226c989789 744a39e2 .config log report info KCSAN: data-race in blk_mq_do_dispatch_sched / blk_mq_request_bypass_insert
ci2-upstream-kcsan-gce 2022/05/08 00:42 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in blk_mq_do_dispatch_sched / blk_mq_request_bypass_insert
ci2-upstream-kcsan-gce 2022/05/07 21:16 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in blk_mq_do_dispatch_sched / blk_mq_request_bypass_insert
ci2-upstream-kcsan-gce 2022/05/02 08:17 upstream 672c0c517342 2df221f6 .config log report info KCSAN: data-race in blk_mq_do_dispatch_sched / blk_mq_request_bypass_insert
ci2-upstream-kcsan-gce 2022/04/30 08:51 upstream 8013d1d3d2e3 ad6b95d8 .config log report info KCSAN: data-race in blk_mq_do_dispatch_sched / blk_mq_request_bypass_insert
ci2-upstream-kcsan-gce 2022/04/23 08:16 upstream c00c5e1d157b 131df97d .config log report info KCSAN: data-race in blk_mq_do_dispatch_sched / blk_mq_request_bypass_insert
ci2-upstream-kcsan-gce 2022/04/18 01:11 upstream a2c29ccd9477 8bcc32a6 .config log report info KCSAN: data-race in blk_mq_do_dispatch_sched / blk_mq_request_bypass_insert
ci2-upstream-kcsan-gce 2022/04/16 16:03 upstream 59250f8a7f3a 8bcc32a6 .config log report info KCSAN: data-race in blk_mq_do_dispatch_sched / blk_mq_request_bypass_insert
ci2-upstream-kcsan-gce 2022/04/14 14:38 upstream a19944809fe9 b17b2923 .config log report info KCSAN: data-race in blk_mq_do_dispatch_sched / blk_mq_request_bypass_insert
ci2-upstream-kcsan-gce 2022/04/06 18:45 upstream 3e732ebf7316 97582466 .config log report info KCSAN: data-race in blk_mq_do_dispatch_sched / blk_mq_request_bypass_insert
ci2-upstream-kcsan-gce 2022/04/03 16:39 upstream be2d3ecedd99 79a2a8fc .config log report info KCSAN: data-race in blk_mq_do_dispatch_sched / blk_mq_request_bypass_insert
ci2-upstream-kcsan-gce 2022/03/30 11:58 upstream d888c83fcec7 42718dd6 .config log report info KCSAN: data-race in blk_mq_do_dispatch_sched / blk_mq_request_bypass_insert
ci2-upstream-kcsan-gce 2022/03/29 17:04 upstream 1930a6e739c4 6bdac766 .config log report info KCSAN: data-race in blk_mq_do_dispatch_sched / blk_mq_request_bypass_insert
ci2-upstream-kcsan-gce 2022/03/29 02:11 upstream ae085d7f9365 6bdac766 .config log report info KCSAN: data-race in blk_mq_do_dispatch_sched / blk_mq_request_bypass_insert
ci2-upstream-kcsan-gce 2022/03/27 04:24 upstream bddac7c1e02b 89bc8608 .config log report info KCSAN: data-race in blk_mq_do_dispatch_sched / blk_mq_request_bypass_insert
ci2-upstream-kcsan-gce 2022/03/23 09:43 upstream 3bf03b9a0839 5ff41e94 .config log report info KCSAN: data-race in blk_mq_do_dispatch_sched / blk_mq_request_bypass_insert
ci2-upstream-kcsan-gce 2022/03/12 09:06 upstream 68453767131a 9e8eaa75 .config log report info KCSAN: data-race in blk_mq_do_dispatch_sched / blk_mq_request_bypass_insert
ci2-upstream-kcsan-gce 2022/03/04 17:35 upstream 38f80f42147f 45a13a73 .config log report info KCSAN: data-race in blk_mq_do_dispatch_sched / blk_mq_request_bypass_insert
ci2-upstream-kcsan-gce 2022/03/03 05:29 upstream 92ebf5f91b4d 45a13a73 .config log report info KCSAN: data-race in blk_mq_do_dispatch_sched / blk_mq_request_bypass_insert
ci2-upstream-kcsan-gce 2022/03/01 15:15 upstream 719fce7539cd 45a13a73 .config log report info KCSAN: data-race in blk_mq_do_dispatch_sched / blk_mq_request_bypass_insert
ci2-upstream-kcsan-gce 2022/02/27 10:42 upstream 2293be58d6a1 45a13a73 .config log report info KCSAN: data-race in blk_mq_do_dispatch_sched / blk_mq_request_bypass_insert
ci2-upstream-kcsan-gce 2022/02/25 15:28 upstream 53ab78cd6d5a 7c337266 .config log report info KCSAN: data-race in blk_mq_do_dispatch_sched / blk_mq_request_bypass_insert
ci2-upstream-kcsan-gce 2022/02/14 15:52 upstream 754e0b0e3560 8b9ca619 .config log report info KCSAN: data-race in blk_mq_do_dispatch_sched / blk_mq_request_bypass_insert
ci2-upstream-kcsan-gce 2022/01/30 20:52 upstream 8dd71685dcb7 495e00c5 .config log report info KCSAN: data-race in blk_mq_do_dispatch_sched / blk_mq_request_bypass_insert
ci2-upstream-kcsan-gce 2022/01/27 16:10 upstream 626b2dda7651 64a8e201 .config log report info KCSAN: data-race in blk_mq_do_dispatch_sched / blk_mq_request_bypass_insert
ci2-upstream-kcsan-gce 2022/01/27 00:07 upstream 0280e3c58f92 2cbffd88 .config log report info KCSAN: data-race in blk_mq_do_dispatch_sched / blk_mq_request_bypass_insert
ci2-upstream-kcsan-gce 2022/01/23 16:26 upstream e783362eb54c 214351e1 .config log report info KCSAN: data-race in blk_mq_do_dispatch_sched / blk_mq_request_bypass_insert
ci2-upstream-kcsan-gce 2022/01/23 02:51 upstream 1c52283265a4 214351e1 .config log report info KCSAN: data-race in blk_mq_do_dispatch_sched / blk_mq_request_bypass_insert
ci2-upstream-kcsan-gce 2022/01/18 20:25 upstream 99613159ad74 731a2d23 .config log report info KCSAN: data-race in blk_mq_do_dispatch_sched / blk_mq_request_bypass_insert
ci2-upstream-kcsan-gce 2022/01/10 10:53 upstream df0cc57e057f 2ca0d385 .config log report info KCSAN: data-race in blk_mq_do_dispatch_sched / blk_mq_request_bypass_insert
ci2-upstream-kcsan-gce 2022/01/09 15:25 upstream 4634129ad9fd 2ca0d385 .config log report info KCSAN: data-race in blk_mq_do_dispatch_sched / blk_mq_request_bypass_insert
ci2-upstream-kcsan-gce 2022/01/08 09:34 upstream d1587f7bfe9a 2ca0d385 .config log report info KCSAN: data-race in blk_mq_do_dispatch_sched / blk_mq_request_bypass_insert
ci2-upstream-kcsan-gce 2021/12/31 12:20 upstream 4f3d93c6eaff 36bd2e48 .config log report info KCSAN: data-race in blk_mq_do_dispatch_sched / blk_mq_request_bypass_insert
ci2-upstream-kcsan-gce 2021/12/23 00:15 upstream bc491fb12513 6caa12e4 .config log report info KCSAN: data-race in blk_mq_do_dispatch_sched / blk_mq_request_bypass_insert
ci2-upstream-kcsan-gce 2021/12/21 09:55 upstream 6e0567b73052 a938f0b8 .config log report info KCSAN: data-race in blk_mq_do_dispatch_sched / blk_mq_request_bypass_insert
ci2-upstream-kcsan-gce 2021/12/18 15:53 upstream 9eaa88c7036e 44068e19 .config log report info KCSAN: data-race in blk_mq_do_dispatch_sched / blk_mq_request_bypass_insert
ci2-upstream-kcsan-gce 2021/12/15 18:47 upstream 5472f14a3742 572bcb40 .config log report info KCSAN: data-race in blk_mq_do_dispatch_sched / blk_mq_request_bypass_insert
ci2-upstream-kcsan-gce 2021/12/15 12:42 upstream 5472f14a3742 f752fb53 .config log report info KCSAN: data-race in blk_mq_do_dispatch_sched / blk_mq_request_bypass_insert
ci2-upstream-kcsan-gce 2021/12/13 17:18 upstream 2585cf9dfaad 0304899b .config log report info KCSAN: data-race in blk_mq_do_dispatch_sched / blk_mq_request_bypass_insert
ci2-upstream-kcsan-gce 2021/12/12 22:13 upstream 90d9fbc16b69 49ca1f59 .config log report info KCSAN: data-race in blk_mq_do_dispatch_sched / blk_mq_request_bypass_insert
ci2-upstream-kcsan-gce 2021/12/02 03:53 upstream 58e1100fdc59 61f86278 .config log report info KCSAN: data-race in blk_mq_do_dispatch_sched / blk_mq_request_bypass_insert
ci2-upstream-kcsan-gce 2021/11/30 23:09 upstream f080815fdb3e 80270552 .config log report info KCSAN: data-race in blk_mq_do_dispatch_sched / blk_mq_request_bypass_insert
ci2-upstream-kcsan-gce 2021/01/17 11:10 upstream 0da0a8a0a0e1 813be542 .config log report info
ci2-upstream-kcsan-gce 2020/12/06 20:03 upstream 8100a58044f8 c521566d .config log report info
ci2-upstream-kcsan-gce 2020/06/25 19:17 upstream 908f7d12d3ba adb7d9e6 .config log report