BUG: unable to handle kernel paging request in btrfs_root_node

Status: upstream: reported C repro on 2024/10/27 14:03
Bug presence: origin:upstream
Labels: missing-backport
[Documentation on labels]
Reported-by: syzbot+83f9d214f99a8c47f5a3@syzkaller.appspotmail.com
First crash: 636d, last: 5d12h
Fix bisection: failed (error log, bisect log)
  
Bug presence (3)
Date Name Commit Repro Result
2025/11/13 linux-6.1.y (ToT) f6e38ae624cf C [report] BUG: unable to handle kernel paging request in btrfs_root_node
2024/10/31 upstream (ToT) 0fc810ae3ae1 C [report] BUG: unable to handle kernel paging request in btrfs_root_node
2025/11/13 upstream (ToT) 6fa9041b7177 C Didn't crash
Similar bugs (4)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in btrfs_root_node btrfs 8 C done 670 293d 690d 29/29 fixed on 2025/10/29 21:02
linux-5.15 KASAN: null-ptr-deref Write in btrfs_root_node (2) origin:lts-only 12 C done 55 12d 1042d 0/3 upstream: reported C repro on 2023/09/18 04:34
linux-5.15 KASAN: null-ptr-deref Write in btrfs_root_node 12 1 1189d 1189d 0/3 auto-obsoleted due to no activity on 2023/08/22 05:04
linux-6.6 general protection fault in btrfs_root_node origin:lts-only 2 C inconclusive 8 77d 207d 0/2 upstream: reported C repro on 2025/12/30 12:00
Fix bisection attempts (3)
Created Duration User Patch Repo Result
2025/12/01 00:19 2h09m fix candidate upstream OK (0) job log
2025/07/02 13:48 14m bisect fix linux-6.1.y error job log
2024/12/11 11:26 2h30m bisect fix linux-6.1.y OK (0) job log log

