------------[ cut here ]------------ BTRFS: Transaction aborted (error -2) WARNING: CPU: 0 PID: 5185 at fs/btrfs/extent-tree.c:3017 do_free_extent_accounting fs/btrfs/extent-tree.c:3017 [inline] WARNING: CPU: 0 PID: 5185 at fs/btrfs/extent-tree.c:3017 __btrfs_free_extent+0x3212/0x3910 fs/btrfs/extent-tree.c:3391 Modules linked in: CPU: 0 PID: 5185 Comm: btrfs-transacti Not tainted 6.8.0-syzkaller-08951-gfe46a7dd189e #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024 RIP: 0010:do_free_extent_accounting fs/btrfs/extent-tree.c:3017 [inline] RIP: 0010:__btrfs_free_extent+0x3212/0x3910 fs/btrfs/extent-tree.c:3391 Code: ea 8b 44 89 ee e8 ce 78 b3 fd 90 0f 0b 90 90 e9 5a f3 ff ff e8 8f a4 f0 fd 90 48 c7 c7 40 9a ea 8b 44 89 ee e8 af 78 b3 fd 90 <0f> 0b 90 90 e9 68 f3 ff ff e8 70 a4 f0 fd 90 48 c7 c7 40 9a ea 8b RSP: 0018:ffffc90004c87460 EFLAGS: 00010246 RAX: 407626eca171e700 RBX: ffff888076304001 RCX: ffff8880236e5a00 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffffc90004c87640 R08: ffffffff8157cc12 R09: 1ffff110172851a2 R10: dffffc0000000000 R11: ffffed10172851a3 R12: dffffc0000000000 R13: 00000000fffffffe R14: 0000000000000000 R15: ffff8880771ca4a0 FS: 0000000000000000(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f1d4a6906c0 CR3: 000000007d7e8000 CR4: 0000000000350ef0 Call Trace: run_delayed_tree_ref fs/btrfs/extent-tree.c:1770 [inline] run_one_delayed_ref fs/btrfs/extent-tree.c:1797 [inline] btrfs_run_delayed_refs_for_head fs/btrfs/extent-tree.c:2062 [inline] __btrfs_run_delayed_refs+0x130d/0x46c0 fs/btrfs/extent-tree.c:2132 btrfs_run_delayed_refs+0xe3/0x2c0 fs/btrfs/extent-tree.c:2244 btrfs_commit_transaction+0x4be/0x3740 fs/btrfs/transaction.c:2186 transaction_kthread+0x28a/0x500 fs/btrfs/disk-io.c:1607 kthread+0x2f2/0x390 kernel/kthread.c:388 ret_from_fork+0x4d/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:243