BTRFS info (device loop4): enabling ssd optimizations general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] CPU: 1 PID: 8283 Comm: syz.4.605 Not tainted 5.15.178-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 RIP: 0010:btrfs_root_node+0x57/0x370 fs/btrfs/ctree.c:132 Code: 5b 09 fe e8 0b 7a 01 00 e8 96 c5 dc 06 89 c3 31 ff 89 c6 e8 7b f9 1d fe 85 db 74 17 e8 02 aa 08 fe 84 c0 74 1c e8 09 f6 1d fe <43> 80 3c 37 00 75 4b eb 51 e8 fb f5 1d fe 43 80 3c 37 00 75 3d eb RSP: 0018:ffffc90003d4f4e8 EFLAGS: 00010287 RAX: ffffffff83628f87 RBX: 0000000000000001 RCX: 0000000000080000 RDX: ffffc900054e9000 RSI: 000000000005ab23 RDI: 000000000005ab24 RBP: 0000000000000020 R08: ffffffff83628f75 R09: fffffbfff2131821 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000004 R13: 0000000000000000 R14: dffffc0000000000 R15: 0000000000000000 FS: 00007fb06851f6c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055ce6c3c8008 CR3: 000000006863e000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: btrfs_read_lock_root_node+0x7b/0x3b0 fs/btrfs/locking.c:276 btrfs_build_ref_tree+0x13b/0x1600 fs/btrfs/ref-verify.c:993 open_ctree+0x2c7b/0x3500 fs/btrfs/disk-io.c:3609 btrfs_fill_super+0x1c7/0x2d0 fs/btrfs/super.c:1387 btrfs_mount_root+0x803/0x930 fs/btrfs/super.c:1752 legacy_get_tree+0xeb/0x180 fs/fs_context.c:611 vfs_get_tree+0x88/0x270 fs/super.c:1530 fc_mount fs/namespace.c:1000 [inline] vfs_kern_mount+0xb8/0x150 fs/namespace.c:1030 btrfs_mount+0x395/0xb40 fs/btrfs/super.c:1812 legacy_get_tree+0xeb/0x180 fs/fs_context.c:611 vfs_get_tree+0x88/0x270 fs/super.c:1530 do_new_mount+0x2ba/0xb40 fs/namespace.c:3012 do_mount fs/namespace.c:3355 [inline] __do_sys_mount fs/namespace.c:3563 [inline] __se_sys_mount+0x2d5/0x3c0 fs/namespace.c:3540 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7fb06a6b758a 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:00007fb06851ee68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007fb06851eef0 RCX: 00007fb06a6b758a RDX: 0000400000000080 RSI: 0000400000000040 RDI: 00007fb06851eeb0 RBP: 0000400000000080 R08: 00007fb06851eef0 R09: 000000000001c005 R10: 000000000001c005 R11: 0000000000000246 R12: 0000400000000040 R13: 00007fb06851eeb0 R14: 00000000000055cb R15: 0000400000000140 Modules linked in: ---[ end trace 6891ee9932ccb66d ]--- RIP: 0010:btrfs_root_node+0x57/0x370 fs/btrfs/ctree.c:132 Code: 5b 09 fe e8 0b 7a 01 00 e8 96 c5 dc 06 89 c3 31 ff 89 c6 e8 7b f9 1d fe 85 db 74 17 e8 02 aa 08 fe 84 c0 74 1c e8 09 f6 1d fe <43> 80 3c 37 00 75 4b eb 51 e8 fb f5 1d fe 43 80 3c 37 00 75 3d eb RSP: 0018:ffffc90003d4f4e8 EFLAGS: 00010287 RAX: ffffffff83628f87 RBX: 0000000000000001 RCX: 0000000000080000 RDX: ffffc900054e9000 RSI: 000000000005ab23 RDI: 000000000005ab24 RBP: 0000000000000020 R08: ffffffff83628f75 R09: fffffbfff2131821 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000004 R13: 0000000000000000 R14: dffffc0000000000 R15: 0000000000000000 FS: 00007fb06851f6c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fb832990321 CR3: 000000006863e000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 5b pop %rbx 1: 09 fe or %edi,%esi 3: e8 0b 7a 01 00 call 0x17a13 8: e8 96 c5 dc 06 call 0x6dcc5a3 d: 89 c3 mov %eax,%ebx f: 31 ff xor %edi,%edi 11: 89 c6 mov %eax,%esi 13: e8 7b f9 1d fe call 0xfe1df993 18: 85 db test %ebx,%ebx 1a: 74 17 je 0x33 1c: e8 02 aa 08 fe call 0xfe08aa23 21: 84 c0 test %al,%al 23: 74 1c je 0x41 25: e8 09 f6 1d fe call 0xfe1df633 * 2a: 43 80 3c 37 00 cmpb $0x0,(%r15,%r14,1) <-- trapping instruction 2f: 75 4b jne 0x7c 31: eb 51 jmp 0x84 33: e8 fb f5 1d fe call 0xfe1df633 38: 43 80 3c 37 00 cmpb $0x0,(%r15,%r14,1) 3d: 75 3d jne 0x7c 3f: eb .byte 0xeb