BTRFS info (device loop0): trying to use backup root at mount time BTRFS info (device loop0): disabling tree log BTRFS info (device loop0): enabling auto defrag BTRFS info (device loop0): using free space tree BTRFS error (device loop0): 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: 0 PID: 3541 Comm: syz-executor326 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:ffffc90003a9f448 EFLAGS: 00010246 RAX: 0000000000000032 RBX: 0000000000000000 RCX: 743d4652e6476600 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: ffff888075c780a0 R08: ffffffff816d9a9c R09: fffff52000753e41 R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000 R13: ffff88807c53e1f7 R14: ffff888075c78060 R15: ffff88807c538000 FS: 00005555561db300(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005602aae84540 CR3: 00000000762db000 CR4: 00000000003506f0 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:0x7fc6ab625c1a Code: 83 c4 08 5b 5d c3 66 2e 0f 1f 84 00 00 00 00 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffe4bc6ba48 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007fc6ab625c1a RDX: 0000000020005100 RSI: 0000000020005140 RDI: 00007ffe4bc6ba60 RBP: 00007ffe4bc6ba60 R08: 00007ffe4bc6baa0 R09: 0000000000005103 R10: 0000000000000016 R11: 0000000000000282 R12: 0000000000000004 R13: 00005555561db2c0 R14: 0000000000000016 R15: 00007ffe4bc6baa0 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:ffffc90003a9f448 EFLAGS: 00010246 RAX: 0000000000000032 RBX: 0000000000000000 RCX: 743d4652e6476600 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: ffff888075c780a0 R08: ffffffff816d9a9c R09: fffff52000753e41 R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000 R13: ffff88807c53e1f7 R14: ffff888075c78060 R15: ffff88807c538000 FS: 00005555561db300(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055ff36a6d0b8 CR3: 00000000762db000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400