BUG: unable to handle kernel paging request in btrfs_lookup_csums_range

Status: upstream: reported C repro on 2025/05/30 21:24
Bug presence: origin:upstream
Labels: missing-backport
[Documentation on labels]
Reported-by: syzbot+4ca7f6ec9eec8808cfab@syzkaller.appspotmail.com
First crash: 430d, last: 23d
Fix bisection: failed (error log, bisect log)
  
Bug presence (3)
Date Name Commit Repro Result
2025/09/01 linux-6.1.y (ToT) f89b6e15694c C [report] BUG: unable to handle kernel paging request in btrfs_lookup_csums_range
2025/05/31 upstream (ToT) 4cb6c8af8591 C [report] BUG: MAX_LOCKDEP_KEYS too low!
2025/09/01 upstream (ToT) b320789d6883 C Didn't crash
Fix bisection attempts (2)
Created Duration User Patch Repo Result
2025/10/04 06:47 2h02m fix candidate upstream OK (0) job log
2025/07/13 21:41 13m bisect fix linux-6.1.y error job log

Sample crash report:
workqueue: max_active 32767 requested for btrfs-scrubwrc is out of range, clamping between 1 and 512
workqueue: max_active 32767 requested for btrfs-scrubparity is out of range, clamping between 1 and 512
BTRFS info (device loop0: state C): scrub: started on devid 1
Unable to handle kernel paging request at virtual address dfff800000000041
KASAN: null-ptr-deref in range [0x0000000000000208-0x000000000000020f]
Mem abort info:
  ESR = 0x0000000096000006
  EC = 0x25: DABT (current EL), IL = 32 bits
  SET = 0, FnV = 0
  EA = 0, S1PTW = 0
  FSC = 0x06: level 2 translation fault
Data abort info:
  ISV = 0, ISS = 0x00000006
  CM = 0, WnR = 0
