BTRFS info (device loop6): block group 1048576 has 4194304 bytes, 4096 used 0 pinned 0 reserved 0 zone_unusable [readonly] BTRFS info (device loop6): block group has cluster?: no BTRFS info (device loop6): 0 blocks of free space at or bigger than bytes is ------------[ cut here ]------------ WARNING: CPU: 0 PID: 6603 at fs/btrfs/block-group.c:3688 do_chunk_alloc fs/btrfs/block-group.c:3688 [inline] WARNING: CPU: 0 PID: 6603 at fs/btrfs/block-group.c:3688 btrfs_chunk_alloc+0xd5c/0xfa4 fs/btrfs/block-group.c:3930 Modules linked in: CPU: 0 PID: 6603 Comm: syz.6.416 Tainted: G W 6.1.120-syzkaller #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:3688 [inline] pc : btrfs_chunk_alloc+0xd5c/0xfa4 fs/btrfs/block-group.c:3930 lr : do_chunk_alloc fs/btrfs/block-group.c:3688 [inline] lr : btrfs_chunk_alloc+0xd5c/0xfa4 fs/btrfs/block-group.c:3930 sp : ffff8000214d65c0 x29: ffff8000214d6630 x28: ffff0000d1686000 x27: 1fffe00018744313 x26: 1fffe0001e8cd69c x25: ffff0000f466b4e3 x24: dfff800000000000 x23: ffff0000f466b498 x22: 0000000000000000 x21: 0000000000000000 x20: ffffffffffffffe4 x19: ffff0000c3a21800 x18: 1fffe0003679c376 x17: ffff800015a7d000 x16: ffff80000830158c x15: ffff0001b3ce1bbc x14: 1ffff00002b500b2 x13: dfff800000000000 x12: 0000000000000001 x11: 1fffe0001b3386d0 x10: 0000000000000000 x9 : cde6180bc91ebf00 x8 : cde6180bc91ebf00 x7 : ffff800008278b0c x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000001 x3 : ffff800008266808 x2 : 0000000000000001 x1 : 0000000000000004 x0 : 0000000000000001 Call trace: do_chunk_alloc fs/btrfs/block-group.c:3688 [inline] btrfs_chunk_alloc+0xd5c/0xfa4 fs/btrfs/block-group.c:3930 find_free_extent_update_loop fs/btrfs/extent-tree.c:4125 [inline] find_free_extent+0x3c70/0x48c0 fs/btrfs/extent-tree.c:4511 btrfs_reserve_extent+0x364/0x680 fs/btrfs/extent-tree.c:4604 cow_file_range+0x3e8/0xd0c fs/btrfs/inode.c:1276 btrfs_run_delalloc_range+0x568/0x1004 fs/btrfs/inode.c:2229 writepage_delalloc+0x1e0/0x470 fs/btrfs/extent_io.c:1972 __extent_writepage+0x5b8/0xd3c fs/btrfs/extent_io.c:2276 extent_write_cache_pages fs/btrfs/extent_io.c:3191 [inline] extent_writepages+0xa48/0x1254 fs/btrfs/extent_io.c:3313 btrfs_writepages+0x28/0x38 fs/btrfs/inode.c:8296 do_writepages+0x2e8/0x56c mm/page-writeback.c:2491 filemap_fdatawrite_wbc+0x124/0x174 mm/filemap.c:388 __filemap_fdatawrite_range mm/filemap.c:421 [inline] filemap_fdatawrite_range+0x150/0x1c0 mm/filemap.c:439 btrfs_fdatawrite_range fs/btrfs/file.c:3877 [inline] start_ordered_ops+0xec/0x228 fs/btrfs/file.c:1744 btrfs_sync_file+0x3ec/0x1104 fs/btrfs/file.c:1827 vfs_fsync_range+0x168/0x188 fs/sync.c:188 generic_write_sync include/linux/fs.h:2962 [inline] btrfs_do_write_iter+0x91c/0x1108 fs/btrfs/file.c:1693 btrfs_file_write_iter+0x2c/0x3c fs/btrfs/file.c:1707 call_write_iter include/linux/fs.h:2265 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x610/0x91c fs/read_write.c:584 ksys_write+0x15c/0x26c fs/read_write.c:637 __do_sys_write fs/read_write.c:649 [inline] __se_sys_write fs/read_write.c:646 [inline] __arm64_sys_write+0x7c/0x90 fs/read_write.c:646 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2bc arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x58/0x13c arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 irq event stamp: 1250 hardirqs last enabled at (1249): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1367 [inline] hardirqs last enabled at (1249): [] finish_lock_switch+0xbc/0x1e8 kernel/sched/core.c:5000 hardirqs last disabled at (1250): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405 softirqs last enabled at (1200): [] softirq_handle_end kernel/softirq.c:414 [inline] softirqs last enabled at (1200): [] handle_softirqs+0xb84/0xd58 kernel/softirq.c:599 softirqs last disabled at (1183): [] __do_softirq+0x14/0x20 kernel/softirq.c:605 ---[ end trace 0000000000000000 ]--- BTRFS info (device loop6: state A): dumping space info: BTRFS info (device loop6: state A): space_info DATA+METADATA has 9474048 free, is not full BTRFS info (device loop6: state A): space_info total=11534336, used=61440, pinned=0, reserved=12288, may_use=1986560, readonly=0 zone_unusable=0 BTRFS info (device loop6: state A): space_info SYSTEM has -98304 free, is not full BTRFS info (device loop6: state A): space_info total=4194304, used=4096, pinned=0, reserved=0, may_use=98304, readonly=4190208 zone_unusable=0 BTRFS info (device loop6: state A): global_block_rsv: size 1441792 reserved 1441792 BTRFS info (device loop6: state A): trans_block_rsv: size 0 reserved 0 BTRFS info (device loop6: state A): chunk_block_rsv: size 98304 reserved 98304 BTRFS info (device loop6: state A): delayed_block_rsv: size 98304 reserved 98304 BTRFS info (device loop6: state A): delayed_refs_rsv: size 917504 reserved 217088 BTRFS: error (device loop6: state A) in do_chunk_alloc:3688: errno=-28 No space left BTRFS info (device loop6: state EA): forced readonly BTRFS error (device loop6: state EA): allocation failed flags 9, wanted 65536 tree-log 0, relocation: 0 BTRFS info (device loop6: state EA): space_info DATA+METADATA has 9801728 free, is full BTRFS info (device loop6: state EA): space_info total=11534336, used=61440, pinned=0, reserved=0, may_use=1671168, readonly=0 zone_unusable=0 BTRFS info (device loop6: state EA): global_block_rsv: size 1441792 reserved 1441792 BTRFS info (device loop6: state EA): trans_block_rsv: size 0 reserved 0 BTRFS info (device loop6: state EA): chunk_block_rsv: size 0 reserved 0 BTRFS info (device loop6: state EA): delayed_block_rsv: size 0 reserved 0 BTRFS info (device loop6: state EA): delayed_refs_rsv: size 0 reserved 0 BTRFS info (device loop6: state EA): block group 5242880 has 1638400 bytes, 49152 used 0 pinned 0 reserved 0 zone_unusable BTRFS critical (device loop6: state EA): entry offset 5242880, bytes 12288, bitmap no BTRFS critical (device loop6: state EA): entry offset 5259264, bytes 8192, bitmap no BTRFS critical (device loop6: state EA): entry offset 5271552, bytes 16384, bitmap no BTRFS critical (device loop6: state EA): entry offset 5316608, bytes 28672, bitmap no BTRFS critical (device loop6: state EA): entry offset 5369856, bytes 1511424, bitmap no BTRFS info (device loop6: state EA): block group has cluster?: no BTRFS info (device loop6: state EA): 1 blocks of free space at or bigger than bytes is BTRFS info (device loop6: state EA): block group 6881280 has 1638400 bytes, 12288 used 0 pinned 0 reserved 0 zone_unusable BTRFS critical (device loop6: state EA): entry offset 6893568, bytes 1626112, bitmap no BTRFS info (device loop6: state EA): block group has cluster?: no BTRFS info (device loop6: state EA): 1 blocks of free space at or bigger than bytes is BTRFS info (device loop6: state EA): block group 8519680 has 8257536 bytes, 0 used 0 pinned 0 reserved 0 zone_unusable BTRFS critical (device loop6: state EA): entry offset 8531968, bytes 8245248, bitmap no BTRFS info (device loop6: state EA): block group has cluster?: no BTRFS info (device loop6: state EA): 1 blocks of free space at or bigger than bytes is