------------[ cut here ]------------ BTRFS: Transaction aborted (error -28) WARNING: CPU: 0 PID: 6541 at fs/btrfs/block-group.c:3945 do_chunk_alloc fs/btrfs/block-group.c:3945 [inline] WARNING: CPU: 0 PID: 6541 at fs/btrfs/block-group.c:3945 btrfs_chunk_alloc+0xe1c/0xf8c fs/btrfs/block-group.c:4187 Modules linked in: CPU: 0 UID: 0 PID: 6541 Comm: syz.1.2 Not tainted 6.12.0-syzkaller-g7b1d1d4cfac0 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : do_chunk_alloc fs/btrfs/block-group.c:3945 [inline] pc : btrfs_chunk_alloc+0xe1c/0xf8c fs/btrfs/block-group.c:4187 lr : do_chunk_alloc fs/btrfs/block-group.c:3945 [inline] lr : btrfs_chunk_alloc+0xe1c/0xf8c fs/btrfs/block-group.c:4187 sp : ffff8000b21264e0 x29: ffff8000b2126560 x28: ffff0000f599f800 x27: 1fffe0001b64f20b x26: ffff0000db27905b x25: ffff0000db279000 x24: ffffffffffffffe4 x23: 0000000000000003 x22: 0000000000000000 x21: ffff0000d0c1b808 x20: dfff800000000000 x19: 0000000000000000 x18: 1fffe000366c6876 x17: ffff80008f81d000 x16: ffff800080355c58 x15: 0000000000000001 x14: 1fffe000366c9320 x13: ffff8000b2128000 x12: 0000000000000003 x11: 0000000000000001 x10: 0000000000000003 x9 : d0e2443d99cb3c00 x8 : d0e2443d99cb3c00 x7 : ffff8000802c419c x6 : 0000000000000000 x5 : 0000000000000001 x4 : 0000000000000001 x3 : 0000000000000000 x2 : 0000000000000006 x1 : ffff80008b634000 x0 : ffff800123ec5000 Call trace: do_chunk_alloc fs/btrfs/block-group.c:3945 [inline] (P) btrfs_chunk_alloc+0xe1c/0xf8c fs/btrfs/block-group.c:4187 (P) do_chunk_alloc fs/btrfs/block-group.c:3945 [inline] (L) btrfs_chunk_alloc+0xe1c/0xf8c fs/btrfs/block-group.c:4187 (L) find_free_extent_update_loop fs/btrfs/extent-tree.c:4189 [inline] find_free_extent+0x2c14/0x4c44 fs/btrfs/extent-tree.c:4602 btrfs_reserve_extent+0x35c/0x674 fs/btrfs/extent-tree.c:4695 cow_file_range+0x4f8/0xee0 fs/btrfs/inode.c:1425 btrfs_run_delalloc_range+0x314/0xeb0 fs/btrfs/inode.c:2334 writepage_delalloc+0x418/0x758 fs/btrfs/extent_io.c:1193 extent_writepage fs/btrfs/extent_io.c:1455 [inline] extent_write_cache_pages fs/btrfs/extent_io.c:2131 [inline] btrfs_writepages+0x1304/0x2240 fs/btrfs/extent_io.c:2262 do_writepages+0x304/0x7cc mm/page-writeback.c:2683 filemap_fdatawrite_wbc+0x124/0x174 mm/filemap.c:398 __filemap_fdatawrite_range mm/filemap.c:431 [inline] filemap_fdatawrite_range+0x104/0x168 mm/filemap.c:449 btrfs_fdatawrite_range fs/btrfs/file.c:3827 [inline] start_ordered_ops fs/btrfs/file.c:1563 [inline] btrfs_sync_file+0x350/0x107c fs/btrfs/file.c:1645 vfs_fsync_range+0x160/0x19c fs/sync.c:188 generic_write_sync include/linux/fs.h:2871 [inline] btrfs_do_write_iter+0x4b0/0x5d0 fs/btrfs/file.c:1515 btrfs_file_write_iter+0x2c/0x3c fs/btrfs/file.c:1525 new_sync_write fs/read_write.c:590 [inline] vfs_write+0x920/0xcf4 fs/read_write.c:683 ksys_write+0x15c/0x26c fs/read_write.c:736 __do_sys_write fs/read_write.c:748 [inline] __se_sys_write fs/read_write.c:745 [inline] __arm64_sys_write+0x7c/0x90 fs/read_write.c:745 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:744 el0t_64_sync_handler+0x84/0x108 arch/arm64/kernel/entry-common.c:762 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600 irq event stamp: 1670 hardirqs last enabled at (1669): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1518 [inline] hardirqs last enabled at (1669): [] finish_lock_switch+0xbc/0x1e4 kernel/sched/core.c:5082 hardirqs last disabled at (1670): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:488 softirqs last enabled at (1554): [] softirq_handle_end kernel/softirq.c:400 [inline] softirqs last enabled at (1554): [] handle_softirqs+0xa38/0xbf8 kernel/softirq.c:582 softirqs last disabled at (1537): [] __do_softirq+0x14/0x20 kernel/softirq.c:588 ---[ end trace 0000000000000000 ]--- BTRFS info (device loop1 state A): dumping space info: BTRFS info (device loop1 state A): space_info DATA+METADATA has 9801728 free, is not full BTRFS info (device loop1 state A): space_info total=11534336, used=61440, pinned=0, reserved=0, may_use=1671168, readonly=0 zone_unusable=0 BTRFS info (device loop1 state A): space_info SYSTEM has -98304 free, is not full BTRFS info (device loop1 state A): space_info total=4194304, used=4096, pinned=0, reserved=0, may_use=98304, readonly=4190208 zone_unusable=0 BTRFS info (device loop1 state A): global_block_rsv: size 1441792 reserved 1441792 BTRFS info (device loop1 state A): trans_block_rsv: size 0 reserved 0 BTRFS info (device loop1 state A): chunk_block_rsv: size 98304 reserved 98304 BTRFS info (device loop1 state A): delayed_block_rsv: size 0 reserved 0 BTRFS info (device loop1 state A): delayed_refs_rsv: size 65536 reserved 0 BTRFS: error (device loop1 state A) in do_chunk_alloc:3945: errno=-28 No space left BTRFS info (device loop1 state EA): forced readonly BTRFS: error (device loop1 state EA) in btrfs_create_pending_block_groups:2759: errno=-28 No space left