KCSAN: data-race in __blk_mq_sched_dispatch_requests / blk_mq_dispatch_rq_list (4)

Status: moderation: reported on 2026/08/08 09:49
Subsystems: block
Labels: race:benign prio:high
[Documentation on labels]
Reported-by: syzbot+d07b718e1448bec2842e@syzkaller.appspotmail.com
First crash: 92d, last: 6h38m
▶ ▼ ✨ AI Jobs (2)
ID Workflow Result Correct Bug Created Started Finished Revision
e4f18969 assessment-security DenialOfService: ❌ Exploitable: ❌ FilesystemTrigger: ✅ NetworkTrigger: ❌ PeripheralTrigger: ✅ RemoteTrigger: ❌ Unprivileged: ✅ UserNamespace: ✅ VMGuestTrigger: ✅ VMHostTrigger: ✅ ❓ KCSAN: data-race in __blk_mq_sched_dispatch_requests / blk_mq_dispatch_rq_list (4) 2026/08/10 01:32 2026/08/10 01:32 2026/08/10 01:33 5d63f80b
f660555a assessment-kcsan Benign: ✅ ❓ KCSAN: data-race in __blk_mq_sched_dispatch_requests / blk_mq_dispatch_rq_list (4) 2026/08/09 03:56 2026/08/09 03:56 2026/08/09 04:45 5d63f80b
▶ ▼ Similar bugs (3)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __blk_mq_sched_dispatch_requests / blk_mq_dispatch_rq_list block 6 1 1976d 1976d 0/29 auto-closed as invalid on 2021/07/16 10:39
upstream KCSAN: data-race in __blk_mq_sched_dispatch_requests / blk_mq_dispatch_rq_list (3) block 6 1 674d 674d 0/29 auto-obsoleted due to no activity on 2025/03/01 03:48
upstream KCSAN: data-race in __blk_mq_sched_dispatch_requests / blk_mq_dispatch_rq_list (2) block 6 52 960d 1066d 0/29 auto-obsoleted due to no activity on 2024/04/27 12:39

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

read-write to 0xffff888100a312f8 of 4 bytes by task 11045 on cpu 0:
 blk_mq_update_dispatch_busy block/blk-mq.c:2020 [inline]
 blk_mq_dispatch_rq_list+0xc3e/0xef0 block/blk-mq.c:2229
 __blk_mq_sched_dispatch_requests+0x1db/0xce0 block/blk-mq-sched.c:299
 blk_mq_sched_dispatch_requests+0x86/0x120 block/blk-mq-sched.c:329
 blk_mq_run_hw_queue+0x145/0x1e0 block/blk-mq.c:2380
 blk_mq_dispatch_list+0x838/0x9f0 arch/x86/include/asm/bitops.h:-1
 blk_mq_flush_plug_list+0x2cd/0x320 block/blk-mq.c:2990
 blk_add_rq_to_plug+0xf0/0x3f0 block/blk-mq.c:1406
 blk_mq_submit_bio+0xd58/0x1240 block/blk-mq.c:3232
 __submit_bio+0x54/0x3d0 block/blk-core.c:674
 __submit_bio_noacct_mq block/blk-core.c:757 [inline]
 submit_bio_noacct_nocheck+0x1c6/0x620 block/blk-core.c:791
 submit_bio_noacct+0x738/0x970 block/blk-core.c:929
 submit_bio+0x2a4/0x2c0 block/blk-core.c:970
 bio_chain_and_submit+0x84/0xb0 block/bio.c:396
 __blkdev_issue_zero_pages+0x1f7/0x240 block/blk-lib.c:215
 blkdev_issue_zero_pages block/blk-lib.c:231 [inline]
 blkdev_issue_zeroout+0x39c/0x4e0 block/blk-lib.c:312
 blk_ioctl_zeroout block/ioctl.c:244 [inline]
 blkdev_common_ioctl+0x1a07/0x2060 block/ioctl.c:667
 blkdev_ioctl+0x31f/0x460 block/ioctl.c:792
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:597 [inline]
 __se_sys_ioctl+0xce/0x140 fs/ioctl.c:583
 __x64_sys_ioctl+0x43/0x50 fs/ioctl.c:583
 x64_sys_call+0x239d/0x2550 arch/x86/include/generated/asm/syscalls_64.h:17
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x112/0x360 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff888100a312f8 of 4 bytes by task 429 on cpu 1:
 __blk_mq_do_dispatch_sched block/blk-mq-sched.c:95 [inline]
 blk_mq_do_dispatch_sched block/blk-mq-sched.c:182 [inline]
 __blk_mq_sched_dispatch_requests+0x295/0xce0 block/blk-mq-sched.c:307
 blk_mq_sched_dispatch_requests+0x86/0x120 block/blk-mq-sched.c:329
 blk_mq_run_work_fn+0x66/0xe0 block/blk-mq.c:2556
 process_one_work kernel/workqueue.c:3495 [inline]
 process_scheduled_works+0x53f/0xa20 kernel/workqueue.c:3578
 worker_thread+0x56c/0x770 kernel/workqueue.c:3659
 kthread+0x223/0x270 kernel/kthread.c:436
 ret_from_fork+0x146/0x330 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245

value changed: 0x00000007 -> 0x00000008

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 429 Comm: kworker/1:1H Not tainted syzkaller #0 PREEMPT(lazy) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
Workqueue: kblockd blk_mq_run_work_fn
==================================================================

Crashes (9):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/11/08 21:20 upstream fa4ad798f6f6 5cecaf1f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __blk_mq_sched_dispatch_requests / blk_mq_dispatch_rq_list
2026/10/04 02:32 upstream a74306e2e676 57bbd979 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __blk_mq_sched_dispatch_requests / blk_mq_dispatch_rq_list
2026/09/13 21:15 upstream d681d7ef617e 70a60e12 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __blk_mq_sched_dispatch_requests / blk_mq_dispatch_rq_list
2026/09/12 09:52 upstream 3026c6e4f223 70a60e12 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __blk_mq_sched_dispatch_requests / blk_mq_dispatch_rq_list
2026/09/11 12:12 upstream 08df884136f1 b6a5eeb7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __blk_mq_sched_dispatch_requests / blk_mq_dispatch_rq_list
2026/09/09 03:05 upstream 893e11787f78 243b72f1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __blk_mq_sched_dispatch_requests / blk_mq_dispatch_rq_list
2026/08/29 19:47 upstream c20313e98b04 2f52988a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __blk_mq_sched_dispatch_requests / blk_mq_dispatch_rq_list
2026/08/20 23:47 upstream cf62c7084acf 1e72964b .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __blk_mq_sched_dispatch_requests / blk_mq_dispatch_rq_list
2026/08/08 09:48 upstream bcc44b6785f2 5d63f80b .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __blk_mq_sched_dispatch_requests / blk_mq_dispatch_rq_list
* Struck through repros no longer work on HEAD.