------------[ cut here ]------------ WARNING: CPU: 0 PID: 7338 at fs/btrfs/block-group.c:3509 do_chunk_alloc fs/btrfs/block-group.c:3509 [inline] WARNING: CPU: 0 PID: 7338 at fs/btrfs/block-group.c:3509 btrfs_chunk_alloc+0xa70/0xeb4 fs/btrfs/block-group.c:3732 Modules linked in: CPU: 0 PID: 7338 Comm: syz.1.671 Not tainted 5.15.189-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : do_chunk_alloc fs/btrfs/block-group.c:3509 [inline] pc : btrfs_chunk_alloc+0xa70/0xeb4 fs/btrfs/block-group.c:3732 lr : do_chunk_alloc fs/btrfs/block-group.c:3509 [inline] lr : btrfs_chunk_alloc+0xa70/0xeb4 fs/btrfs/block-group.c:3732 sp : ffff8000219670d0 x29: ffff800021967120 x28: 1fffe0001bd41061 x27: ffff0000dea0830b x26: ffffffffffffffe4 x25: dfff800000000000 x24: ffff0000dea082c0 x23: ffff0000d5358000 x22: ffff0000d12e5084 x21: ffff0000c9adc800 x20: ffff0000d12e5000 x19: ffff0000d12e5088 x18: 0000000000000001 x17: 0000000000000002 x16: ffff8000111bc798 x15: 00000000ffffffff x14: 0000000000ff0100 x13: 0000000000000001 x12: 0000000000080000 x11: 0000000000017c9a x10: ffff800023e6a000 x9 : 75686125d6761200 x8 : 75686125d6761200 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff8000219669b8 x4 : ffff80001424f400 x3 : ffff80000850433c x2 : 0000000000000001 x1 : 0000000100000000 x0 : 0000000000000026 Call trace: do_chunk_alloc fs/btrfs/block-group.c:3509 [inline] btrfs_chunk_alloc+0xa70/0xeb4 fs/btrfs/block-group.c:3732 find_free_extent_update_loop fs/btrfs/extent-tree.c:4054 [inline] find_free_extent+0x23ec/0x316c fs/btrfs/extent-tree.c:4417 btrfs_reserve_extent+0x194/0x428 fs/btrfs/extent-tree.c:4498 btrfs_alloc_tree_block+0x1a8/0x112c fs/btrfs/extent-tree.c:4916 btrfs_force_cow_block+0x3a8/0x1700 fs/btrfs/ctree.c:425 btrfs_cow_block+0x2d8/0x66c fs/btrfs/ctree.c:598 btrfs_search_slot+0xa10/0x1f4c fs/btrfs/ctree.c:1858 btrfs_defrag_leaves+0x4e8/0x9e0 fs/btrfs/tree-defrag.c:85 btrfs_defrag_root+0xc8/0x29c fs/btrfs/transaction.c:1480 btrfs_ioctl_defrag+0x238/0x390 fs/btrfs/ioctl.c:3170 btrfs_ioctl+0x3b0/0xb38 fs/btrfs/ioctl.c:-1 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:874 [inline] __se_sys_ioctl fs/ioctl.c:860 [inline] __arm64_sys_ioctl+0x14c/0x1c8 fs/ioctl.c:860 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x78/0x1e0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0xcc/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 irq event stamp: 184 hardirqs last enabled at (183): [] __up_console_sem+0xb4/0x100 kernel/printk/printk.c:257 hardirqs last disabled at (184): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:396 softirqs last enabled at (8): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:31 softirqs last disabled at (6): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:18 ---[ end trace b1e93eb5acf7adaa ]--- BTRFS: error (device loop1) in do_chunk_alloc:3509: errno=-28 No space left BTRFS info (device loop1): forced readonly