------------[ cut here ]------------ WARNING: CPU: 0 PID: 1673 at fs/btrfs/block-group.c:3487 do_chunk_alloc fs/btrfs/block-group.c:3487 [inline] WARNING: CPU: 0 PID: 1673 at fs/btrfs/block-group.c:3487 btrfs_chunk_alloc+0x8f8/0xcdc fs/btrfs/block-group.c:3710 Modules linked in: CPU: 0 PID: 1673 Comm: kworker/u4:6 Not tainted 5.15.161-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/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:3487 [inline] pc : btrfs_chunk_alloc+0x8f8/0xcdc fs/btrfs/block-group.c:3710 lr : do_chunk_alloc fs/btrfs/block-group.c:3487 [inline] lr : btrfs_chunk_alloc+0x8f8/0xcdc fs/btrfs/block-group.c:3710 sp : ffff800020ba78a0 x29: ffff800020ba7900 x28: ffff0000e1a032c0 x27: 0000000000000005 x26: ffffffffffffffe4 x25: ffff0000e1a0330b x24: ffff0000d5740868 x23: 00000000ffffffe4 x22: 1fffe0001c340663 x21: ffff0000e50a8800 x20: dfff800000000000 x19: ffff0000d06a8800 x18: 0000000000000001 x17: 0000000000000000 x16: ffff80001199d104 x15: 00000000ffffffff x14: ffff0000cd26d1c0 x13: 0000000000000001 x12: 0000000000000001 x11: 0000000000000000 x10: 0000000000000000 x9 : d6a6aa038b7c3d00 x8 : d6a6aa038b7c3d00 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff800020ba7018 x4 : ffff800014a2f7a0 x3 : ffff8000085503f4 x2 : 0000000000000001 x1 : 0000000100000000 x0 : 0000000000000026 Call trace: do_chunk_alloc fs/btrfs/block-group.c:3487 [inline] btrfs_chunk_alloc+0x8f8/0xcdc fs/btrfs/block-group.c:3710 flush_space+0x44c/0xc94 fs/btrfs/space-info.c:670 btrfs_async_reclaim_data_space+0xec/0x37c fs/btrfs/space-info.c:1169 process_one_work+0x790/0x11b8 kernel/workqueue.c:2310 worker_thread+0x910/0x1034 kernel/workqueue.c:2457 kthread+0x37c/0x45c kernel/kthread.c:334 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870 irq event stamp: 691732 hardirqs last enabled at (691731): [] __up_console_sem+0xb4/0x100 kernel/printk/printk.c:257 hardirqs last disabled at (691732): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:396 softirqs last enabled at (691274): [] spin_unlock_bh include/linux/spinlock.h:408 [inline] softirqs last enabled at (691274): [] batadv_nc_purge_paths+0x308/0x38c net/batman-adv/network-coding.c:475 softirqs last disabled at (691272): [] spin_lock_bh include/linux/spinlock.h:368 [inline] softirqs last disabled at (691272): [] batadv_nc_purge_paths+0xd0/0x38c net/batman-adv/network-coding.c:446 ---[ end trace dbe7491a8a9a0a7f ]--- BTRFS: error (device loop2) in do_chunk_alloc:3487: errno=-28 No space left BTRFS info (device loop2): forced readonly