syzbot


BUG: unable to handle kernel paging request in loop_queue_rq

Status: moderation: reported on 2025/01/13 07:14
Subsystems: block
[Documentation on labels]
Reported-by: syzbot+fe4d492cd56a40e65366@syzkaller.appspotmail.com
First crash: 6d01h, last: 6d01h
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KASAN: out-of-bounds Write in loop_queue_rq block 1 635d 631d 0/28 auto-obsoleted due to no activity on 2023/07/19 21:56

Sample crash report:
Unable to handle kernel paging request at virtual address e4ff9fffe0001824
KASAN: maybe wild-memory-access in range [0x2800ffff0000c120-0x2800ffff0000c127]
Mem abort info:
  ESR = 0x0000000096000004
  EC = 0x25: DABT (current EL), IL = 32 bits
  SET = 0, FnV = 0
  EA = 0, S1PTW = 0
  FSC = 0x04: level 0 translation fault
Data abort info:
  ISV = 0, ISS = 0x00000004, ISS2 = 0x00000000
  CM = 0, WnR = 0, TnD = 0, TagAccess = 0
  GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0
[e4ff9fffe0001824] address between user and kernel address ranges
Internal error: Oops: 0000000096000004 [#1] PREEMPT SMP
Modules linked in:
CPU: 0 UID: 0 PID: 7977 Comm: syz.6.308 Tainted: G        W          6.13.0-rc6-syzkaller-g577490b6abb9 #0
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
pstate: 804000c5 (Nzcv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : __lock_acquire+0xfc/0x7904 kernel/locking/lockdep.c:5089
lr : lock_acquire+0x23c/0x724 kernel/locking/lockdep.c:5849
sp : ffff8000a3ec6e40
x29: ffff8000a3ec7100 x28: ffff8000803600c0 x27: 0000000000000000
x26: ffff0001b37e5500 x25: 0000000000000000 x24: 0000000000000001
x23: 0000000000000000 x22: 1ffff00011f320ca x21: 2800ffff0000c120
x20: 0000000000000001 x19: 0000000000000000 x18: ffff8000a3ec6fc0
x17: 000000000003fd64 x16: ffff8000832776d4 x15: 0000000000000001
x14: 1fffe00018211000 x13: dfff800000000000 x12: ffff7000147d8df0
x11: ffff800080466cdc x10: ffff80008f990650 x9 : 00000000000000f3
x8 : 05001fffe0001824 x7 : ffff8000803600c0 x6 : 0000000000000000
x5 : 0000000000000001 x4 : 0000000000000001 x3 : 0000000000000000
x2 : 0000000000000000 x1 : 0000000000000000 x0 : 2800ffff0000c120
Call trace:
 __lock_acquire+0xfc/0x7904 kernel/locking/lockdep.c:5089 (P)
 lock_acquire+0x23c/0x724 kernel/locking/lockdep.c:5849
 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline]
 _raw_spin_lock+0x48/0x60 kernel/locking/spinlock.c:154
 __queue_work+0x8b0/0x1308
 queue_work_on+0xe0/0x1a0 kernel/workqueue.c:2390
 queue_work include/linux/workqueue.h:662 [inline]
 loop_queue_work drivers/block/loop.c:893 [inline]
 loop_queue_rq+0x974/0xadc drivers/block/loop.c:1876
 __blk_mq_issue_directly block/blk-mq.c:2687 [inline]
 blk_mq_request_issue_directly+0x2dc/0x5a0 block/blk-mq.c:2774
 blk_mq_plug_issue_direct+0x264/0x548 block/blk-mq.c:2795
 blk_mq_flush_plug_list+0x654/0x13ac block/blk-mq.c:2906
 __blk_flush_plug+0x388/0x460 block/blk-core.c:1213
 blk_finish_plug+0x68/0x90 block/blk-core.c:1240
 btrfs_write_and_wait_transaction+0xec/0x1e8 fs/btrfs/transaction.c:1258
 btrfs_commit_transaction+0x1ad0/0x2ba4 fs/btrfs/transaction.c:2519
 btrfs_ioctl_subvol_setflags+0x4a8/0x6b4 fs/btrfs/ioctl.c:1528
 btrfs_ioctl+0x60c/0xb04 fs/btrfs/ioctl.c:5194
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:906 [inline]
 __se_sys_ioctl fs/ioctl.c:892 [inline]
 __arm64_sys_ioctl+0x14c/0x1cc fs/ioctl.c:892
 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline]
 invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49
 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132
 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151
 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:744
 el0t_64_sync_handler+0x84/0x108 arch/arm64/kernel/entry-common.c:762
 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600
Code: d007a948 b9465108 340090a8 d343fea8 (386d6908) 
---[ end trace 0000000000000000 ]---
----------------
Code disassembly (best guess):
   0:	d007a948 	adrp	x8, 0xf52a000
   4:	b9465108 	ldr	w8, [x8, #1616]
   8:	340090a8 	cbz	w8, 0x121c
   c:	d343fea8 	lsr	x8, x21, #3
* 10:	386d6908 	ldrb	w8, [x8, x13] <-- trapping instruction

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/01/09 07:06 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 577490b6abb9 f3558dbf .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel paging request in loop_queue_rq
* Struck through repros no longer work on HEAD.