syzbot


KCSAN: data-race in blk_mq_dispatch_rq_list / blk_mq_dispatch_rq_list (9)

Status: moderation: reported on 2025/05/17 17:32
Subsystems: block
[Documentation on labels]
Reported-by: syzbot+d51134e27ad7e147919f@syzkaller.appspotmail.com
First crash: 1d13h, last: 1d13h
Similar bugs (8)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in blk_mq_dispatch_rq_list / blk_mq_dispatch_rq_list (7) block 1 329d 329d 0/28 auto-obsoleted due to no activity on 2024/07/29 01:45
upstream KCSAN: data-race in blk_mq_dispatch_rq_list / blk_mq_dispatch_rq_list (4) block 2 1160d 1162d 0/28 auto-closed as invalid on 2022/04/19 11:06
upstream KCSAN: data-race in blk_mq_dispatch_rq_list / blk_mq_dispatch_rq_list (6) block 1 385d 385d 0/28 auto-obsoleted due to no activity on 2024/06/03 04:17
upstream KCSAN: data-race in blk_mq_dispatch_rq_list / blk_mq_dispatch_rq_list (3) block 1 1208d 1208d 0/28 auto-closed as invalid on 2022/03/02 19:51
upstream KCSAN: data-race in blk_mq_dispatch_rq_list / blk_mq_dispatch_rq_list block 2 2047d 2048d 0/28 closed as invalid on 2019/10/18 14:11
upstream KCSAN: data-race in blk_mq_dispatch_rq_list / blk_mq_dispatch_rq_list (2) block 1741 1295d 1991d 0/28 auto-closed as invalid on 2021/12/06 01:22
upstream KCSAN: data-race in blk_mq_dispatch_rq_list / blk_mq_dispatch_rq_list (5) block 168 421d 528d 0/28 auto-obsoleted due to no activity on 2024/04/27 14:29
upstream KCSAN: data-race in blk_mq_dispatch_rq_list / blk_mq_dispatch_rq_list (8) block 1 158d 158d 0/28 auto-obsoleted due to no activity on 2025/02/05 17:25

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

read-write to 0xffff8881008050f8 of 4 bytes by task 80 on cpu 0:
 blk_mq_update_dispatch_busy block/blk-mq.c:1993 [inline]
 blk_mq_dispatch_rq_list+0xcbe/0xfe0 block/blk-mq.c:2204
 __blk_mq_sched_dispatch_requests+0x1ba/0xd10 block/blk-mq-sched.c:301
 blk_mq_sched_dispatch_requests+0x86/0x120 block/blk-mq-sched.c:331
 blk_mq_run_work_fn+0x66/0xe0 block/blk-mq.c:2530
 process_one_work kernel/workqueue.c:3238 [inline]
 process_scheduled_works+0x4ce/0x9d0 kernel/workqueue.c:3319
 worker_thread+0x582/0x770 kernel/workqueue.c:3400
 kthread+0x489/0x510 kernel/kthread.c:464
 ret_from_fork+0x4b/0x60 arch/x86/kernel/process.c:153
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245

read-write to 0xffff8881008050f8 of 4 bytes by task 24 on cpu 1:
 blk_mq_update_dispatch_busy block/blk-mq.c:1993 [inline]
 blk_mq_dispatch_rq_list+0xcbe/0xfe0 block/blk-mq.c:2204
 __blk_mq_sched_dispatch_requests+0x1ba/0xd10 block/blk-mq-sched.c:301
 blk_mq_sched_dispatch_requests+0x86/0x120 block/blk-mq-sched.c:331
 blk_mq_run_hw_queue+0x17e/0x220 block/blk-mq.c:2354
 blk_mq_run_hw_queues+0x180/0x250 block/blk-mq.c:2403
 blk_mq_requeue_work+0x3b9/0x3f0 block/blk-mq.c:1568
 process_one_work kernel/workqueue.c:3238 [inline]
 process_scheduled_works+0x4ce/0x9d0 kernel/workqueue.c:3319
 worker_thread+0x582/0x770 kernel/workqueue.c:3400
 kthread+0x489/0x510 kernel/kthread.c:464
 ret_from_fork+0x4b/0x60 arch/x86/kernel/process.c:153
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245

value changed: 0x00000006 -> 0x00000007

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 24 Comm: kworker/1:0H Not tainted 6.15.0-rc6-syzkaller-00278-g172a9d94339c #0 PREEMPT(voluntary) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025
Workqueue: kblockd blk_mq_requeue_work
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/05/17 17:32 upstream 172a9d94339c f41472b0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in blk_mq_dispatch_rq_list / blk_mq_dispatch_rq_list
* Struck through repros no longer work on HEAD.