------------[ cut here ]------------ WARNING: CPU: 1 PID: 39 at fs/btrfs/block-group.c:3683 do_chunk_alloc fs/btrfs/block-group.c:3683 [inline] WARNING: CPU: 1 PID: 39 at fs/btrfs/block-group.c:3683 btrfs_chunk_alloc+0xd5c/0xfa4 fs/btrfs/block-group.c:3925 Modules linked in: CPU: 1 PID: 39 Comm: kworker/u4:2 Not tainted 6.1.99-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:3683 [inline] pc : btrfs_chunk_alloc+0xd5c/0xfa4 fs/btrfs/block-group.c:3925 lr : do_chunk_alloc fs/btrfs/block-group.c:3683 [inline] lr : btrfs_chunk_alloc+0xd5c/0xfa4 fs/btrfs/block-group.c:3925 sp : ffff80001b2c7890 x29: ffff80001b2c7900 x28: ffff0000db083000 x27: 1fffe0001961a313 x26: 1fffe0001be2b41e x25: ffff0000df15a0f3 x24: dfff800000000000 x23: ffff0000df15a0a8 x22: 0000000000000000 x21: 0000000000000000 x20: ffffffffffffffe4 x19: ffff0000cb0d1800 x18: ffff80001b2c6c80 x17: 0000000000000000 x16: ffff80001216b5e4 x15: 0000000000000000 x14: 00000000ffffffff x13: 0000000000000001 x12: 0000000000000001 x11: 0000000000ff0100 x10: 0000000000000000 x9 : b27a4b9cb96c5200 x8 : b27a4b9cb96c5200 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff80001b2c7178 x4 : ffff800015932b20 x3 : ffff800008586ccc x2 : 0000000000000001 x1 : 0000000100000000 x0 : 0000000000000000 Call trace: do_chunk_alloc fs/btrfs/block-group.c:3683 [inline] btrfs_chunk_alloc+0xd5c/0xfa4 fs/btrfs/block-group.c:3925 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: 879780 hardirqs last enabled at (879779): [] __up_console_sem+0xb4/0x100 kernel/printk/printk.c:261 hardirqs last disabled at (879780): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405 softirqs last enabled at (879632): [] spin_unlock_bh include/linux/spinlock.h:396 [inline] softirqs last enabled at (879632): [] batadv_nc_purge_paths+0x2f4/0x378 net/batman-adv/network-coding.c:471 softirqs last disabled at (879630): [] spin_lock_bh include/linux/spinlock.h:356 [inline] softirqs last disabled at (879630): [] batadv_nc_purge_paths+0xd0/0x378 net/batman-adv/network-coding.c:442 ---[ end trace 0000000000000000 ]--- BTRFS info (device loop2: state A): dumping space info: BTRFS info (device loop2: state A): space_info DATA+METADATA has 5566464 free, is not full BTRFS info (device loop2: state A): space_info total=11534336, used=53248, pinned=0, reserved=4255744, may_use=1658880, readonly=0 zone_unusable=0 BTRFS info (device loop2: state A): space_info SYSTEM has -98304 free, is not full BTRFS info (device loop2: state A): space_info total=4194304, used=4096, pinned=0, reserved=0, may_use=98304, readonly=4190208 zone_unusable=0 BTRFS info (device loop2: state A): global_block_rsv: size 917504 reserved 917504 BTRFS info (device loop2: state A): trans_block_rsv: size 0 reserved 0 BTRFS info (device loop2: state A): chunk_block_rsv: size 98304 reserved 98304 BTRFS info (device loop2: state A): delayed_block_rsv: size 131072 reserved 131072 BTRFS info (device loop2: state A): delayed_refs_rsv: size 1048576 reserved 610304 BTRFS: error (device loop2: state A) in do_chunk_alloc:3683: errno=-28 No space left BTRFS info (device loop2: state EA): forced readonly