------------[ cut here ]------------ WARNING: CPU: 0 PID: 4385 at fs/btrfs/extent-tree.c:3077 __btrfs_free_extent+0x1c0c/0x28c8 fs/btrfs/extent-tree.c:3077 Modules linked in: CPU: 0 PID: 4385 Comm: kworker/u4:6 Not tainted 6.1.114-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Workqueue: events_unbound btrfs_async_reclaim_metadata_space pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : __btrfs_free_extent+0x1c0c/0x28c8 fs/btrfs/extent-tree.c:3077 lr : __btrfs_free_extent+0x1c0c/0x28c8 fs/btrfs/extent-tree.c:3077 sp : ffff8000219e73a0 x29: ffff8000219e7500 x28: 0000000000000000 x27: ffff8000219e7480 x26: ffff0000c0620738 x25: fffffffffffffff7 x24: 0000000000000000 x23: ffff70000433ce8c x22: 00000000ffffffe4 x21: dfff800000000000 x20: 0000000000000000 x19: 0000000000000000 x18: 1fffe0003679f176 x17: ffff8000159cd000 x16: ffff800008305dfc x15: ffff0001b3cf8bbc x14: 1ffff00002b3a0b0 x13: dfff800000000000 x12: 0000000000000003 x11: 0000000000ff0100 x10: 0000000000000003 x9 : ca9f711a2e3da400 x8 : ca9f711a2e3da400 x7 : ffff80000827d390 x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000001 x3 : 0000000000000000 x2 : 0000000000000006 x1 : ffff8000123ec6e0 x0 : ffff80019e3d5000 Call trace: __btrfs_free_extent+0x1c0c/0x28c8 fs/btrfs/extent-tree.c:3077 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+0xe14/0x3a90 fs/btrfs/extent-tree.c:2017 btrfs_run_delayed_refs+0x13c/0x4c0 fs/btrfs/extent-tree.c:2148 flush_space+0x854/0xdb8 fs/btrfs/space-info.c:744 btrfs_async_reclaim_metadata_space+0x260/0x30c fs/btrfs/space-info.c:1080 process_one_work+0x7ac/0x1404 kernel/workqueue.c:2292 process_scheduled_works kernel/workqueue.c:2355 [inline] worker_thread+0xb6c/0xfec kernel/workqueue.c:2441 kthread+0x250/0x2d8 kernel/kthread.c:376 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:864 irq event stamp: 429674 hardirqs last enabled at (429673): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1367 [inline] hardirqs last enabled at (429673): [] finish_lock_switch+0xbc/0x1e8 kernel/sched/core.c:5000 hardirqs last disabled at (429674): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405 softirqs last enabled at (429658): [] softirq_handle_end kernel/softirq.c:414 [inline] softirqs last enabled at (429658): [] handle_softirqs+0xb84/0xd58 kernel/softirq.c:599 softirqs last disabled at (429603): [] __do_softirq+0x14/0x20 kernel/softirq.c:605 ---[ end trace 0000000000000000 ]--- BTRFS info (device loop0: state A): dumping space info: BTRFS info (device loop0: state A): space_info DATA+METADATA has 524288 free, is full BTRFS info (device loop0: state A): space_info total=3276800, used=49152, pinned=0, reserved=4096, may_use=1114112, readonly=1585152 zone_unusable=0 BTRFS info (device loop0: state A): space_info SYSTEM has 12447744 free, is not full BTRFS info (device loop0: state A): space_info total=12451840, used=4096, pinned=0, reserved=0, may_use=0, readonly=0 zone_unusable=0 BTRFS info (device loop0: state EA): global_block_rsv: size 983040 reserved 983040 BTRFS info (device loop0: state EA): trans_block_rsv: size 0 reserved 0 BTRFS info (device loop0: state EA): chunk_block_rsv: size 0 reserved 0 BTRFS info (device loop0: state EA): delayed_block_rsv: size 0 reserved 0 BTRFS info (device loop0: state EA): delayed_refs_rsv: size 131072 reserved 131072 BTRFS: error (device loop0: state EA) in __btrfs_free_extent:3077: errno=-28 No space left BTRFS error (device loop0: state EA): failed to run delayed ref for logical 5373952 num_bytes 4096 type 176 action 2 ref_mod 1: -28 BTRFS: error (device loop0: state EA) in btrfs_run_delayed_refs:2150: errno=-28 No space left