syzbot


kernel BUG in blk_mq_end_request

Status: upstream: reported C repro on 2025/05/24 01:52
Subsystems: block
[Documentation on labels]
Reported-by: syzbot+a8f903ba15921696861d@syzkaller.appspotmail.com
First crash: 151d, last: 4d13h
Cause bisection: introduced by (bisect log) :
commit f5095b9f85a1674a92d00e7ab466499a8ba49ce1
Author: Kent Overstreet <kent.overstreet@linux.dev>
Date: Tue Jan 2 00:42:37 2024 +0000

  bcachefs: dev_usage updated by new accounting

Crash: BUG: workqueue lockup (log)
Repro: C syz .config
  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [block?] [bcachefs?] kernel BUG in blk_mq_end_request 0 (3) 2025/07/20 14:44
Last patch testing requests (3)
Created Duration User Patch Repo Result
2025/08/23 19:23 30m retest repro upstream report log
2025/06/03 21:35 13m retest repro upstream report log
2025/06/03 21:35 14m retest repro upstream report log
Fix bisection attempts (2)
Created Duration User Patch Repo Result
2025/09/28 09:00 2h37m bisect fix upstream OK (0) job log log
2025/08/09 04:48 2h29m bisect fix upstream OK (0) job log log

Sample crash report:
------------[ cut here ]------------
kernel BUG at block/blk-mq.c:1161!
Oops: invalid opcode: 0000 [#1] SMP KASAN PTI
CPU: 1 UID: 0 PID: 30 Comm: ksoftirqd/1 Not tainted syzkaller #0 PREEMPT_{RT,(full)} 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
RIP: 0010:blk_mq_end_request+0x6c/0x70 block/blk-mq.c:1161
Code: e8 e9 ff 63 fd 48 89 df 89 ee 5b 5d e9 5d f8 ff ff 89 f9 80 e1 07 80 c1 03 38 c1 7c ce e8 9c b1 c5 fd eb c7 e8 c5 ff 63 fd 90 <0f> 0b 66 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f
RSP: 0018:ffffc90000a4faf8 EFLAGS: 00010246
RAX: ffffffff845aed6b RBX: ffff888024819180 RCX: ffff88801c2dbc00
RDX: 0000000000000100 RSI: 0000000000000000 RDI: 0000000000000100
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000100
R10: 0000000000000100 R11: 0000000000000009 R12: dffffc0000000000
R13: dffffc0000000000 R14: ffff888024819180 R15: ffffffff8b58c428
FS:  0000000000000000(0000) GS:ffff888126cc9000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055ddc36d5950 CR3: 000000000d5a6000 CR4: 00000000003526f0
Call Trace:
 <TASK>
 blk_complete_reqs block/blk-mq.c:1235 [inline]
 blk_done_softirq+0x10a/0x160 block/blk-mq.c:1240
 handle_softirqs+0x22f/0x710 kernel/softirq.c:622
 run_ksoftirqd+0xac/0x210 kernel/softirq.c:1063
 smpboot_thread_fn+0x542/0xa60 kernel/smpboot.c:160
 kthread+0x711/0x8a0 kernel/kthread.c:463
 ret_from_fork+0x4bc/0x870 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:blk_mq_end_request+0x6c/0x70 block/blk-mq.c:1161
Code: e8 e9 ff 63 fd 48 89 df 89 ee 5b 5d e9 5d f8 ff ff 89 f9 80 e1 07 80 c1 03 38 c1 7c ce e8 9c b1 c5 fd eb c7 e8 c5 ff 63 fd 90 <0f> 0b 66 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f
RSP: 0018:ffffc90000a4faf8 EFLAGS: 00010246
RAX: ffffffff845aed6b RBX: ffff888024819180 RCX: ffff88801c2dbc00
RDX: 0000000000000100 RSI: 0000000000000000 RDI: 0000000000000100
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000100
R10: 0000000000000100 R11: 0000000000000009 R12: dffffc0000000000
R13: dffffc0000000000 R14: ffff888024819180 R15: ffffffff8b58c428
FS:  0000000000000000(0000) GS:ffff888126cc9000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055ddc36d5950 CR3: 000000000d5a6000 CR4: 00000000003526f0

Crashes (8):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/10/14 07:10 upstream 3a8660878839 b6605ba8 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-upstream-fs kernel BUG in blk_mq_end_request
2025/05/20 20:41 upstream a5806cd506af b47f9e02 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro #1] [mounted in repro #2 (corrupt fs)] ci2-upstream-fs kernel BUG in blk_mq_end_request
2025/05/20 17:41 upstream a5806cd506af b47f9e02 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs kernel BUG in blk_mq_end_request
2025/10/14 06:23 upstream 3a8660878839 b6605ba8 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci-snapshot-upstream-root kernel BUG in blk_mq_end_request
2025/06/17 17:13 upstream 9afe652958c3 cfebc887 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in blk_mq_end_request
2025/05/20 01:42 upstream a5806cd506af b84f0537 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in blk_mq_end_request
2025/10/14 05:53 upstream 3a8660878839 b6605ba8 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in blk_mq_end_request
2025/07/08 14:41 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 7482bb149b9f 4f67c4ae .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in blk_mq_end_request
* Struck through repros no longer work on HEAD.