BTRFS warning (device loop5): couldn't read tree root BTRFS error (device loop5): parent transid verify failed on logical 5255168 mirror 1 wanted 5 found 7 BTRFS warning (device loop5): couldn't read tree root 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: 13784 Comm: syz-executor.5 Not tainted 6.1.23-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023 RIP: 0010:assertfail+0x18/0x1a fs/btrfs/ctree.h:3716 Code: 20 09 2d 8b 48 c7 c2 40 06 2d 8b e8 07 e4 ff ff 0f 0b 89 f1 48 89 fe 48 c7 c7 80 38 2d 8b 48 c7 c2 10 0b 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:ffffc900146b7448 EFLAGS: 00010246 RAX: 0000000000000032 RBX: 0000000000000000 RCX: 5bb576ffb04ab500 RDX: ffffc90005991000 RSI: 0000000000034383 RDI: 0000000000034384 RBP: ffff8881849bc0a0 R08: ffffffff816d694c R09: fffff520028d6e41 R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000 R13: ffff8880848741f7 R14: ffff88809196c000 R15: ffff88809196c000 FS: 00007f5f0c96f700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f3b36d02000 CR3: 000000017cdd7000 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:2467 load_global_roots fs/btrfs/disk-io.c:2501 [inline] btrfs_read_roots fs/btrfs/disk-io.c:2528 [inline] init_tree_roots+0xa28/0x1f6a fs/btrfs/disk-io.c:2947 open_ctree+0x1ad0/0x2d95 fs/btrfs/disk-io.c:3643 btrfs_fill_super+0x1c7/0x2d0 fs/btrfs/super.c:1461 btrfs_mount_root+0x870/0x980 fs/btrfs/super.c:1829 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:1889 legacy_get_tree+0xeb/0x180 fs/fs_context.c:610 vfs_get_tree+0x88/0x270 fs/super.c:1553 do_new_mount+0x28b/0xad0 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:0x7f5f0bc8d69a 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:00007f5f0c96ef88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 000000000000511a RCX: 00007f5f0bc8d69a RDX: 0000000020005100 RSI: 0000000020005140 RDI: 00007f5f0c96efe0 RBP: 00007f5f0c96f020 R08: 00007f5f0c96f020 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000202 R12: 0000000020005100 R13: 0000000020005140 R14: 00007f5f0c96efe0 R15: 0000000020001180 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:assertfail+0x18/0x1a fs/btrfs/ctree.h:3716 Code: 20 09 2d 8b 48 c7 c2 40 06 2d 8b e8 07 e4 ff ff 0f 0b 89 f1 48 89 fe 48 c7 c7 80 38 2d 8b 48 c7 c2 10 0b 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:ffffc900146b7448 EFLAGS: 00010246 RAX: 0000000000000032 RBX: 0000000000000000 RCX: 5bb576ffb04ab500 RDX: ffffc90005991000 RSI: 0000000000034383 RDI: 0000000000034384 RBP: ffff8881849bc0a0 R08: ffffffff816d694c R09: fffff520028d6e41 R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000 R13: ffff8880848741f7 R14: ffff88809196c000 R15: ffff88809196c000 FS: 00007f5f0c96f700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f03ed99f000 CR3: 000000017cdd7000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400