BTRFS info (device loop0): using sha256 (sha256-avx2) checksum algorithm BTRFS info (device loop0): enabling ssd optimizations BTRFS info (device loop0): using spread ssd allocation scheme BTRFS info (device loop0): turning on sync discard BTRFS info (device loop0): using free space tree general protection fault, probably for non-canonical address 0xdffffc0000000023: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000118-0x000000000000011f] CPU: 1 PID: 5437 Comm: syz-executor.0 Not tainted 6.5.0-rc7-syzkaller-00004-gf7757129e3de-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 RIP: 0010:btrfs_header_nritems fs/btrfs/accessors.h:667 [inline] RIP: 0010:load_global_roots_objectid+0x273/0x8c0 fs/btrfs/disk-io.c:2120 Code: 8b 7c 24 40 48 8b 44 24 58 42 80 3c 28 00 74 08 4c 89 e7 e8 3f fe 59 fe 49 8b 1c 24 48 8d bb 18 01 00 00 48 89 f8 48 c1 e8 03 <42> 80 3c 28 00 74 05 e8 21 fe 59 fe 4c 8b a3 18 01 00 00 49 c1 e4 RSP: 0018:ffffc900052e7480 EFLAGS: 00010202 RAX: 0000000000000023 RBX: 0000000000000000 RCX: ffff8880230d3b80 RDX: ffff8880230d3b80 RSI: 0000000000000002 RDI: 0000000000000118 RBP: ffffc900052e75b0 R08: ffffffff838a8b86 R09: fffff52000a5ce40 R10: dffffc0000000000 R11: fffff52000a5ce40 R12: ffff88802c7cc160 R13: dffffc0000000000 R14: 0000000000000002 R15: 0000000000000000 FS: 00007f1c0fbb36c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f2c1d1d15e8 CR3: 0000000023c3f000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: load_global_roots fs/btrfs/disk-io.c:2184 [inline] btrfs_read_roots fs/btrfs/disk-io.c:2211 [inline] init_tree_roots+0x9a0/0x1db0 fs/btrfs/disk-io.c:2635 open_ctree+0x1b3d/0x3030 fs/btrfs/disk-io.c:3333 btrfs_fill_super+0x1c7/0x2f0 fs/btrfs/super.c:1154 btrfs_mount_root+0x7e0/0x910 fs/btrfs/super.c:1519 legacy_get_tree+0xef/0x190 fs/fs_context.c:611 vfs_get_tree+0x8c/0x270 fs/super.c:1519 fc_mount fs/namespace.c:1112 [inline] vfs_kern_mount+0xbc/0x150 fs/namespace.c:1142 btrfs_mount+0x39f/0xb50 fs/btrfs/super.c:1579 legacy_get_tree+0xef/0x190 fs/fs_context.c:611 vfs_get_tree+0x8c/0x270 fs/super.c:1519 do_new_mount+0x28f/0xae0 fs/namespace.c:3335 do_mount fs/namespace.c:3675 [inline] __do_sys_mount fs/namespace.c:3884 [inline] __se_sys_mount+0x2d9/0x3c0 fs/namespace.c:3861 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f1c0ee7e1ea Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 09 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f1c0fbb2ee8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f1c0fbb2f80 RCX: 00007f1c0ee7e1ea RDX: 00000000200055c0 RSI: 0000000020005600 RDI: 00007f1c0fbb2f40 RBP: 00000000200055c0 R08: 00007f1c0fbb2f80 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000020005600 R13: 00007f1c0fbb2f40 R14: 00000000000055a8 R15: 00000000200013c0 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:btrfs_header_nritems fs/btrfs/accessors.h:667 [inline] RIP: 0010:load_global_roots_objectid+0x273/0x8c0 fs/btrfs/disk-io.c:2120 Code: 8b 7c 24 40 48 8b 44 24 58 42 80 3c 28 00 74 08 4c 89 e7 e8 3f fe 59 fe 49 8b 1c 24 48 8d bb 18 01 00 00 48 89 f8 48 c1 e8 03 <42> 80 3c 28 00 74 05 e8 21 fe 59 fe 4c 8b a3 18 01 00 00 49 c1 e4 RSP: 0018:ffffc900052e7480 EFLAGS: 00010202 RAX: 0000000000000023 RBX: 0000000000000000 RCX: ffff8880230d3b80 RDX: ffff8880230d3b80 RSI: 0000000000000002 RDI: 0000000000000118 RBP: ffffc900052e75b0 R08: ffffffff838a8b86 R09: fffff52000a5ce40 R10: dffffc0000000000 R11: fffff52000a5ce40 R12: ffff88802c7cc160 R13: dffffc0000000000 R14: 0000000000000002 R15: 0000000000000000 FS: 00007f1c0fbb36c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055ced827d950 CR3: 0000000023c3f000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 8b 7c 24 40 mov 0x40(%rsp),%edi 4: 48 8b 44 24 58 mov 0x58(%rsp),%rax 9: 42 80 3c 28 00 cmpb $0x0,(%rax,%r13,1) e: 74 08 je 0x18 10: 4c 89 e7 mov %r12,%rdi 13: e8 3f fe 59 fe call 0xfe59fe57 18: 49 8b 1c 24 mov (%r12),%rbx 1c: 48 8d bb 18 01 00 00 lea 0x118(%rbx),%rdi 23: 48 89 f8 mov %rdi,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 80 3c 28 00 cmpb $0x0,(%rax,%r13,1) <-- trapping instruction 2f: 74 05 je 0x36 31: e8 21 fe 59 fe call 0xfe59fe57 36: 4c 8b a3 18 01 00 00 mov 0x118(%rbx),%r12 3d: 49 rex.WB 3e: c1 .byte 0xc1 3f: e4 .byte 0xe4