BTRFS warning (device loop0): couldn't read tree root 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: 3631 Comm: syz-executor222 Not tainted 6.1.0-rc6-syzkaller-00308-g644e9524388a #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0010:assertfail+0x1a/0x1c fs/btrfs/ctree.h:3713 Code: 48 c7 c2 40 aa 38 8b 31 c0 e8 ef e3 ff ff 0f 0b 89 f1 48 89 fe 48 c7 c7 20 d9 38 8b 48 c7 c2 10 0a 39 8b 31 c0 e8 d3 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:ffffc90003bbf450 EFLAGS: 00010246 RAX: 0000000000000032 RBX: 0000000000000000 RCX: 4ad7781c1036c000 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: ffff888026f040a0 R08: ffffffff816e55cd R09: fffff52000777e01 R10: fffff52000777e01 R11: 1ffff92000777e00 R12: dffffc0000000000 R13: ffff88807b2021f7 R14: ffff88802470e000 R15: ffff88802470e000 FS: 00005555565c8300(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005625e09eff80 CR3: 000000007aeff000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: btrfs_global_root_insert+0x1a7/0x1b0 fs/btrfs/disk-io.c:1098 load_global_roots_objectid+0x482/0x8c0 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+0xa25/0x1ed0 fs/btrfs/disk-io.c:2940 open_ctree+0x1a92/0x2d6d fs/btrfs/disk-io.c:3634 btrfs_fill_super+0x1c6/0x2d0 fs/btrfs/super.c:1461 btrfs_mount_root+0x885/0x9a0 fs/btrfs/super.c:1829 legacy_get_tree+0xea/0x180 fs/fs_context.c:610 vfs_get_tree+0x88/0x270 fs/super.c:1531 fc_mount fs/namespace.c:1043 [inline] vfs_kern_mount+0xc9/0x160 fs/namespace.c:1073 btrfs_mount+0x3d3/0xbb0 fs/btrfs/super.c:1889 legacy_get_tree+0xea/0x180 fs/fs_context.c:610 vfs_get_tree+0x88/0x270 fs/super.c:1531 do_new_mount+0x289/0xad0 fs/namespace.c:3040 do_mount fs/namespace.c:3383 [inline] __do_sys_mount fs/namespace.c:3591 [inline] __se_sys_mount+0x2d3/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:0x7f85f3dbfd5a 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:00007ffe9a2845c8 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f85f3dbfd5a RDX: 00000000200051c0 RSI: 0000000020005200 RDI: 00007ffe9a2845e0 RBP: 00007ffe9a2845e0 R08: 00007ffe9a284620 R09: 00000000000051b1 R10: 0000000000000000 R11: 0000000000000282 R12: 0000000000000004 R13: 00005555565c82c0 R14: 0000000000000000 R15: 00007ffe9a284620 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:assertfail+0x1a/0x1c fs/btrfs/ctree.h:3713 Code: 48 c7 c2 40 aa 38 8b 31 c0 e8 ef e3 ff ff 0f 0b 89 f1 48 89 fe 48 c7 c7 20 d9 38 8b 48 c7 c2 10 0a 39 8b 31 c0 e8 d3 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:ffffc90003bbf450 EFLAGS: 00010246 RAX: 0000000000000032 RBX: 0000000000000000 RCX: 4ad7781c1036c000 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: ffff888026f040a0 R08: ffffffff816e55cd R09: fffff52000777e01 R10: fffff52000777e01 R11: 1ffff92000777e00 R12: dffffc0000000000 R13: ffff88807b2021f7 R14: ffff88802470e000 R15: ffff88802470e000 FS: 00005555565c8300(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005625e09eff80 CR3: 000000007aeff000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400