------------[ cut here ]------------ WARNING: CPU: 0 PID: 3083 at fs/btrfs/extent-tree.c:3082 __btrfs_free_extent+0x8a6/0x2170 fs/btrfs/extent-tree.c:3082 Modules linked in: CPU: 0 PID: 3083 Comm: kworker/u4:5 Not tainted 5.15.184-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Workqueue: events_unbound btrfs_async_reclaim_metadata_space RIP: 0010:__btrfs_free_extent+0x8a6/0x2170 fs/btrfs/extent-tree.c:3082 Code: fe e9 3e 02 00 00 e8 d9 da 3d fe 0f 1f 44 00 00 e8 cf da 3d fe eb 15 e8 c8 da 3d fe 48 c7 c7 20 53 4a 8a 89 de e8 6a 81 5c 06 <0f> 0b 4c 89 ef 48 c7 c6 a0 60 4a 8a ba 0a 0c 00 00 89 d9 e8 a2 a4 RSP: 0018:ffffc9000cddf5c0 EFLAGS: 00010246 RAX: eaa40c80feca5a00 RBX: 00000000ffffffe4 RCX: ffff88802a84bb80 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: ffffc9000cddf720 R08: dffffc0000000000 R09: ffffed10172067a8 R10: ffffed10172067a8 R11: 1ffff110172067a7 R12: 00000000ffffffe4 R13: ffff88805e52b9a0 R14: 00000000ffffffe4 R15: ffff88805ea69bb0 FS: 0000000000000000(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fd77f1dd250 CR3: 000000002aaad000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: run_one_delayed_ref fs/btrfs/extent-tree.c:-1 [inline] btrfs_run_delayed_refs_for_head fs/btrfs/extent-tree.c:1977 [inline] __btrfs_run_delayed_refs+0xf27/0x3840 fs/btrfs/extent-tree.c:2040 btrfs_run_delayed_refs+0x140/0x480 fs/btrfs/extent-tree.c:2171 flush_space+0x8f7/0xc50 fs/btrfs/space-info.c:660 btrfs_async_reclaim_metadata_space+0x26f/0x330 fs/btrfs/space-info.c:953 process_one_work+0x863/0x1000 kernel/workqueue.c:2310 worker_thread+0xaa8/0x12a0 kernel/workqueue.c:2457 kthread+0x436/0x520 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287