------------[ cut here ]------------ WARNING: CPU: 1 PID: 260 at fs/btrfs/block-group.c:3674 do_chunk_alloc fs/btrfs/block-group.c:3674 [inline] WARNING: CPU: 1 PID: 260 at fs/btrfs/block-group.c:3674 btrfs_chunk_alloc+0xd5c/0xfa4 fs/btrfs/block-group.c:3916 Modules linked in: CPU: 1 PID: 260 Comm: kworker/u4:4 Not tainted 6.1.97-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 Workqueue: events_unbound btrfs_async_reclaim_data_space pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : do_chunk_alloc fs/btrfs/block-group.c:3674 [inline] pc : btrfs_chunk_alloc+0xd5c/0xfa4 fs/btrfs/block-group.c:3916 lr : do_chunk_alloc fs/btrfs/block-group.c:3674 [inline] lr : btrfs_chunk_alloc+0xd5c/0xfa4 fs/btrfs/block-group.c:3916 sp : ffff80001e2f7890 x29: ffff80001e2f7900 x28: ffff0000cb3ab000 x27: 1fffe000197e9813 x26: 1fffe0001df45edb x25: ffff0000efa2f6db x24: dfff800000000000 x23: ffff0000efa2f690 x22: 0000000000000000 x21: 0000000000000000 x20: ffffffffffffffe4 x19: ffff0000cbf4c000 x18: 1fffe0003686f176 x17: ffff80001585d000 x16: ffff800008306370 x15: ffff0001b4378bbc x14: 1ffff00002b0c0b0 x13: dfff800000000000 x12: 0000000000000003 x11: 0000000000ff0100 x10: 0000000000000003 x9 : 56227d985f428800 x8 : 56227d985f428800 x7 : ffff80000827ceec x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000001 x3 : 0000000000000000 x2 : 0000000000000006 x1 : ffff8000122cc6e0 x0 : ffff80019ebc5000 Call trace: do_chunk_alloc fs/btrfs/block-group.c:3674 [inline] btrfs_chunk_alloc+0xd5c/0xfa4 fs/btrfs/block-group.c:3916 flush_space+0x8c4/0xdb8 fs/btrfs/space-info.c:766 btrfs_async_reclaim_data_space+0xf8/0x410 fs/btrfs/space-info.c:1296 process_one_work+0x7ac/0x1404 kernel/workqueue.c:2292 worker_thread+0x8e4/0xfec kernel/workqueue.c:2439 kthread+0x250/0x2d8 kernel/kthread.c:376 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:864 irq event stamp: 2512242 hardirqs last enabled at (2512241): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1366 [inline] hardirqs last enabled at (2512241): [] finish_lock_switch+0xbc/0x1e8 kernel/sched/core.c:5004 hardirqs last disabled at (2512242): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405 softirqs last enabled at (2512228): [] softirq_handle_end kernel/softirq.c:414 [inline] softirqs last enabled at (2512228): [] handle_softirqs+0xb84/0xd58 kernel/softirq.c:599 softirqs last disabled at (2512085): [] __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 5566464 free, is not full BTRFS info (device loop0: state A): space_info total=11534336, used=53248, pinned=0, reserved=4255744, may_use=1658880, readonly=0 zone_unusable=0 BTRFS info (device loop0: state A): space_info SYSTEM has -98304 free, is not full BTRFS info (device loop0: state A): space_info total=4194304, used=4096, pinned=0, reserved=0, may_use=98304, readonly=4190208 zone_unusable=0 BTRFS info (device loop0: state A): global_block_rsv: size 917504 reserved 917504 BTRFS info (device loop0: state A): trans_block_rsv: size 0 reserved 0 BTRFS info (device loop0: state A): chunk_block_rsv: size 98304 reserved 98304 BTRFS info (device loop0: state A): delayed_block_rsv: size 131072 reserved 131072 BTRFS info (device loop0: state A): delayed_refs_rsv: size 1048576 reserved 610304 BTRFS: error (device loop0: state A) in do_chunk_alloc:3674: errno=-28 No space left BTRFS info (device loop0: state EA): forced readonly BTRFS: error (device loop0: state EA) in btrfs_create_pending_block_groups:2532: errno=-28 No space left