syzbot


general protection fault in btrfs_root_node

Status: upstream: reported C repro on 2025/12/30 12:00
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+4ae02193d2fd76fd07e2@syzkaller.appspotmail.com
First crash: 14d, last: 11d
Bug presence (2)
Date Name Commit Repro Result
2026/01/02 linux-6.6.y (ToT) 5fa4793a2d2d C [report] general protection fault in btrfs_root_node
2026/01/02 upstream (ToT) b69053dd3ffb 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 100d 497d 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 53 22h38m 848d 0/3 upstream: reported C repro on 2023/09/18 04:34
linux-6.1 BUG: unable to handle kernel paging request in btrfs_root_node origin:upstream missing-backport 8 C inconclusive 36 14h35m 443d 0/3 upstream: reported C repro on 2024/10/27 14:03
linux-5.15 KASAN: null-ptr-deref Write in btrfs_root_node 12 1 995d 995d 0/3 auto-obsoleted due to no activity on 2023/08/22 05:04
Fix bisection attempts (1)
Created Duration User Patch Repo Result
2026/01/12 16:28 1h47m fix candidate upstream OK (0) job log

Sample crash report:
BTRFS info (device loop0): use no compression
BTRFS info (device loop0): using free space tree
BTRFS error (device loop0): failed to load root extent
BTRFS info (device loop0): enabling ssd optimizations
general protection fault, probably for non-canonical address 0xdffffc0000000003: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000018-0x000000000000001f]
CPU: 1 PID: 5925 Comm: syz.0.17 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025
RIP: 0010:btrfs_root_node+0x7f/0x3a0 fs/btrfs/ctree.c:260
Code: e7 7c f7 fd 48 83 c4 08 e8 2e 01 f8 06 89 c5 31 ff 89 c6 e8 43 18 16 fe 85 ed 74 17 e8 8a 1d 00 fe 84 c0 74 1c e8 81 14 16 fe <42> 80 3c 2b 00 75 4b eb 51 e8 73 14 16 fe 42 80 3c 2b 00 75 3d eb
RSP: 0018:ffffc900049ef598 EFLAGS: 00010293
RAX: ffffffff836f7c3f RBX: 0000000000000003 RCX: ffff888022661e00
RDX: 0000000000000000 RSI: ffffffff8afc6f60 RDI: ffffffff8afc6f20
RBP: 0000000000000001 R08: dffffc0000000000 R09: 1ffffffff21b28a0
R10: dffffc0000000000 R11: fffffbfff21b28a1 R12: ffffffff836f7bfc
R13: dffffc0000000000 R14: 0000000000000018 R15: 0000000000000038
FS:  0000555591ba6500(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f367d735008 CR3: 0000000076897000 CR4: 00000000003506e0
Call Trace:
 <TASK>
 btrfs_read_lock_root_node+0x82/0x3a0 fs/btrfs/locking.c:278
 btrfs_build_ref_tree+0x11e/0x1200 fs/btrfs/ref-verify.c:1005
 open_ctree+0x22cc/0x2ce0 fs/btrfs/disk-io.c:3539
 btrfs_fill_super+0x1c2/0x300 fs/btrfs/super.c:1163
 btrfs_mount_root+0x8be/0x920 fs/btrfs/super.c:1527
 legacy_get_tree+0xea/0x180 fs/fs_context.c:662
 vfs_get_tree+0x8c/0x280 fs/super.c:1764
 fc_mount fs/namespace.c:1117 [inline]
 vfs_kern_mount+0xbe/0x160 fs/namespace.c:1147
 btrfs_mount+0x2e1/0xa70 fs/btrfs/super.c:1587
 legacy_get_tree+0xea/0x180 fs/fs_context.c:662
 vfs_get_tree+0x8c/0x280 fs/super.c:1764
 do_new_mount+0x24b/0xa40 fs/namespace.c:3386
 do_mount fs/namespace.c:3726 [inline]
 __do_sys_mount fs/namespace.c:3935 [inline]
 __se_sys_mount+0x2da/0x3c0 fs/namespace.c:3912
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f68ddb90eea
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffdde44c568 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ffdde44c5f0 RCX: 00007f68ddb90eea
RDX: 0000200000000000 RSI: 0000200000000040 RDI: 00007ffdde44c5b0
RBP: 0000200000000000 R08: 00007ffdde44c5f0 R09: 000000000001c005
R10: 000000000001c005 R11: 0000000000000246 R12: 0000200000000040
R13: 00007ffdde44c5b0 R14: 00000000000055ae R15: 00002000000003c0
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:btrfs_root_node+0x7f/0x3a0 fs/btrfs/ctree.c:260
Code: e7 7c f7 fd 48 83 c4 08 e8 2e 01 f8 06 89 c5 31 ff 89 c6 e8 43 18 16 fe 85 ed 74 17 e8 8a 1d 00 fe 84 c0 74 1c e8 81 14 16 fe <42> 80 3c 2b 00 75 4b eb 51 e8 73 14 16 fe 42 80 3c 2b 00 75 3d eb
RSP: 0018:ffffc900049ef598 EFLAGS: 00010293
RAX: ffffffff836f7c3f RBX: 0000000000000003 RCX: ffff888022661e00
RDX: 0000000000000000 RSI: ffffffff8afc6f60 RDI: ffffffff8afc6f20
RBP: 0000000000000001 R08: dffffc0000000000 R09: 1ffffffff21b28a0
R10: dffffc0000000000 R11: fffffbfff21b28a1 R12: ffffffff836f7bfc
R13: dffffc0000000000 R14: 0000000000000018 R15: 0000000000000038
FS:  0000555591ba6500(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f367d735008 CR3: 0000000076897000 CR4: 00000000003506e0
----------------
Code disassembly (best guess):
   0:	e7 7c                	out    %eax,$0x7c
   2:	f7 fd                	idiv   %ebp
   4:	48 83 c4 08          	add    $0x8,%rsp
   8:	e8 2e 01 f8 06       	call   0x6f8013b
   d:	89 c5                	mov    %eax,%ebp
   f:	31 ff                	xor    %edi,%edi
  11:	89 c6                	mov    %eax,%esi
  13:	e8 43 18 16 fe       	call   0xfe16185b
  18:	85 ed                	test   %ebp,%ebp
  1a:	74 17                	je     0x33
  1c:	e8 8a 1d 00 fe       	call   0xfe001dab
  21:	84 c0                	test   %al,%al
  23:	74 1c                	je     0x41
  25:	e8 81 14 16 fe       	call   0xfe1614ab
* 2a:	42 80 3c 2b 00       	cmpb   $0x0,(%rbx,%r13,1) <-- trapping instruction
  2f:	75 4b                	jne    0x7c
  31:	eb 51                	jmp    0x84
  33:	e8 73 14 16 fe       	call   0xfe1614ab
  38:	42 80 3c 2b 00       	cmpb   $0x0,(%rbx,%r13,1)
  3d:	75 3d                	jne    0x7c
  3f:	eb                   	.byte 0xeb

Crashes (7):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/12/30 17:29 linux-6.6.y 5fa4793a2d2d d6526ea3 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-linux-6-6-kasan general protection fault in btrfs_root_node
2025/12/30 16:23 linux-6.6.y 5fa4793a2d2d d6526ea3 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-linux-6-6-kasan general protection fault in btrfs_root_node
2025/12/30 15:11 linux-6.6.y 5fa4793a2d2d d6526ea3 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-linux-6-6-kasan general protection fault in btrfs_root_node
2025/12/30 14:11 linux-6.6.y 5fa4793a2d2d d6526ea3 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-linux-6-6-kasan general protection fault in btrfs_root_node
2025/12/30 13:02 linux-6.6.y 5fa4793a2d2d d6526ea3 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-linux-6-6-kasan general protection fault in btrfs_root_node
2025/12/31 04:40 linux-6.6.y 5fa4793a2d2d d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan general protection fault in btrfs_root_node
2025/12/30 11:59 linux-6.6.y 5fa4793a2d2d d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan general protection fault in btrfs_root_node
* Struck through repros no longer work on HEAD.