general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] CPU: 0 PID: 7982 Comm: syz.5.576 Not tainted 5.15.180-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 RIP: 0010:btrfs_root_node+0x4f/0x350 fs/btrfs/ctree.c:132 Code: e3 2d fe e8 c3 56 01 00 e8 be 92 6a 06 89 c5 31 ff 89 c6 e8 c3 60 41 fe 85 ed 74 17 e8 ea 37 2d fe 84 c0 74 1c e8 51 5d 41 fe <42> 80 3c 23 00 75 4b eb 51 e8 43 5d 41 fe 42 80 3c 23 00 75 3d eb RSP: 0018:ffffc9000431f588 EFLAGS: 00010283 RAX: ffffffff8336601f RBX: 0000000000000000 RCX: 0000000000080000 RDX: ffffc9001504d000 RSI: 000000000002681b RDI: 000000000002681c RBP: 0000000000000001 R08: dffffc0000000000 R09: fffffbfff1ff3419 R10: fffffbfff1ff3419 R11: 1ffffffff1ff3418 R12: dffffc0000000000 R13: 0000000000000000 R14: dffffc0000000000 R15: 0000000000000000 FS: 00007f1a85ff76c0(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000857000 CR3: 0000000047a92000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 00000000ffff5325 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: btrfs_read_lock_root_node+0x75/0x390 fs/btrfs/locking.c:276 btrfs_build_ref_tree+0x133/0x1180 fs/btrfs/ref-verify.c:993 open_ctree+0x26dd/0x3250 fs/btrfs/disk-io.c:3609 btrfs_fill_super+0x1c2/0x2e0 fs/btrfs/super.c:1387 btrfs_mount_root+0x857/0x8c0 fs/btrfs/super.c:1752 legacy_get_tree+0xe6/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+0xba/0x150 fs/namespace.c:1030 btrfs_mount+0x2d7/0xa50 fs/btrfs/super.c:1812 legacy_get_tree+0xe6/0x180 fs/fs_context.c:611 vfs_get_tree+0x88/0x270 fs/super.c:1530 do_new_mount+0x24a/0xa40 fs/namespace.c:3012 do_mount fs/namespace.c:3355 [inline] __do_sys_mount fs/namespace.c:3563 [inline] __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:3540 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f1a8819110a 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:00007f1a85ff6e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f1a85ff6ef0 RCX: 00007f1a8819110a RDX: 0000200000000080 RSI: 0000200000000040 RDI: 00007f1a85ff6eb0 RBP: 0000200000000080 R08: 00007f1a85ff6ef0 R09: 000000000001c005 R10: 000000000001c005 R11: 0000000000000246 R12: 0000200000000040 R13: 00007f1a85ff6eb0 R14: 00000000000055cb R15: 00002000000001c0 Modules linked in: ---[ end trace 97a6a02d3f053ecc ]--- RIP: 0010:btrfs_root_node+0x4f/0x350 fs/btrfs/ctree.c:132 Code: e3 2d fe e8 c3 56 01 00 e8 be 92 6a 06 89 c5 31 ff 89 c6 e8 c3 60 41 fe 85 ed 74 17 e8 ea 37 2d fe 84 c0 74 1c e8 51 5d 41 fe <42> 80 3c 23 00 75 4b eb 51 e8 43 5d 41 fe 42 80 3c 23 00 75 3d eb RSP: 0018:ffffc9000431f588 EFLAGS: 00010283 RAX: ffffffff8336601f RBX: 0000000000000000 RCX: 0000000000080000 RDX: ffffc9001504d000 RSI: 000000000002681b RDI: 000000000002681c RBP: 0000000000000001 R08: dffffc0000000000 R09: fffffbfff1ff3419 R10: fffffbfff1ff3419 R11: 1ffffffff1ff3418 R12: dffffc0000000000 R13: 0000000000000000 R14: dffffc0000000000 R15: 0000000000000000 FS: 00007f1a85ff76c0(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f9e5b3ac723 CR3: 0000000047a92000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 00000000ffff5325 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess), 1 bytes skipped: 0: 2d fe e8 c3 56 sub $0x56c3e8fe,%eax 5: 01 00 add %eax,(%rax) 7: e8 be 92 6a 06 call 0x66a92ca c: 89 c5 mov %eax,%ebp e: 31 ff xor %edi,%edi 10: 89 c6 mov %eax,%esi 12: e8 c3 60 41 fe call 0xfe4160da 17: 85 ed test %ebp,%ebp 19: 74 17 je 0x32 1b: e8 ea 37 2d fe call 0xfe2d380a 20: 84 c0 test %al,%al 22: 74 1c je 0x40 24: e8 51 5d 41 fe call 0xfe415d7a * 29: 42 80 3c 23 00 cmpb $0x0,(%rbx,%r12,1) <-- trapping instruction 2e: 75 4b jne 0x7b 30: eb 51 jmp 0x83 32: e8 43 5d 41 fe call 0xfe415d7a 37: 42 80 3c 23 00 cmpb $0x0,(%rbx,%r12,1) 3c: 75 3d jne 0x7b 3e: eb .byte 0xeb