------------[ cut here ]------------ BTRFS: Transaction aborted (error -28) WARNING: CPU: 1 PID: 62 at fs/btrfs/extent-tree.c:3092 __btrfs_free_extent+0x1873/0x2c80 fs/btrfs/extent-tree.c:3092 Modules linked in: CPU: 1 PID: 62 Comm: kworker/u4:5 Not tainted 6.6.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023 Workqueue: events_unbound btrfs_async_reclaim_metadata_space RIP: 0010:__btrfs_free_extent+0x1873/0x2c80 fs/btrfs/extent-tree.c:3092 Code: 00 e8 b1 17 16 fe 0f 1f 44 00 00 bb 01 00 00 00 e9 c5 f7 ff ff e8 9d 17 16 fe 8b 74 24 58 48 c7 c7 a0 f1 d5 8a e8 1d 39 dc fd <0f> 0b e9 7a f2 ff ff e8 81 17 16 fe 48 89 ee 4c 89 e7 e8 96 b4 ff RSP: 0018:ffffc900015d7720 EFLAGS: 00010286 RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000 RDX: ffff88801a289dc0 RSI: ffffffff814df1b6 RDI: 0000000000000001 RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: ffff88802743f160 R13: ffff8880173ac568 R14: 00000000ffffffe4 R15: 0000000000521000 FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007efc9e0e4000 CR3: 000000007b4ae000 CR4: 0000000000350ee0 Call Trace: run_delayed_tree_ref fs/btrfs/extent-tree.c:1716 [inline] run_one_delayed_ref fs/btrfs/extent-tree.c:1740 [inline] btrfs_run_delayed_refs_for_head fs/btrfs/extent-tree.c:1986 [inline] __btrfs_run_delayed_refs+0xd3a/0x3b50 fs/btrfs/extent-tree.c:2047 btrfs_run_delayed_refs+0x1a1/0x510 fs/btrfs/extent-tree.c:2159 flush_space+0x86c/0xe30 fs/btrfs/space-info.c:755 btrfs_async_reclaim_metadata_space+0x51c/0xa90 fs/btrfs/space-info.c:1069 process_one_work+0x887/0x15d0 kernel/workqueue.c:2630 process_scheduled_works kernel/workqueue.c:2703 [inline] worker_thread+0x8bb/0x1290 kernel/workqueue.c:2784 kthread+0x33a/0x430 kernel/kthread.c:388 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304