Sample crash report:
BTRFS info (device loop0): enabling ssd optimizations
Unable to handle kernel paging request at virtual address dfff800000000003
KASAN: null-ptr-deref in range [0x0000000000000018-0x000000000000001f]
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
[dfff800000000003] address between user and kernel address ranges
Internal error: Oops: 0000000096000006 [#1] PREEMPT SMP
Modules linked in:
CPU: 1 PID: 4463 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_root_node+0x7c/0x3d4 fs/btrfs/ctree.c:150
lr : rcu_read_lock include/linux/rcupdate.h:792 [inline]
lr : btrfs_root_node+0x7c/0x3d4 fs/btrfs/ctree.c:149
sp : ffff8000216672e0
x29: ffff8000216672e0 x28: dfff800000000000 x27: dfff800000000000
x26: 0000000000000007 x25: 0000000000000001 x24: ffff8000120eac60
x23: ffff8000120eaca0 x22: 0000000000000001 x21: 0000000000000003
x20: ffff800017d5d000 x19: 0000000000000018 x18: 1fffe00033e7697e
x17: 0000000000000000 x16: ffff800011b8ee98 x15: ffff800008a3fb04
x14: 0000000000000001 x13: 1ffff00002a70071 x12: 00000000abaa9e8a
x11: ff00800009f91d3c x10: 0000000000000000 x9 : ffff800009f91d3c
x8 : ffff0000d208d400 x7 : ffff800009fa566c x6 : 0000000000000000
x5 : 0000000000000000 x4 : 0000000000000000 x3 : 0000000000000002
x2 : 0000000000000008 x1 : ffff8000121e0280 x0 : 0000000000000001
Call trace:
 rcu_read_lock include/linux/rcupdate.h:792 [inline]
 btrfs_root_node+0x7c/0x3d4 fs/btrfs/ctree.c:149
 btrfs_read_lock_root_node+0x70/0x374 fs/btrfs/locking.c:277
 btrfs_build_ref_tree+0xf8/0x1020 fs/btrfs/ref-verify.c:1002
 open_ctree+0x1990/0x229c fs/btrfs/disk-io.c:3787
 btrfs_fill_super+0x1d8/0x2fc fs/btrfs/super.c:1469
 btrfs_mount_root+0x79c/0x7ec fs/btrfs/super.c:1834
 legacy_get_tree+0xd8/0x174 fs/fs_context.c:632
 vfs_get_tree+0x90/0x278 fs/super.c:1573
 fc_mount fs/namespace.c:1048 [inline]
 vfs_kern_mount+0xdc/0x178 fs/namespace.c:1078
 btrfs_mount+0x2dc/0x974 fs/btrfs/super.c:1894
 legacy_get_tree+0xd8/0x174 fs/fs_context.c:632
 vfs_get_tree+0x90/0x278 fs/super.c:1573
 do_new_mount+0x228/0x804 fs/namespace.c:3078
 path_mount+0x5ac/0xe6c fs/namespace.c:3408
 do_mount fs/namespace.c:3421 [inline]
 __do_sys_mount fs/namespace.c:3629 [inline]
 __se_sys_mount fs/namespace.c:3606 [inline]
 __arm64_sys_mount+0x4a0/0x5a0 fs/namespace.c:3606
 __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: 340000f9 978f3056 36000120 97948244 (387c6aa8) 
---[ end trace 0000000000000000 ]---
----------------
Code disassembly (best guess):
   0:	340000f9 	cbz	w25, 0x1c
   4:	978f3056 	bl	0xfffffffffe3cc15c
   8:	36000120 	tbz	w0, #0, 0x2c
   c:	97948244 	bl	0xfffffffffe52091c
* 10:	387c6aa8 	ldrb	w8, [x21, x28] <-- trapping instruction

Crashes (37):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/07/20 22:24 linux-6.1.y 090666d3cc90 de6a700d .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-linux-6-1-kasan-arm64 BUG: unable to handle kernel paging request in btrfs_root_node
2025/12/24 03:14 linux-6.1.y 50cbba13faa2 d6526ea3 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-linux-6-1-kasan-arm64 BUG: unable to handle kernel paging request in btrfs_root_node
2025/09/13 15:02 linux-6.1.y 3db754f56897 e2beed91 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-linux-6-1-kasan-arm64 BUG: unable to handle kernel paging request in btrfs_root_node
2025/05/26 11:12 linux-6.1.y da3c5173c55f 2d4582d0 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-linux-6-1-kasan-arm64 BUG: unable to handle kernel paging request in btrfs_root_node
2025/02/13 04:35 linux-6.1.y 0cbb5f65e52f b27c2402 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-linux-6-1-kasan-arm64 BUG: unable to handle kernel paging request in btrfs_root_node
2024/10/27 14:16 linux-6.1.y 7ec6f9fa3d97 65e8686b .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan-arm64 BUG: unable to handle kernel paging request in btrfs_root_node
2026/01/13 11:49 linux-6.1.y bec0e10ee67e d6526ea3 .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_root_node
2026/01/08 16:24 linux-6.1.y 50cbba13faa2 d6526ea3 .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_root_node
2025/12/30 07:55 linux-6.1.y 50cbba13faa2 d6526ea3 .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_root_node
2025/12/24 03:49 linux-6.1.y 50cbba13faa2 d6526ea3 .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_root_node
2025/12/24 02:30 linux-6.1.y 50cbba13faa2 d6526ea3 .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_root_node
2025/12/16 04:49 linux-6.1.y 50cbba13faa2 d6526ea3 .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_root_node
2025/12/13 18:42 linux-6.1.y 50cbba13faa2 d6526ea3 .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_root_node
2025/12/09 22:05 linux-6.1.y 50cbba13faa2 d6526ea3 .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_root_node
2025/11/29 00:54 linux-6.1.y f6e38ae624cf d6526ea3 .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_root_node
2025/11/15 14:31 linux-6.1.y f6e38ae624cf f7988ea4 .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_root_node
2025/11/03 16:37 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_root_node
2025/11/02 21:44 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_root_node
2025/10/12 12:51 linux-6.1.y 882efbdd9d34 ff1712fe .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_root_node
2025/10/08 14:58 linux-6.1.y 882efbdd9d34 7e2882b3 .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_root_node
2025/09/19 03:37 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_root_node
2025/09/13 14:28 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_root_node
2025/07/31 05:27 linux-6.1.y 3594f306da12 f8f2b4da .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_root_node
2025/07/20 19:35 linux-6.1.y 3369c6df2fae 7117feec .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_root_node
2025/07/12 21:10 linux-6.1.y dfc486ec9cce 3cda49cf .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_root_node
2025/06/02 06:44 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_root_node
2025/05/30 18:46 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_root_node
2025/05/26 10:44 linux-6.1.y da3c5173c55f 2d4582d0 .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_root_node
2025/05/07 09:56 linux-6.1.y ac7079a42ea5 350f4ffc .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_root_node
2025/04/09 00:34 linux-6.1.y 3dfebb87d7eb a775275d .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_root_node
2025/04/09 00:32 linux-6.1.y 3dfebb87d7eb a775275d .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_root_node
2025/03/07 13:04 linux-6.1.y 3a8358583626 831e3629 .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_root_node
2025/02/13 04:18 linux-6.1.y 0cbb5f65e52f b27c2402 .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_root_node
2025/01/12 12:18 linux-6.1.y c63962be84ef 6dbc6a9b .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_root_node
2025/01/07 03:48 linux-6.1.y 7dc732d24ff7 f3558dbf .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_root_node
2024/12/25 12:23 linux-6.1.y 29f02ec58a94 444551c4 .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_root_node
2024/10/27 14:03 linux-6.1.y 7ec6f9fa3d97 65e8686b .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_root_node
* Struck through repros no longer work on HEAD.