Oops: general protection fault, probably for non-canonical address 0xdffffc0000000003: 0000 [#1] PREEMPT SMP KASAN PTI KASAN: null-ptr-deref in range [0x0000000000000018-0x000000000000001f] CPU: 0 UID: 0 PID: 5831 Comm: syz-executor118 Not tainted 6.12.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024 RIP: 0010:btrfs_root_node+0x86/0x3b0 fs/btrfs/ctree.c:260 Code: e0 bb c5 fd 48 83 c4 08 e8 c7 63 14 08 89 c3 31 ff 89 c6 e8 dc 52 ea fd 85 db 74 17 e8 e3 3b d0 fd 84 c0 74 1c e8 8a 4e ea fd <43> 80 3c 3c 00 75 4b eb 51 e8 7c 4e ea fd 43 80 3c 3c 00 75 3d eb RSP: 0018:ffffc90003df76c0 EFLAGS: 00010293 RAX: ffffffff83aa8b26 RBX: 0000000000000001 RCX: ffff888024339e00 RDX: 0000000000000000 RSI: ffffffff8c603640 RDI: ffffffff8c603600 RBP: ffffc90003df78b0 R08: ffffffff83aa8b14 R09: 1ffffffff2853100 R10: dffffc0000000000 R11: fffffbfff2853101 R12: 0000000000000003 R13: dffffc0000000000 R14: 0000000000000018 R15: dffffc0000000000 FS: 000055556ec02380(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055fa03db78a0 CR3: 000000007a8b0000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: btrfs_read_lock_root_node+0x27/0xd0 fs/btrfs/locking.c:279 btrfs_build_ref_tree+0x112/0x16f0 fs/btrfs/ref-verify.c:1005 open_ctree+0x1fd0/0x2a50 fs/btrfs/disk-io.c:3523 btrfs_fill_super fs/btrfs/super.c:974 [inline] btrfs_get_tree_super fs/btrfs/super.c:1896 [inline] btrfs_get_tree+0x1276/0x1a10 fs/btrfs/super.c:2107 vfs_get_tree+0x90/0x2b0 fs/super.c:1814 fc_mount+0x1b/0xb0 fs/namespace.c:1231 btrfs_get_tree_subvol fs/btrfs/super.c:2070 [inline] btrfs_get_tree+0x65b/0x1a10 fs/btrfs/super.c:2108 vfs_get_tree+0x90/0x2b0 fs/super.c:1814 do_new_mount+0x2be/0xb40 fs/namespace.c:3507 do_mount fs/namespace.c:3847 [inline] __do_sys_mount fs/namespace.c:4057 [inline] __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:4034 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7feff06b7a4a Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 5e 04 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffc4d92d5a8 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007ffc4d92d5b0 RCX: 00007feff06b7a4a RDX: 0000000020000080 RSI: 0000000020000000 RDI: 00007ffc4d92d5b0 RBP: 0000000000000004 R08: 00007ffc4d92d5f0 R09: 00000000000055c5 R10: 000000000001c005 R11: 0000000000000282 R12: 00007ffc4d92d5f0 R13: 0000000000000003 R14: 0000000001000000 R15: 0000000000000001 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:btrfs_root_node+0x86/0x3b0 fs/btrfs/ctree.c:260 Code: e0 bb c5 fd 48 83 c4 08 e8 c7 63 14 08 89 c3 31 ff 89 c6 e8 dc 52 ea fd 85 db 74 17 e8 e3 3b d0 fd 84 c0 74 1c e8 8a 4e ea fd <43> 80 3c 3c 00 75 4b eb 51 e8 7c 4e ea fd 43 80 3c 3c 00 75 3d eb RSP: 0018:ffffc90003df76c0 EFLAGS: 00010293 RAX: ffffffff83aa8b26 RBX: 0000000000000001 RCX: ffff888024339e00 RDX: 0000000000000000 RSI: ffffffff8c603640 RDI: ffffffff8c603600 RBP: ffffc90003df78b0 R08: ffffffff83aa8b14 R09: 1ffffffff2853100 R10: dffffc0000000000 R11: fffffbfff2853101 R12: 0000000000000003 R13: dffffc0000000000 R14: 0000000000000018 R15: dffffc0000000000 FS: 000055556ec02380(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055fa03db78a0 CR3: 000000007a8b0000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess), 3 bytes skipped: 0: fd std 1: 48 83 c4 08 add $0x8,%rsp 5: e8 c7 63 14 08 call 0x81463d1 a: 89 c3 mov %eax,%ebx c: 31 ff xor %edi,%edi e: 89 c6 mov %eax,%esi 10: e8 dc 52 ea fd call 0xfdea52f1 15: 85 db test %ebx,%ebx 17: 74 17 je 0x30 19: e8 e3 3b d0 fd call 0xfdd03c01 1e: 84 c0 test %al,%al 20: 74 1c je 0x3e 22: e8 8a 4e ea fd call 0xfdea4eb1 * 27: 43 80 3c 3c 00 cmpb $0x0,(%r12,%r15,1) <-- trapping instruction 2c: 75 4b jne 0x79 2e: eb 51 jmp 0x81 30: e8 7c 4e ea fd call 0xfdea4eb1 35: 43 80 3c 3c 00 cmpb $0x0,(%r12,%r15,1) 3a: 75 3d jne 0x79 3c: eb .byte 0xeb