------------[ cut here ]------------ WARNING: CPU: 0 PID: 41 at fs/btrfs/extent-tree.c:3195 __btrfs_free_extent+0x2da9/0x3a10 fs/btrfs/extent-tree.c:3195 Modules linked in: CPU: 0 UID: 0 PID: 41 Comm: kworker/u4:3 Not tainted 6.13.0-rc3-syzkaller-00301-gbcde95ce32b6 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Workqueue: events_unbound btrfs_async_reclaim_metadata_space RIP: 0010:__btrfs_free_extent+0x2da9/0x3a10 fs/btrfs/extent-tree.c:3195 Code: fd 0b 00 00 48 8b 44 24 20 8b 10 48 89 df 48 c7 c6 20 13 4b 8c e8 b7 ab 50 fd 41 bd 8b ff ff ff 4c 8b 24 24 e9 07 f0 ff ff 90 <0f> 0b 90 48 b8 00 00 00 00 00 fc ff df 48 8b 4c 24 10 80 3c 01 00 RSP: 0018:ffffc900005c7380 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 00000000fffffffe RCX: ffff88801de6a440 RDX: 0000000000000002 RSI: ffffffff8eea22b0 RDI: 00000000fffffffe RBP: ffffc900005c7550 R08: 0000000000000005 R09: ffffffff83b6e53a R10: 0000000000000002 R11: ffff88801de6a440 R12: 0000000000000005 R13: ffff8880412a6040 R14: 0000000000000000 R15: ffff888043f5fd18 FS: 0000000000000000(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055ebab7d3af0 CR3: 000000003458a000 CR4: 0000000000352ef0 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:2007 [inline] __btrfs_run_delayed_refs+0x102a/0x4310 fs/btrfs/extent-tree.c:2077 btrfs_run_delayed_refs+0xe3/0x2c0 fs/btrfs/extent-tree.c:2189 flush_space+0x2f7/0xcf0 btrfs_async_reclaim_metadata_space+0x28e/0x350 fs/btrfs/space-info.c:1105 process_one_work kernel/workqueue.c:3229 [inline] process_scheduled_works+0xa66/0x1840 kernel/workqueue.c:3310 worker_thread+0x870/0xd30 kernel/workqueue.c:3391 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244