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: 2d13h, last: 2d13h
✨ 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 1886d 1886d 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 583d 583d 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 870d 975d 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 0xffff888102851af8 of 4 bytes by task 17265 on cpu 1:
 blk_mq_update_dispatch_busy block/blk-mq.c:1996 [inline]
 blk_mq_dispatch_rq_list+0xc3e/0xef0 block/blk-mq.c:2205
 __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+0x17e/0x220 block/blk-mq.c:2356
 blk_mq_dispatch_list+0x83d/0x9f0 arch/x86/include/asm/bitops.h:-1
 blk_mq_flush_plug_list+0x2cd/0x320 block/blk-mq.c:2966
 blk_add_rq_to_plug+0xe4/0x360 block/blk-mq.c:1386
 blk_mq_submit_bio+0xc11/0x1130 block/blk-mq.c:3198
 __submit_bio+0x54/0x3d0 block/blk-core.c:673
 __submit_bio_noacct_mq block/blk-core.c:756 [inline]
 submit_bio_noacct_nocheck+0x1c6/0x620 block/blk-core.c:790
 submit_bio_noacct+0x700/0x920 block/blk-core.c:921
 submit_bio+0x2a4/0x2c0 block/blk-core.c:962
 bio_chain_and_submit+0x84/0xb0 block/bio.c:376
 __blkdev_issue_zero_pages+0x1f7/0x240 block/blk-lib.c:215
 blkdev_issue_zero_pages block/blk-lib.c:231 [inline]
 blkdev_issue_zeroout+0x3a1/0x4f0 block/blk-lib.c:312
 blk_ioctl_zeroout block/ioctl.c:243 [inline]
 blkdev_common_ioctl+0x1a07/0x2060 block/ioctl.c:666
 blkdev_ioctl+0x31f/0x460 block/ioctl.c:791
 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+0x1563/0x3020 arch/x86/include/generated/asm/syscalls_64.h:17
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0x136/0x3c0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff888102851af8 of 4 bytes by task 2939 on cpu 0:
 __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:2532
 process_one_work kernel/workqueue.c:3322 [inline]
 process_scheduled_works+0x4d4/0x9a0 kernel/workqueue.c:3405
 worker_thread+0x569/0x750 kernel/workqueue.c:3486
 kthread+0x221/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: 0x00000005 -> 0x00000006

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 2939 Comm: kworker/0:1H Tainted: G        W           syzkaller #0 PREEMPT(lazy) 
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
Workqueue: kblockd blk_mq_run_work_fn
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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.