------------[ cut here ]------------ WARNING: CPU: 0 PID: 51 at fs/btrfs/extent-tree.c:3076 __btrfs_free_extent+0x2328/0x2e10 fs/btrfs/extent-tree.c:3076 Modules linked in: CPU: 0 PID: 51 Comm: kworker/u4:3 Not tainted 6.1.92-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 Workqueue: events_unbound btrfs_async_reclaim_metadata_space RIP: 0010:__btrfs_free_extent+0x2328/0x2e10 fs/btrfs/extent-tree.c:3076 Code: 05 07 48 bb 00 00 00 00 00 fc ff df 4c 8b 74 24 08 e9 14 fb ff ff e8 87 e7 06 fe 48 c7 c7 c0 4b 2d 8b 44 89 e6 e8 78 e6 ce fd <0f> 0b e9 39 e4 ff ff 4d 89 e5 e8 69 e7 06 fe 45 31 c0 45 84 f6 41 RSP: 0018:ffffc90000bc7500 EFLAGS: 00010246 RAX: 55dcbfbcd6148700 RBX: ffff88805bad8001 RCX: ffff88801a2d0000 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffffc90000bc7680 R08: ffffffff81528ede R09: fffff52000178e01 R10: 0000000000000000 R11: dffffc0000000001 R12: 00000000ffffffe4 R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000001000 FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f2415ec8290 CR3: 000000005e485000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: run_delayed_tree_ref fs/btrfs/extent-tree.c:1681 [inline] run_one_delayed_ref fs/btrfs/extent-tree.c:1705 [inline] btrfs_run_delayed_refs_for_head fs/btrfs/extent-tree.c:1954 [inline] __btrfs_run_delayed_refs+0x10e1/0x4210 fs/btrfs/extent-tree.c:2017 btrfs_run_delayed_refs+0x13c/0x480 fs/btrfs/extent-tree.c:2148 flush_space+0x986/0xe60 fs/btrfs/space-info.c:744 btrfs_async_reclaim_metadata_space+0x29b/0x340 fs/btrfs/space-info.c:1080 process_one_work+0x8a9/0x11d0 kernel/workqueue.c:2292 worker_thread+0xa47/0x1200 kernel/workqueue.c:2439 kthread+0x28d/0x320 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308