syzbot


WARNING: refcount bug in blk_mq_dispatch_rq_list

Status: auto-obsoleted due to no activity on 2023/08/23 09:06
Reported-by: syzbot+9777b259371857c49a9f@syzkaller.appspotmail.com
First crash: 588d, last: 562d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 WARNING: refcount bug in blk_mq_dispatch_rq_list (2) origin:lts-only C inconclusive 5 37d 63d 0/3 upstream: reported C repro on 2024/09/19 10:57

Sample crash report:
buffer_io_error: 64 callbacks suppressed
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+0x14e/0x1a0 lib/refcount.c:28
Modules linked in:
CPU: 1 PID: 150 Comm: kworker/1:1H Not tainted 5.15.110-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023
Workqueue: kblockd blk_mq_run_work_fn
RIP: 0010:refcount_warn_saturate+0x14e/0x1a0 lib/refcount.c:28
Code: 09 01 48 c7 c7 a0 1b d8 8a e8 ae b6 45 fd 0f 0b eb 8d e8 65 d8 79 fd c6 05 1e 53 ca 09 01 48 c7 c7 00 1c d8 8a e8 92 b6 45 fd <0f> 0b e9 6e ff ff ff e8 46 d8 79 fd c6 05 00 53 ca 09 01 48 c7 c7
RSP: 0018:ffffc9000135f7a8 EFLAGS: 00010246
RAX: 6b32020361cb3600 RBX: 0000000000000003 RCX: ffff88801296ba00
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: 0000000000000003 R08: ffffffff8166344c R09: fffff5200026be35
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88801ae50000
R13: dffffc0000000000 R14: ffffc9000135fa40 R15: ffff88801af40200
FS:  0000000000000000(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020404030 CR3: 0000000019db8000 CR4: 00000000003506e0
DR0: 00000000ffff070c DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 blk_mq_end_request block/blk-mq.c:577 [inline]
 blk_mq_dispatch_rq_list+0xc41/0x1f30 block/blk-mq.c:1392
 __blk_mq_do_dispatch_sched block/blk-mq-sched.c:200 [inline]
 blk_mq_do_dispatch_sched+0x755/0xd50 block/blk-mq-sched.c:214
 __blk_mq_sched_dispatch_requests+0x39b/0x490
 blk_mq_sched_dispatch_requests+0xec/0x160 block/blk-mq-sched.c:366
 __blk_mq_run_hw_queue+0x11a/0x1b0 block/blk-mq.c:1495
 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2306
 worker_thread+0xaca/0x1280 kernel/workqueue.c:2453
 kthread+0x3f6/0x4f0 kernel/kthread.c:319
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298
 </TASK>

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/05/09 03:28 linux-5.15.y 8a7f2a5c5aa1 c7a5e2a0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: refcount bug in blk_mq_dispatch_rq_list
2023/04/12 20:53 linux-5.15.y d86dfc4d95cd 82d5e53e .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.