syzbot


WARNING: refcount bug in blk_done_softirq (2)

Status: upstream: reported on 2024/12/20 13:24
Reported-by: syzbot+cb362dc128596773bb9d@syzkaller.appspotmail.com
First crash: 1d02h, last: 1d02h
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 WARNING: refcount bug in blk_done_softirq 1 516d 516d 0/3 auto-obsoleted due to no activity on 2023/11/01 11:50

Sample crash report:
blk_update_request: I/O error, dev nbd1, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
Buffer I/O error on dev nbd1, logical block 0, async page read
------------[ cut here ]------------
refcount_t: underflow; use-after-free.
WARNING: CPU: 0 PID: 14 at lib/refcount.c:28 refcount_warn_saturate+0x14e/0x1a0 lib/refcount.c:28
Modules linked in:
CPU: 0 PID: 14 Comm: ksoftirqd/0 Not tainted 5.15.175-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/25/2024
RIP: 0010:refcount_warn_saturate+0x14e/0x1a0 lib/refcount.c:28
Code: 09 01 48 c7 c7 00 b3 f9 8a e8 7e 58 38 fd 0f 0b eb 8d e8 25 be 6c fd c6 05 b9 00 e3 09 01 48 c7 c7 60 b3 f9 8a e8 62 58 38 fd <0f> 0b e9 6e ff ff ff e8 06 be 6c fd c6 05 9b 00 e3 09 01 48 c7 c7
RSP: 0018:ffffc90000d37c80 EFLAGS: 00010246
RAX: de14883a5a925b00 RBX: 0000000000000003 RCX: ffff88813ff21dc0
RDX: 0000000000000100 RSI: 0000000000000100 RDI: 0000000000000000
RBP: 0000000000000003 R08: ffffffff8166aa6c R09: fffff520001a6ed1
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000004
R13: ffffffff8c80a0e0 R14: 0000000000000000 R15: ffff8880212d1000
FS:  0000000000000000(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f2c6dea73b0 CR3: 0000000078c9b000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 blk_complete_reqs block/blk-mq.c:587 [inline]
 blk_done_softirq+0xf2/0x130 block/blk-mq.c:592
 handle_softirqs+0x3a7/0x930 kernel/softirq.c:558
 run_ksoftirqd+0xc6/0x120 kernel/softirq.c:925
 smpboot_thread_fn+0x51b/0x9d0 kernel/smpboot.c:164
 kthread+0x3f6/0x4f0 kernel/kthread.c:334
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/12/20 13:24 linux-5.15.y 91786f140358 0f61b415 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING: refcount bug in blk_done_softirq
* Struck through repros no longer work on HEAD.