------------[ cut here ]------------ WARNING: CPU: 0 PID: 4095 at fs/btrfs/extent-tree.c:3066 __btrfs_free_extent+0xc8c/0x2c40 fs/btrfs/extent-tree.c:3066 Modules linked in: CPU: 0 PID: 4095 Comm: kworker/u4:5 Not tainted 5.15.138-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023 Workqueue: events_unbound btrfs_async_reclaim_metadata_space RIP: 0010:__btrfs_free_extent+0xc8c/0x2c40 fs/btrfs/extent-tree.c:3066 Code: 00 00 fc ff df 4c 8b 7c 24 18 0f 1f 44 00 00 e8 4a 58 26 fe eb 16 e8 43 58 26 fe 48 c7 c7 c0 1e c9 8a 44 89 f6 e8 c4 12 f2 fd <0f> 0b 4c 89 e7 48 c7 c6 a0 2b c9 8a ba fa 0b 00 00 44 89 f1 e8 7f RSP: 0018:ffffc90002e8f4e0 EFLAGS: 00010246 RAX: 98add6a57bb3da00 RBX: 0000000000000000 RCX: ffff88801e5ebb80 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: ffffc90002e8f6a0 R08: ffffffff816658fc R09: ffffed1017344f24 R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888066e800b0 R13: dffffc0000000000 R14: 00000000ffffffe4 R15: ffff888077a56160 FS: 0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055a331ae7131 CR3: 00000000677f6000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: btrfs_run_delayed_refs_for_head fs/btrfs/extent-tree.c:1961 [inline] __btrfs_run_delayed_refs+0x104c/0x4150 fs/btrfs/extent-tree.c:2024 btrfs_run_delayed_refs+0x141/0x490 fs/btrfs/extent-tree.c:2155 flush_space+0x9f5/0xd50 fs/btrfs/space-info.c:660 btrfs_async_reclaim_metadata_space+0x29b/0x340 fs/btrfs/space-info.c:953 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310 worker_thread+0xaca/0x1280 kernel/workqueue.c:2457 kthread+0x3f6/0x4f0 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298