syzbot


BUG: unable to handle kernel paging request in btrfs_simple_end_io

Status: moderation: reported on 2024/11/04 21:58
Subsystems: btrfs
[Documentation on labels]
Reported-by: syzbot+6cc251d6f92b86755e8a@syzkaller.appspotmail.com
First crash: 20d, last: 20d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in btrfs_simple_end_io btrfs 18 154d 179d 26/28 fixed on 2024/07/31 03:12

Sample crash report:
Unable to handle kernel paging request at virtual address 001f7fe000182113
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
[001f7fe000182113] address between user and kernel address ranges
Internal error: Oops: 0000000096000004 [#1] PREEMPT SMP
Modules linked in:
CPU: 0 UID: 0 PID: 6670 Comm: syz.4.29 Not tainted 6.12.0-rc5-syzkaller-g1bf329c696cf #0
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/0x77c8 kernel/locking/lockdep.c:5065
lr : lock_acquire+0x240/0x728 kernel/locking/lockdep.c:5825
sp : ffff8000800076a0
x29: ffff800080007960 x28: ffff80008025a29c x27: 0000000000000000
x26: ffff0001b36384c0 x25: 0000000000000000 x24: 0000000000000001
x23: 0000000000000000 x22: 1ffff00011f000ba x21: 00ffff0000c10898
x20: 0000000000000001 x19: 0000000000000000 x18: 1fffe000366c7076
x17: ffff800123ee9000 x16: ffff8000830cb3ac x15: 0000000000000001
x14: 1fffe00018a68091 x13: dfff800000000000 x12: ffff700010000efc
x11: ffff80008035f828 x10: ffff80008f8005d4 x9 : 00000000000000f3
x8 : 001fffe000182113 x7 : ffff80008025a29c x6 : 0000000000000000
x5 : 0000000000000001 x4 : 0000000000000001 x3 : 0000000000000000
x2 : 0000000000000000 x1 : 0000000000000000 x0 : 00ffff0000c10898
Call trace:
 __lock_acquire+0xfc/0x77c8 kernel/locking/lockdep.c:5065 (P)
 lock_acquire+0x240/0x728 kernel/locking/lockdep.c:5825 (L)
 lock_acquire+0x240/0x728 kernel/locking/lockdep.c:5825
 __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]
 btrfs_simple_end_io+0x32c/0x454 fs/btrfs/bio.c:367
 bio_endio+0x82c/0x868 block/bio.c:1708
 blk_update_request+0x4ac/0xda0 block/blk-mq.c:923
 blk_mq_end_request+0x54/0x88 block/blk-mq.c:1051
 lo_complete_rq+0x188/0x2f4 drivers/block/loop.c:386
 blk_complete_reqs block/blk-mq.c:1126 [inline]
 blk_done_softirq+0x11c/0x168 block/blk-mq.c:1131
 handle_softirqs+0x2e0/0xbf8 kernel/softirq.c:554
 __do_softirq+0x14/0x20 kernel/softirq.c:588
 ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:81
 call_on_irq_stack+0x24/0x4c arch/arm64/kernel/entry.S:891
 do_softirq_own_stack+0x20/0x2c arch/arm64/kernel/irq.c:86
 do_softirq+0x90/0xf8 kernel/softirq.c:455
 __local_bh_enable_ip+0x288/0x44c kernel/softirq.c:382
 local_bh_enable+0x28/0x34 include/linux/bottom_half.h:33
 put_cpu_fpsimd_context arch/arm64/kernel/fpsimd.c:244 [inline]
 fpsimd_restore_current_state+0x64/0xec arch/arm64/kernel/fpsimd.c:1810
 do_notify_resume+0x114/0x1f4 arch/arm64/kernel/entry-common.c:154
 exit_to_user_mode_prepare arch/arm64/kernel/entry-common.c:169 [inline]
 exit_to_user_mode arch/arm64/kernel/entry-common.c:178 [inline]
 el0_svc+0xac/0x168 arch/arm64/kernel/entry-common.c:745
 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: b007a508 b945d508 34008c88 d343fea8 (386d6908) 
---[ end trace 0000000000000000 ]---
----------------
Code disassembly (best guess):
   0:	b007a508 	adrp	x8, 0xf4a1000
   4:	b945d508 	ldr	w8, [x8, #1492]
   8:	34008c88 	cbz	w8, 0x1198
   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
2024/10/31 21:48 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 1bf329c696cf 96eb609f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel paging request in btrfs_simple_end_io
* Struck through repros no longer work on HEAD.