------------[ cut here ]------------ WARNING: CPU: 1 PID: 4532 at fs/btrfs/block-group.c:3688 do_chunk_alloc fs/btrfs/block-group.c:3688 [inline] WARNING: CPU: 1 PID: 4532 at fs/btrfs/block-group.c:3688 btrfs_chunk_alloc+0xd5c/0xfa4 fs/btrfs/block-group.c:3930 Modules linked in: CPU: 1 PID: 4532 Comm: syz.0.20 Not tainted 6.1.116-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 : ffff8000233a65c0 x29: ffff8000233a6630 x28: ffff0000debee000 x27: 1fffe0001e014a13 x26: 1fffe0001c280a72 x25: ffff0000e1405393 x24: dfff800000000000 x23: ffff0000e1405348 x22: 0000000000000000 x21: 0000000000000000 x20: ffffffffffffffe4 x19: ffff0000f00a5000 x18: 1fffe000367a2f76 x17: ffff8000159dd000 x16: ffff800008305dfc x15: ffff0001b3d17bbc x14: 1ffff00002b3c0b0 x13: dfff800000000000 x12: 0000000000000003 x11: 0000000000ff0100 x10: 0000000000000003 x9 : 5eee41680cdae700 x8 : 5eee41680cdae700 x7 : ffff80000827d390 x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000001 x3 : 0000000000000000 x2 : 0000000000000006 x1 : ffff8000123ec5e0 x0 : ffff80019e3e4000 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:8285 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/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x64/0x218 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: 1380 hardirqs last enabled at (1379): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1367 [inline] hardirqs last enabled at (1379): [] finish_lock_switch+0xbc/0x1e8 kernel/sched/core.c:5000 hardirqs last disabled at (1380): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405 softirqs last enabled at (1366): [] softirq_handle_end kernel/softirq.c:414 [inline] softirqs last enabled at (1366): [] handle_softirqs+0xb84/0xd58 kernel/softirq.c:599 softirqs last disabled at (1357): [] __do_softirq+0x14/0x20 kernel/softirq.c:605 ---[ end trace 0000000000000000 ]--- BTRFS info (device loop0: state A): dumping space info: BTRFS info (device loop0: state A): space_info DATA+METADATA has 9211904 free, is not full BTRFS info (device loop0: state A): space_info total=11534336, used=61440, pinned=0, reserved=12288, may_use=2248704, readonly=0 zone_unusable=0 BTRFS info (device loop0: state A): space_info SYSTEM has -98304 free, is not full BTRFS info (device loop0: state A): space_info total=4194304, used=4096, pinned=0, reserved=0, may_use=98304, readonly=4190208 zone_unusable=0 BTRFS info (device loop0: state A): global_block_rsv: size 1441792 reserved 1441792 BTRFS info (device loop0: state A): trans_block_rsv: size 0 reserved 0 BTRFS info (device loop0: state A): chunk_block_rsv: size 98304 reserved 98304 BTRFS info (device loop0: state A): delayed_block_rsv: size 131072 reserved 131072 BTRFS info (device loop0: state A): delayed_refs_rsv: size 917504 reserved 446464 BTRFS: error (device loop0: state A) in do_chunk_alloc:3688: errno=-28 No space left BTRFS info (device loop0: state EA): forced readonly