[dfff800000000041] address between user and kernel address ranges
Internal error: Oops: 0000000096000006 [#1] PREEMPT SMP
Modules linked in:
CPU: 0 PID: 4503 Comm: syz.0.17 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/02/2026
pstate: 82400005 (Nzcv daif +PAN -UAO +TCO -DIT -SSBS BTYPE=--)
pc : btrfs_lookup_csums_range+0xb0/0xea8 fs/btrfs/file-item.c:518
lr : btrfs_lookup_csums_range+0xa8/0xea8 fs/btrfs/file-item.c:517
sp : ffff800020fe6f00
x29: ffff800020fe7060 x28: ffff800020fe6fc0 x27: 0000000000000000
x26: 0000000000000001 x25: ffff800020fe7020 x24: dfff800000000000
x23: 0000000000510000 x22: 000000000050d000 x21: 0000000000000000
x20: ffff7000041fcdf8 x19: 0000000000000208 x18: 1fffe00033e7697e
x17: ffff80001537d000 x16: ffff8000082f2a30 x15: 0000000000000000
x14: ffff7000041fce02 x13: 0000000000003000 x12: a8000000000050d0
x11: ff00800009fd9b8c x10: 0000000000000000 x9 : ffff800009fd9b8c
x8 : 0000000000000041 x7 : 00000000003000a8 x6 : 000000000050d000
x5 : 0000000000000000 x4 : 0000000000000001 x3 : ffff0000deff82a8
x2 : 000000000050ffff x1 : 000000000050d000 x0 : 0000000000000000
Call trace:
 btrfs_lookup_csums_range+0xb0/0xea8 fs/btrfs/file-item.c:518
 scrub_simple_mirror+0x5b0/0x126c fs/btrfs/scrub.c:3480
 scrub_stripe+0x840/0x15a4 fs/btrfs/scrub.c:3665
 scrub_chunk+0x2d4/0x37c fs/btrfs/scrub.c:3800
 scrub_enumerate_chunks+0x93c/0x132c fs/btrfs/scrub.c:4069
 btrfs_scrub_dev+0x730/0x104c fs/btrfs/scrub.c:4415
 btrfs_ioctl_scrub+0x1e0/0x3d4 fs/btrfs/ioctl.c:4115
 btrfs_ioctl+0x908/0xb38 fs/btrfs/ioctl.c:5588
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl fs/ioctl.c:856 [inline]
 __arm64_sys_ioctl+0x14c/0x1c8 fs/ioctl.c:856
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall+0x98/0x290 arch/arm64/kernel/syscall.c:52
 el0_svc_common+0x13c/0x258 arch/arm64/kernel/syscall.c:140
 do_el0_svc+0x5c/0x134 arch/arm64/kernel/syscall.c:204
 el0_svc+0x58/0x128 arch/arm64/kernel/entry-common.c:637
 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585
Code: a9002688 979362b0 91082373 d343fe68 (38786908) 
---[ end trace 0000000000000000 ]---
----------------
Code disassembly (best guess):
   0:	a9002688 	stp	x8, x9, [x20]
   4:	979362b0 	bl	0xfffffffffe4d8ac4
   8:	91082373 	add	x19, x27, #0x208
   c:	d343fe68 	lsr	x8, x19, #3
* 10:	38786908 	ldrb	w8, [x8, x24] <-- trapping instruction

Crashes (25):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/07/11 00:03 linux-6.1.y 090666d3cc90 99e64375 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (clean fs)] ci2-linux-6-1-kasan-arm64 BUG: unable to handle kernel paging request in btrfs_lookup_csums_range
2025/09/13 01:58 linux-6.1.y 3db754f56897 e2beed91 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (clean fs)] ci2-linux-6-1-kasan-arm64 BUG: unable to handle kernel paging request in btrfs_lookup_csums_range
2025/05/31 03:55 linux-6.1.y da3c5173c55f 3d2f584d .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (clean fs)] ci2-linux-6-1-kasan-arm64 BUG: unable to handle kernel paging request in btrfs_lookup_csums_range
2025/05/31 01:14 linux-6.1.y da3c5173c55f 3d2f584d .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (clean fs)] ci2-linux-6-1-kasan-arm64 BUG: unable to handle kernel paging request in btrfs_lookup_csums_range
2025/05/30 23:13 linux-6.1.y da3c5173c55f 3d2f584d .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (clean fs)] ci2-linux-6-1-kasan-arm64 BUG: unable to handle kernel paging request in btrfs_lookup_csums_range
2025/05/30 22:23 linux-6.1.y da3c5173c55f 3d2f584d .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (clean fs)] ci2-linux-6-1-kasan-arm64 BUG: unable to handle kernel paging request in btrfs_lookup_csums_range
2025/10/31 03:17 linux-6.1.y f6e38ae624cf 2c50b6a9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 BUG: unable to handle kernel paging request in btrfs_lookup_csums_range
2025/10/31 03:16 linux-6.1.y f6e38ae624cf 2c50b6a9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 BUG: unable to handle kernel paging request in btrfs_lookup_csums_range
2025/10/31 01:13 linux-6.1.y f6e38ae624cf 2c50b6a9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 BUG: unable to handle kernel paging request in btrfs_lookup_csums_range
2025/10/31 01:13 linux-6.1.y f6e38ae624cf 2c50b6a9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 BUG: unable to handle kernel paging request in btrfs_lookup_csums_range
2025/09/27 04:09 linux-6.1.y 7b34dc04e4ff 001c9061 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 BUG: unable to handle kernel paging request in btrfs_lookup_csums_range
2025/09/20 17:00 linux-6.1.y 363a599da6d9 67c37560 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 BUG: unable to handle kernel paging request in btrfs_lookup_csums_range
2025/09/13 01:21 linux-6.1.y 3db754f56897 e2beed91 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 BUG: unable to handle kernel paging request in btrfs_lookup_csums_range
2025/08/03 18:21 linux-6.1.y 3594f306da12 7368264b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 BUG: unable to handle kernel paging request in btrfs_lookup_csums_range
2025/08/03 18:19 linux-6.1.y 3594f306da12 7368264b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 BUG: unable to handle kernel paging request in btrfs_lookup_csums_range
2025/06/12 14:26 linux-6.1.y 58485ff1a74f 98683f8f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 BUG: unable to handle kernel paging request in btrfs_lookup_csums_range
2025/06/06 19:10 linux-6.1.y 58485ff1a74f 9fa58bba .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 BUG: unable to handle kernel paging request in btrfs_lookup_csums_range
2025/06/06 04:02 linux-6.1.y 58485ff1a74f 6b6b5f21 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 BUG: unable to handle kernel paging request in btrfs_lookup_csums_range
2025/06/06 04:00 linux-6.1.y 58485ff1a74f 6b6b5f21 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 BUG: unable to handle kernel paging request in btrfs_lookup_csums_range
2025/05/30 23:35 linux-6.1.y da3c5173c55f 3d2f584d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 BUG: unable to handle kernel paging request in btrfs_lookup_csums_range
2025/05/30 21:24 linux-6.1.y da3c5173c55f 3d2f584d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 BUG: unable to handle kernel paging request in btrfs_lookup_csums_range
2025/09/27 03:06 linux-6.1.y 7b34dc04e4ff 001c9061 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in btrfs_lookup_csums_range
2025/09/27 03:06 linux-6.1.y 7b34dc04e4ff 001c9061 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in btrfs_lookup_csums_range
2025/08/04 00:40 linux-6.1.y 3594f306da12 7368264b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in btrfs_lookup_csums_range
2025/08/04 00:40 linux-6.1.y 3594f306da12 7368264b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in btrfs_lookup_csums_range
* Struck through repros no longer work on HEAD.