------------[ cut here ]------------ WARNING: CPU: 0 PID: 4590 at fs/btrfs/block-group.c:3621 do_chunk_alloc fs/btrfs/block-group.c:3621 [inline] WARNING: CPU: 0 PID: 4590 at fs/btrfs/block-group.c:3621 btrfs_chunk_alloc+0xd5c/0xfa4 fs/btrfs/block-group.c:3863 Modules linked in: CPU: 0 PID: 4590 Comm: kworker/u4:12 Not tainted 6.1.67-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023 Workqueue: events_unbound btrfs_async_reclaim_metadata_space pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : do_chunk_alloc fs/btrfs/block-group.c:3621 [inline] pc : btrfs_chunk_alloc+0xd5c/0xfa4 fs/btrfs/block-group.c:3863 lr : do_chunk_alloc fs/btrfs/block-group.c:3621 [inline] lr : btrfs_chunk_alloc+0xd5c/0xfa4 fs/btrfs/block-group.c:3863 sp : ffff80001f3b7890 x29: ffff80001f3b7900 x28: ffff0000d33da000 x27: 1fffe0001a0a5613 x26: 1fffe0001c4cc705 x25: ffff0000e266382b x24: dfff800000000000 x23: ffff0000e26637e0 x22: 0000000000000000 x21: 0000000000000000 x20: ffffffffffffffe4 x19: ffff0000d052b000 x18: 1fffe0003686c376 x17: ffff80001581d000 x16: ffff8000083049a8 x15: ffff0001b4361bbc x14: 1ffff00002b040b0 x13: dfff800000000000 x12: 0000000000000003 x11: 0000000000ff0100 x10: 0000000000000003 x9 : 82beed8bc1c75600 x8 : 82beed8bc1c75600 x7 : ffff80000827c470 x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000001 x3 : 0000000000000000 x2 : 0000000000000006 x1 : ffff80001229c440 x0 : ffff80019ebf0000 Call trace: do_chunk_alloc fs/btrfs/block-group.c:3621 [inline] btrfs_chunk_alloc+0xd5c/0xfa4 fs/btrfs/block-group.c:3863 flush_space+0x8c4/0xdb8 fs/btrfs/space-info.c:766 btrfs_async_reclaim_metadata_space+0x260/0x30c fs/btrfs/space-info.c:1080 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: 526176 hardirqs last enabled at (526175): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1366 [inline] hardirqs last enabled at (526175): [] finish_lock_switch+0xbc/0x1e8 kernel/sched/core.c:5004 hardirqs last disabled at (526176): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405 softirqs last enabled at (524122): [] softirq_handle_end kernel/softirq.c:414 [inline] softirqs last enabled at (524122): [] __do_softirq+0xc1c/0xe38 kernel/softirq.c:600 softirqs last disabled at (524101): [] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:79 ---[ end trace 0000000000000000 ]--- BTRFS info (device loop4: state A): dumping space info: BTRFS info (device loop4: state A): space_info DATA+METADATA has 7094272 free, is not full BTRFS info (device loop4: state A): space_info total=11534336, used=53248, pinned=20480, reserved=1568768, may_use=2797568, readonly=0 zone_unusable=0 BTRFS info (device loop4: state A): space_info SYSTEM has -98304 free, is not full BTRFS info (device loop4: state A): space_info total=4194304, used=4096, pinned=0, reserved=0, may_use=98304, readonly=4190208 zone_unusable=0 BTRFS info (device loop4: state A): global_block_rsv: size 917504 reserved 917504 BTRFS info (device loop4: state A): trans_block_rsv: size 0 reserved 0 BTRFS info (device loop4: state A): chunk_block_rsv: size 98304 reserved 98304 BTRFS info (device loop4: state A): delayed_block_rsv: size 32768 reserved 32768 BTRFS info (device loop4: state A): delayed_refs_rsv: size 1310720 reserved 1310720 BTRFS: error (device loop4: state A) in do_chunk_alloc:3621: errno=-28 No space left BTRFS info (device loop4: state EA): forced readonly BTRFS: error (device loop4: state EA) in btrfs_create_pending_block_groups:2479: errno=-28 No space left