BTRFS error (device loop2): failed to load root free space assertion failed: !tmp, in fs/btrfs/disk-io.c:1105 ------------[ cut here ]------------ kernel BUG at fs/btrfs/ctree.h:3716! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 18685 Comm: syz-executor.2 Not tainted 6.1.31-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023 RIP: 0010:assertfail+0x18/0x1a fs/btrfs/ctree.h:3716 Code: 60 1b 2d 8b 48 c7 c2 80 18 2d 8b e8 07 e4 ff ff 0f 0b 89 f1 48 89 fe 48 c7 c7 60 4b 2d 8b 48 c7 c2 50 1d 2d 8b e8 ed e3 ff ff <0f> 0b 55 48 89 e5 41 57 41 56 41 55 41 54 53 48 83 e4 e0 48 81 ec RSP: 0018:ffffc9000fd3f448 EFLAGS: 00010246 RAX: 0000000000000032 RBX: 0000000000000000 RCX: aec974505cba7d00 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: ffff88815b2600a0 R08: ffffffff816d9a9c R09: ffffed1017324f1c R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000 R13: ffff888022ff61f7 R14: ffff88815b260060 R15: ffff8880931ce000 FS: 00007f7fc2788700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f8faa518000 CR3: 0000000158aeb000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: btrfs_global_root_insert+0x1a1/0x1b0 fs/btrfs/disk-io.c:1105 load_global_roots_objectid+0x465/0x8b0 fs/btrfs/disk-io.c:2481 load_global_roots fs/btrfs/disk-io.c:2515 [inline] btrfs_read_roots fs/btrfs/disk-io.c:2542 [inline] init_tree_roots+0xa28/0x1f6a fs/btrfs/disk-io.c:2961 open_ctree+0x1b41/0x2e06 fs/btrfs/disk-io.c:3668 btrfs_fill_super+0x1c7/0x2d0 fs/btrfs/super.c:1465 btrfs_mount_root+0x803/0x930 fs/btrfs/super.c:1831 legacy_get_tree+0xeb/0x180 fs/fs_context.c:610 vfs_get_tree+0x88/0x270 fs/super.c:1553 fc_mount fs/namespace.c:1043 [inline] vfs_kern_mount+0xb8/0x150 fs/namespace.c:1073 btrfs_mount+0x395/0xb40 fs/btrfs/super.c:1891 legacy_get_tree+0xeb/0x180 fs/fs_context.c:610 vfs_get_tree+0x88/0x270 fs/super.c:1553 do_new_mount+0x28b/0xae0 fs/namespace.c:3040 do_mount fs/namespace.c:3383 [inline] __do_sys_mount fs/namespace.c:3591 [inline] __se_sys_mount+0x2d5/0x3c0 fs/namespace.c:3568 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f7fc1a8d69a Code: 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 b8 04 00 00 0f 1f 84 00 00 00 00 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:00007f7fc2787f88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 0000000000005109 RCX: 00007f7fc1a8d69a RDX: 0000000020005100 RSI: 0000000020005140 RDI: 00007f7fc2787fe0 RBP: 00007f7fc2788020 R08: 00007f7fc2788020 R09: 0000000000000016 R10: 0000000000000016 R11: 0000000000000202 R12: 0000000020005100 R13: 0000000020005140 R14: 00007f7fc2787fe0 R15: 0000000020000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:assertfail+0x18/0x1a fs/btrfs/ctree.h:3716 Code: 60 1b 2d 8b 48 c7 c2 80 18 2d 8b e8 07 e4 ff ff 0f 0b 89 f1 48 89 fe 48 c7 c7 60 4b 2d 8b 48 c7 c2 50 1d 2d 8b e8 ed e3 ff ff <0f> 0b 55 48 89 e5 41 57 41 56 41 55 41 54 53 48 83 e4 e0 48 81 ec RSP: 0018:ffffc9000fd3f448 EFLAGS: 00010246 RAX: 0000000000000032 RBX: 0000000000000000 RCX: aec974505cba7d00 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: ffff88815b2600a0 R08: ffffffff816d9a9c R09: ffffed1017324f1c R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000 R13: ffff888022ff61f7 R14: ffff88815b260060 R15: ffff8880931ce000 FS: 00007f7fc2788700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b33524000 CR3: 0000000158aeb000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400