syzbot


KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests (3)
Status: moderation: reported on 2020/01/10 21:14
Reported-by: syzbot+44f9b37d2de57637dbfd@syzkaller.appspotmail.com
First crash: 918d, last: 7h33m
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests (2) 31 920d 954d 0/22 closed as invalid on 2019/11/19 14:04
upstream KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests 1 956d 956d 0/22 closed as invalid on 2019/10/15 15:50

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

read-write to 0xffff888102abeb58 of 8 bytes by task 2368 on cpu 1:
 blk_mq_sched_dispatch_requests+0x80/0xf0 block/blk-mq-sched.c:333
 __blk_mq_run_hw_queue+0x7e/0x100 block/blk-mq.c:2025
 __blk_mq_delay_run_hw_queue+0x194/0x390 block/blk-mq.c:2102
 blk_mq_run_hw_queue+0x180/0x310 block/blk-mq.c:2153
 blk_mq_sched_insert_requests+0x1cb/0x2a0 block/blk-mq-sched.c:493
 blk_mq_dispatch_plug_list+0x1e9/0x2c0 block/blk-mq.c:2648
 blk_mq_flush_plug_list+0x2ea/0x340 block/blk-mq.c:2690
 __blk_flush_plug+0x25a/0x2b0 block/blk-core.c:1219
 blk_finish_plug+0x44/0x60 block/blk-core.c:1243
 __iomap_dio_rw+0xc6d/0xf50 fs/iomap/direct-io.c:609
 iomap_dio_rw+0x3c/0x80 fs/iomap/direct-io.c:689
 ext4_dio_write_iter fs/ext4/file.c:566 [inline]
 ext4_file_write_iter+0xa51/0x1210 fs/ext4/file.c:677
 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:1311 [inline]
 __se_sys_sendfile64 fs/read_write.c:1297 [inline]
 __x64_sys_sendfile64+0x10c/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+0x46/0xb0

read-write to 0xffff888102abeb58 of 8 bytes by task 9 on cpu 0:
 blk_mq_sched_dispatch_requests+0x80/0xf0 block/blk-mq-sched.c:333
 __blk_mq_run_hw_queue+0x7e/0x100 block/blk-mq.c:2025
 blk_mq_run_work_fn+0x3d/0x50 block/blk-mq.c:2363
 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

value changed: 0x0000000000001138 -> 0x0000000000001139

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 9 Comm: kworker/0:1H Not tainted 5.18.0-syzkaller-10037-g7e284070abe5-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: kblockd blk_mq_run_work_fn
==================================================================

Crashes (2445):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/05/27 08:25 upstream 7e284070abe5 116e7a7b .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/05/26 20:22 upstream 16477cdfefdb 3037caa9 .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/05/26 06:24 upstream d7227785e384 3037caa9 .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/05/25 13:31 upstream fdaf9a5840ac 3037caa9 .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/05/25 11:45 upstream fdaf9a5840ac 647c0e27 .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/05/24 22:25 upstream 0350785b0a09 647c0e27 .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/05/24 10:25 upstream 143a6252e1b8 fcfad4ff .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/05/23 23:23 upstream 140e40e39a29 e7f9308d .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/05/23 09:23 upstream 4b0986a3613c 7268fa62 .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/05/22 20:05 upstream 978df3e15846 7268fa62 .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/05/22 06:40 upstream eaea45fc0e7b 7268fa62 .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/05/21 17:27 upstream 6c3f5bec9b40 7268fa62 .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/05/21 04:15 upstream 3b5e1590a267 7268fa62 .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/05/21 04:14 upstream 3b5e1590a267 7268fa62 .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/05/20 15:52 upstream 3d7285a335ed bd37ad7e .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/05/20 14:18 upstream 3d7285a335ed cb1ac2e7 .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/05/20 01:11 upstream b015dcd62b86 cb1ac2e7 .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/05/19 11:34 upstream f993aed406ea cb1ac2e7 .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/05/19 06:02 upstream f993aed406ea 50c53f39 .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/05/18 17:10 upstream ef1302160bfb 50c53f39 .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/05/18 13:40 upstream 210e04ff7681 50c53f39 .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/05/18 00:19 upstream 210e04ff7681 744a39e2 .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/05/16 03:26 upstream 42226c989789 744a39e2 .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/05/15 14:12 upstream bc403203d65a 744a39e2 .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/05/15 00:18 upstream 2fe1020d73ca 744a39e2 .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/05/15 00:16 upstream 2fe1020d73ca 744a39e2 .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/05/14 10:43 upstream ec7f49619d8e 744a39e2 .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/05/13 21:48 upstream f2dd007445b1 107f6434 .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/05/13 09:29 upstream f3f19f939c11 7ce5a022 .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/05/13 08:14 upstream f3f19f939c11 9ad6612a .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/05/12 18:59 upstream 0ac824f379fb 9ad6612a .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/05/12 13:50 upstream feb9c5e19e91 9ad6612a .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/05/11 17:00 upstream feb9c5e19e91 beb0b407 .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/05/11 00:00 upstream feb9c5e19e91 8d7b3b67 .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/05/09 16:26 upstream 9be9ed2612b5 8b277b8e .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/05/09 09:10 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/05/09 08:09 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/05/09 06:47 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/05/09 05:48 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/05/09 04:41 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/05/09 03:29 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/05/09 02:28 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/05/09 01:05 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2022/05/09 00:02 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in blk_mq_sched_dispatch_requests / blk_mq_sched_dispatch_requests
ci2-upstream-kcsan-gce 2021/01/17 10:06 upstream 0da0a8a0a0e1 813be542 .config log report info
ci2-upstream-kcsan-gce 2020/01/10 15:24 https://github.com/google/ktsan.git kcsan 245a43005292 532ec44e .config log report
ci2-upstream-kcsan-gce 2020/01/06 20:57 https://github.com/google/ktsan.git kcsan 245a43005292 53430d97 .config log report
ci2-upstream-kcsan-gce 2019/11/20 22:33 https://github.com/google/ktsan.git kcsan 5863cc791e4c 8098ea0f .config log report