syzbot


WARNING: refcount bug in blk_mq_dispatch_rq_list (2)

Status: upstream: reported C repro on 2024/09/19 10:57
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+4e6abb14fef0fca71895@syzkaller.appspotmail.com
First crash: 422d, last: 2d19h
Bug presence (2)
Date Name Commit Repro Result
2024/09/20 linux-5.15.y (ToT) 3a5928702e71 C [report] WARNING: refcount bug in blk_mq_dispatch_rq_list
2024/09/20 upstream (ToT) baeb9a7d8b60 C Didn't crash
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 WARNING: refcount bug in blk_mq_dispatch_rq_list 13 2 921d 947d 0/3 auto-obsoleted due to no activity on 2023/08/23 09:06
Last patch testing requests (10)
Created Duration User Patch Repo Result
2025/10/24 18:22 10m retest repro linux-5.15.y report log
2025/10/24 18:22 13m retest repro linux-5.15.y report log
2025/09/08 17:16 10m retest repro linux-5.15.y report log
2025/08/11 08:39 9m retest repro linux-5.15.y report log
2025/08/11 08:39 13m retest repro linux-5.15.y report log
2025/06/29 09:23 17m retest repro linux-5.15.y report log
2025/06/01 16:01 15m retest repro linux-5.15.y report log
2025/06/01 16:01 11m retest repro linux-5.15.y report log
2025/04/18 13:30 10m retest repro linux-5.15.y report log
2025/03/22 22:14 12m retest repro linux-5.15.y report log
Fix bisection attempts (1)
Created Duration User Patch Repo Result
2024/10/11 02:47 2h22m fix candidate upstream OK (0) job log

Sample crash report:
blk_update_request: I/O error, dev nbd0, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
Buffer I/O error on dev nbd0, logical block 0, async page read
------------[ cut here ]------------
refcount_t: underflow; use-after-free.
WARNING: CPU: 1 PID: 150 at lib/refcount.c:28 refcount_warn_saturate+0x11b/0x1a0 lib/refcount.c:28
Modules linked in:
CPU: 1 PID: 150 Comm: kworker/1:1H Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
Workqueue: kblockd blk_mq_run_work_fn
RIP: 0010:refcount_warn_saturate+0x11b/0x1a0 lib/refcount.c:28
Code: 09 01 48 c7 c7 a0 6b 59 8a e8 81 b2 c3 05 0f 0b eb c4 e8 18 f5 9c fd c6 05 2d 20 7b 09 01 48 c7 c7 00 6c 59 8a e8 65 b2 c3 05 <0f> 0b eb a8 e8 fc f4 9c fd c6 05 0e 20 7b 09 01 48 c7 c7 40 6b 59
RSP: 0018:ffffc900016cf7e8 EFLAGS: 00010246
RAX: aab5c44c7255df00 RBX: 0000000000000003 RCX: ffff88801bba9dc0
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: ffffc900016cf990 R08: dffffc0000000000 R09: ffffed1017224f2c
R10: ffffed1017224f2c R11: 1ffff11017224f2b R12: ffffc900016cfaa0
R13: ffff888020958050 R14: 0000000000000003 R15: 1ffff1100412b009
FS:  0000000000000000(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 000000001e42d000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 blk_mq_end_request block/blk-mq.c:577 [inline]
 blk_mq_dispatch_rq_list+0xb8b/0x1dd0 block/blk-mq.c:1408
 __blk_mq_do_dispatch_sched block/blk-mq-sched.c:200 [inline]
 blk_mq_do_dispatch_sched+0xabc/0xc40 block/blk-mq-sched.c:214
 __blk_mq_sched_dispatch_requests+0x311/0x3f0 block/blk-mq-sched.c:-1
 blk_mq_sched_dispatch_requests+0xf4/0x1b0 block/blk-mq-sched.c:366
 __blk_mq_run_hw_queue+0xbb/0xf0 block/blk-mq.c:1511
 process_one_work+0x863/0x1000 kernel/workqueue.c:2310
 worker_thread+0xaa8/0x12a0 kernel/workqueue.c:2457
 kthread+0x436/0x520 kernel/kthread.c:334
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287
 </TASK>

Crashes (20):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/10/25 10:14 linux-5.15.y ac56c046adf4 c0460fcd .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: refcount bug in blk_mq_dispatch_rq_list
2025/03/06 09:47 linux-5.15.y c16c81c81336 831e3629 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: refcount bug in blk_mq_dispatch_rq_list
2024/09/19 12:21 linux-5.15.y 3a5928702e71 c673ca06 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: refcount bug in blk_mq_dispatch_rq_list
2024/09/19 11:36 linux-5.15.y 3a5928702e71 c673ca06 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: refcount bug in blk_mq_dispatch_rq_list
2025/10/25 09:12 linux-5.15.y ac56c046adf4 c0460fcd .config console log report syz / log [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: refcount bug in blk_mq_dispatch_rq_list
2025/11/12 23:25 linux-5.15.y cc5ec8769306 07e030de .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: refcount bug in blk_mq_dispatch_rq_list
2025/11/07 13:58 linux-5.15.y cc5ec8769306 4e1406b4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: refcount bug in blk_mq_dispatch_rq_list
2025/11/07 13:56 linux-5.15.y cc5ec8769306 4e1406b4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: refcount bug in blk_mq_dispatch_rq_list
2025/11/07 13:53 linux-5.15.y cc5ec8769306 4e1406b4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: refcount bug in blk_mq_dispatch_rq_list
2025/11/06 02:54 linux-5.15.y cc5ec8769306 a6c9c731 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: refcount bug in blk_mq_dispatch_rq_list
2025/11/04 08:58 linux-5.15.y cc5ec8769306 686bf657 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: refcount bug in blk_mq_dispatch_rq_list
2025/10/25 08:29 linux-5.15.y ac56c046adf4 c0460fcd .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: refcount bug in blk_mq_dispatch_rq_list
2025/10/10 15:45 linux-5.15.y 29e53a5b1c4f ff1712fe .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: refcount bug in blk_mq_dispatch_rq_list
2025/03/08 16:32 linux-5.15.y c16c81c81336 7e3bd60d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: refcount bug in blk_mq_dispatch_rq_list
2025/03/06 06:19 linux-5.15.y c16c81c81336 831e3629 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: refcount bug in blk_mq_dispatch_rq_list
2025/03/05 06:33 linux-5.15.y c16c81c81336 c3901742 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: refcount bug in blk_mq_dispatch_rq_list
2025/03/05 06:29 linux-5.15.y c16c81c81336 c3901742 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: refcount bug in blk_mq_dispatch_rq_list
2024/10/15 06:22 linux-5.15.y 3a5928702e71 b01b6661 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: refcount bug in blk_mq_dispatch_rq_list
2024/09/27 06:41 linux-5.15.y 3a5928702e71 9314348a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: refcount bug in blk_mq_dispatch_rq_list
2024/09/19 10:57 linux-5.15.y 3a5928702e71 c673ca06 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: refcount bug in blk_mq_dispatch_rq_list
* Struck through repros no longer work on HEAD.