------------[ cut here ]------------ BTRFS: Transaction aborted (error -28) WARNING: CPU: 1 PID: 6355 at fs/btrfs/block-group.c:3839 do_chunk_alloc fs/btrfs/block-group.c:3839 [inline] WARNING: CPU: 1 PID: 6355 at fs/btrfs/block-group.c:3839 btrfs_chunk_alloc+0xde0/0xf50 fs/btrfs/block-group.c:4081 Modules linked in: CPU: 1 PID: 6355 Comm: kworker/u4:10 Not tainted 6.7.0-rc5-syzkaller-g0bcda4cd6851 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023 Workqueue: events_unbound btrfs_async_reclaim_metadata_space pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : do_chunk_alloc fs/btrfs/block-group.c:3839 [inline] pc : btrfs_chunk_alloc+0xde0/0xf50 fs/btrfs/block-group.c:4081 lr : do_chunk_alloc fs/btrfs/block-group.c:3839 [inline] lr : btrfs_chunk_alloc+0xde0/0xf50 fs/btrfs/block-group.c:4081 sp : ffff800097d86780 x29: ffff800097d867f0 x28: ffff0000d1856000 x27: 1fffe000249e1c12 x26: 1fffe00024ff767a x25: ffff000127fbb3d3 x24: dfff800000000000 x23: ffff000127fbb378 x22: 0000000000000000 x21: 0000000000000000 x20: ffffffffffffffe4 x19: ffff000124f0e000 x18: 1fffe0003682a5ce x17: ffff80008e4ed000 x16: ffff800080317cac x15: 0000000000000001 x14: 1fffe0003682cdb0 x13: 0000000000000000 x12: 0000000000000003 x11: 0000000000000001 x10: 0000000000000003 x9 : b675d26a1e8de100 x8 : b675d26a1e8de100 x7 : ffff80008028f018 x6 : 0000000000000000 x5 : 0000000000000001 x4 : 0000000000000001 x3 : 0000000000000000 x2 : 0000000000000006 x1 : ffff80008a99dc80 x0 : ffff800125d0c000 Call trace: do_chunk_alloc fs/btrfs/block-group.c:3839 [inline] btrfs_chunk_alloc+0xde0/0xf50 fs/btrfs/block-group.c:4081 find_free_extent_update_loop fs/btrfs/extent-tree.c:4179 [inline] find_free_extent+0x44fc/0x4eac fs/btrfs/extent-tree.c:4568 btrfs_reserve_extent+0x35c/0x674 fs/btrfs/extent-tree.c:4661 cow_file_range+0x474/0xe24 fs/btrfs/inode.c:1378 btrfs_run_delalloc_range+0x278/0xe10 fs/btrfs/inode.c:2280 writepage_delalloc+0x1c4/0x394 fs/btrfs/extent_io.c:1189 __extent_writepage fs/btrfs/extent_io.c:1440 [inline] extent_write_cache_pages fs/btrfs/extent_io.c:2108 [inline] extent_writepages+0x1088/0x1f3c fs/btrfs/extent_io.c:2230 btrfs_writepages+0x28/0x38 fs/btrfs/inode.c:7836 do_writepages+0x2e8/0x570 mm/page-writeback.c:2553 filemap_fdatawrite_wbc+0x124/0x174 mm/filemap.c:387 start_delalloc_inodes+0x61c/0xa00 fs/btrfs/inode.c:9284 btrfs_start_delalloc_roots+0x5a8/0x878 fs/btrfs/inode.c:9361 shrink_delalloc fs/btrfs/space-info.c:649 [inline] flush_space+0x5a0/0xc4c fs/btrfs/space-info.c:759 btrfs_async_reclaim_metadata_space+0x260/0x30c fs/btrfs/space-info.c:1089 process_one_work+0x694/0x1204 kernel/workqueue.c:2627 process_scheduled_works kernel/workqueue.c:2700 [inline] worker_thread+0x938/0xef4 kernel/workqueue.c:2781 kthread+0x288/0x310 kernel/kthread.c:388 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:857 irq event stamp: 1939834 hardirqs last enabled at (1939833): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1361 [inline] hardirqs last enabled at (1939833): [] finish_lock_switch+0xbc/0x1e4 kernel/sched/core.c:5130 hardirqs last disabled at (1939834): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:436 softirqs last enabled at (1939726): [] softirq_handle_end kernel/softirq.c:399 [inline] softirqs last enabled at (1939726): [] __do_softirq+0xac8/0xce4 kernel/softirq.c:582 softirqs last disabled at (1939463): [] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:81 ---[ end trace 0000000000000000 ]--- BTRFS info (device loop2: state A): dumping space info: BTRFS info (device loop2: state A): space_info DATA+METADATA has 7725056 free, is not full BTRFS info (device loop2: state A): space_info total=11534336, used=49152, pinned=0, reserved=0, may_use=3760128, 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 983040 reserved 983040 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 0 reserved 0 BTRFS info (device loop2: state A): delayed_refs_rsv: size 65536 reserved 65536 BTRFS: error (device loop2: state A) in do_chunk_alloc:3839: errno=-28 No space left BTRFS info (device loop2: state EA): forced readonly