BTRFS warning (device loop0): failed to read root (objectid=9): -5 BTRFS error (device loop0): parent transid verify failed on logical 5255168 mirror 1 wanted 5 found 7 BTRFS warning (device loop0): couldn't read tree root assertion failed: !tmp, in fs/btrfs/disk-io.c:1098 ------------[ cut here ]------------ kernel BUG at fs/btrfs/ctree.h:3713! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 3636 Comm: syz-executor389 Not tainted 6.1.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0010:assertfail.constprop.0+0x27/0x29 fs/btrfs/ctree.h:3713 Code: b9 cd f7 41 54 41 89 f4 55 48 89 fd e8 25 b9 cd f7 44 89 e1 48 89 ee 48 c7 c2 e0 f5 93 8a 48 c7 c7 20 f6 93 8a e8 d1 73 f5 ff <0f> 0b e8 05 b9 cd f7 e8 10 86 1a f8 be 73 04 00 00 48 c7 c7 c0 f6 RSP: 0018:ffffc90003e0f730 EFLAGS: 00010282 RAX: 0000000000000032 RBX: 0000000000000000 RCX: 0000000000000000 RDX: ffff888020818000 RSI: ffffffff8165785c RDI: fffff520007c1ed8 RBP: ffffffff8a940500 R08: 0000000000000032 R09: 0000000000000000 R10: 0000000080000000 R11: 0000000000000000 R12: 000000000000044a R13: ffff8880205b41f7 R14: dffffc0000000000 R15: ffff888026c88060 FS: 0000555556941300(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000005d84c8 CR3: 000000007cbae000 CR4: 0000000000350ef0 Call Trace: btrfs_global_root_insert.cold+0x23/0x23 fs/btrfs/disk-io.c:1098 load_global_roots_objectid+0x42e/0x5fe fs/btrfs/disk-io.c:2460 load_global_roots fs/btrfs/disk-io.c:2494 [inline] btrfs_read_roots fs/btrfs/disk-io.c:2521 [inline] init_tree_roots fs/btrfs/disk-io.c:2940 [inline] open_ctree+0x2524/0x4581 fs/btrfs/disk-io.c:3634 btrfs_fill_super fs/btrfs/super.c:1461 [inline] btrfs_mount_root.cold+0x15/0x162 fs/btrfs/super.c:1829 legacy_get_tree+0x109/0x220 fs/fs_context.c:610 vfs_get_tree+0x8d/0x2f0 fs/super.c:1531 fc_mount fs/namespace.c:1043 [inline] vfs_kern_mount.part.0+0xd3/0x170 fs/namespace.c:1073 vfs_kern_mount+0x40/0x60 fs/namespace.c:1060 btrfs_mount+0x238/0xa70 fs/btrfs/super.c:1889 legacy_get_tree+0x109/0x220 fs/fs_context.c:610 vfs_get_tree+0x8d/0x2f0 fs/super.c:1531 do_new_mount fs/namespace.c:3040 [inline] path_mount+0x132a/0x1e20 fs/namespace.c:3370 do_mount fs/namespace.c:3383 [inline] __do_sys_mount fs/namespace.c:3591 [inline] __se_sys_mount fs/namespace.c:3568 [inline] __x64_sys_mount+0x283/0x300 fs/namespace.c:3568 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fcaf2d50d5a 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:00007ffdedd235d8 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007fcaf2d50d5a RDX: 00000000200051c0 RSI: 0000000020005200 RDI: 00007ffdedd235f0 RBP: 00007ffdedd235f0 R08: 00007ffdedd23630 R09: 00000000000051b1 R10: 0000000000000000 R11: 0000000000000282 R12: 0000000000000004 R13: 00005555569412c0 R14: 0000000000000000 R15: 00007ffdedd23630 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:assertfail.constprop.0+0x27/0x29 fs/btrfs/ctree.h:3713 Code: b9 cd f7 41 54 41 89 f4 55 48 89 fd e8 25 b9 cd f7 44 89 e1 48 89 ee 48 c7 c2 e0 f5 93 8a 48 c7 c7 20 f6 93 8a e8 d1 73 f5 ff <0f> 0b e8 05 b9 cd f7 e8 10 86 1a f8 be 73 04 00 00 48 c7 c7 c0 f6 RSP: 0018:ffffc90003e0f730 EFLAGS: 00010282 RAX: 0000000000000032 RBX: 0000000000000000 RCX: 0000000000000000 RDX: ffff888020818000 RSI: ffffffff8165785c RDI: fffff520007c1ed8 RBP: ffffffff8a940500 R08: 0000000000000032 R09: 0000000000000000 R10: 0000000080000000 R11: 0000000000000000 R12: 000000000000044a R13: ffff8880205b41f7 R14: dffffc0000000000 R15: ffff888026c88060 FS: 0000555556941300(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000005d84c8 CR3: 000000007cbae000 CR4: 0000000000350ef0