Oops: general protection fault, probably for non-canonical address 0xdffffc0000000003: 0000 [#1] PREEMPT SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000018-0x000000000000001f] CPU: 1 UID: 0 PID: 7843 Comm: syz.6.520 Not tainted 6.12.0-syzkaller-07834-g06afb0f36106 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:btrfs_root_node+0x86/0x3b0 fs/btrfs/ctree.c:260 Code: 40 98 cb fd 48 83 c4 08 e8 37 fc 21 08 89 c3 31 ff 89 c6 e8 6c 5e f0 fd 85 db 74 17 e8 23 f9 d5 fd 84 c0 74 1c e8 1a 5a f0 fd <43> 80 3c 3c 00 75 4b eb 51 e8 0c 5a f0 fd 43 80 3c 3c 00 75 3d eb RSP: 0018:ffffc9001f6bf6c0 EFLAGS: 00010293 RAX: ffffffff83a4f316 RBX: 0000000000000001 RCX: ffff88802b970000 RDX: 0000000000000000 RSI: ffffffff8c607280 RDI: ffffffff8c607240 RBP: ffffc9001f6bf8b0 R08: ffffffff83a4f304 R09: 1ffffffff285cb10 R10: dffffc0000000000 R11: fffffbfff285cb11 R12: 0000000000000003 R13: dffffc0000000000 R14: 0000000000000018 R15: dffffc0000000000 FS: 00007f66c11d56c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110c38e6be CR3: 000000006829a000 CR4: 0000000000350ef0 Call Trace: btrfs_read_lock_root_node+0x27/0xd0 fs/btrfs/locking.c:264 btrfs_build_ref_tree+0x112/0x16f0 fs/btrfs/ref-verify.c:1005 open_ctree+0x1fb1/0x2a30 fs/btrfs/disk-io.c:3520 btrfs_fill_super fs/btrfs/super.c:972 [inline] btrfs_get_tree_super fs/btrfs/super.c:1894 [inline] btrfs_get_tree+0x1274/0x1a10 fs/btrfs/super.c:2105 vfs_get_tree+0x92/0x2b0 fs/super.c:1814 fc_mount+0x1b/0xb0 fs/namespace.c:1231 btrfs_get_tree_subvol fs/btrfs/super.c:2068 [inline] btrfs_get_tree+0x65b/0x1a10 fs/btrfs/super.c:2106 vfs_get_tree+0x92/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:0x7f66c337ffba 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:00007f66c11d4e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f66c11d4ef0 RCX: 00007f66c337ffba RDX: 0000000020000080 RSI: 0000000020000040 RDI: 00007f66c11d4eb0 RBP: 0000000020000080 R08: 00007f66c11d4ef0 R09: 000000000001c005 R10: 000000000001c005 R11: 0000000000000246 R12: 0000000020000040 R13: 00007f66c11d4eb0 R14: 00000000000055cb R15: 0000000020000e00 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:btrfs_root_node+0x86/0x3b0 fs/btrfs/ctree.c:260 Code: 40 98 cb fd 48 83 c4 08 e8 37 fc 21 08 89 c3 31 ff 89 c6 e8 6c 5e f0 fd 85 db 74 17 e8 23 f9 d5 fd 84 c0 74 1c e8 1a 5a f0 fd <43> 80 3c 3c 00 75 4b eb 51 e8 0c 5a f0 fd 43 80 3c 3c 00 75 3d eb RSP: 0018:ffffc9001f6bf6c0 EFLAGS: 00010293 RAX: ffffffff83a4f316 RBX: 0000000000000001 RCX: ffff88802b970000 RDX: 0000000000000000 RSI: ffffffff8c607280 RDI: ffffffff8c607240 RBP: ffffc9001f6bf8b0 R08: ffffffff83a4f304 R09: 1ffffffff285cb10 R10: dffffc0000000000 R11: fffffbfff285cb11 R12: 0000000000000003 R13: dffffc0000000000 R14: 0000000000000018 R15: dffffc0000000000 FS: 00007f66c11d56c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f9cb29afd58 CR3: 000000006829a000 CR4: 0000000000350ef0 ---------------- Code disassembly (best guess): 0: 40 98 rex cwtl 2: cb lret 3: fd std 4: 48 83 c4 08 add $0x8,%rsp 8: e8 37 fc 21 08 call 0x821fc44 d: 89 c3 mov %eax,%ebx f: 31 ff xor %edi,%edi 11: 89 c6 mov %eax,%esi 13: e8 6c 5e f0 fd call 0xfdf05e84 18: 85 db test %ebx,%ebx 1a: 74 17 je 0x33 1c: e8 23 f9 d5 fd call 0xfdd5f944 21: 84 c0 test %al,%al 23: 74 1c je 0x41 25: e8 1a 5a f0 fd call 0xfdf05a44 * 2a: 43 80 3c 3c 00 cmpb $0x0,(%r12,%r15,1) <-- trapping instruction 2f: 75 4b jne 0x7c 31: eb 51 jmp 0x84 33: e8 0c 5a f0 fd call 0xfdf05a44 38: 43 80 3c 3c 00 cmpb $0x0,(%r12,%r15,1) 3d: 75 3d jne 0x7c 3f: eb .byte 0xeb