BTRFS error (device loop0): allocation failed flags 2, wanted 4096 tree-log 0, relocation: 0 BTRFS info (device loop0): space_info SYSTEM has -98304 free, is not full BTRFS info (device loop0): space_info total=4194304, used=4096, pinned=0, reserved=0, may_use=98304, readonly=4190208 zone_unusable=0 BTRFS info (device loop0): global_block_rsv: size 1441792 reserved 1441792 BTRFS info (device loop0): trans_block_rsv: size 0 reserved 0 BTRFS info (device loop0): chunk_block_rsv: size 98304 reserved 94208 BTRFS info (device loop0): delayed_block_rsv: size 0 reserved 0 BTRFS info (device loop0): delayed_refs_rsv: size 65536 reserved 0 BTRFS info (device loop0): block group 1048576 has 4194304 bytes, 4096 used 0 pinned 0 reserved 0 delalloc 0 super 0 zone_unusable (4190208 bytes available) [readonly] BTRFS info (device loop0): block group has cluster?: no BTRFS info (device loop0): 0 free space entries at or bigger than 4096 bytes BTRFS info (device loop0): 4190208 bytes available across all block groups ------------[ cut here ]------------ BTRFS: Transaction aborted (error -28) WARNING: CPU: 0 PID: 5315 at fs/btrfs/block-group.c:3945 do_chunk_alloc fs/btrfs/block-group.c:3945 [inline] WARNING: CPU: 0 PID: 5315 at fs/btrfs/block-group.c:3945 btrfs_chunk_alloc+0xebe/0xf80 fs/btrfs/block-group.c:4187 Modules linked in: CPU: 0 UID: 0 PID: 5315 Comm: syz.0.0 Not tainted 6.13.0-rc1-syzkaller-00002-gcdd30ebb1b9f #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:do_chunk_alloc fs/btrfs/block-group.c:3945 [inline] RIP: 0010:btrfs_chunk_alloc+0xebe/0xf80 fs/btrfs/block-group.c:4187 Code: 00 61 4d 8c 89 de e8 a1 90 77 fd 90 0f 0b 90 90 e9 23 fe ff ff e8 42 e9 b6 fd 90 48 c7 c7 00 61 4d 8c 89 de e8 83 90 77 fd 90 <0f> 0b 90 90 e9 25 fe ff ff e8 24 e9 b6 fd 90 48 c7 c7 00 61 4d 8c RSP: 0018:ffffc9000d4a6820 EFLAGS: 00010246 RAX: 22c98c496c56dd00 RBX: ffffffffffffffe4 RCX: ffff88801fb48000 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffff888043bc3818 R08: ffffffff81601c02 R09: 1ffff11003f8519a R10: dffffc0000000000 R11: ffffed1003f8519b R12: ffff888036237800 R13: dffffc0000000000 R14: ffff88805295c001 R15: 0000000000000000 FS: 00007fd27e7fc6c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055829e9d6b30 CR3: 0000000000332000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: find_free_extent_update_loop fs/btrfs/extent-tree.c:4166 [inline] find_free_extent+0x42d1/0x5810 fs/btrfs/extent-tree.c:4579 btrfs_reserve_extent+0x422/0x810 fs/btrfs/extent-tree.c:4672 cow_file_range+0x5c8/0x11f0 fs/btrfs/inode.c:1395 btrfs_run_delalloc_range+0x33d/0xf70 fs/btrfs/inode.c:2303 writepage_delalloc+0x8aa/0xc70 fs/btrfs/extent_io.c:1239 extent_writepage fs/btrfs/extent_io.c:1499 [inline] extent_write_cache_pages fs/btrfs/extent_io.c:2194 [inline] btrfs_writepages+0x1170/0x2380 fs/btrfs/extent_io.c:2325 do_writepages+0x35f/0x880 mm/page-writeback.c:2702 filemap_fdatawrite_wbc mm/filemap.c:397 [inline] __filemap_fdatawrite_range mm/filemap.c:430 [inline] filemap_fdatawrite_range+0x215/0x2c0 mm/filemap.c:448 btrfs_fdatawrite_range fs/btrfs/file.c:3719 [inline] start_ordered_ops fs/btrfs/file.c:1454 [inline] btrfs_sync_file+0x3c4/0x11e0 fs/btrfs/file.c:1536 generic_write_sync include/linux/fs.h:2904 [inline] btrfs_do_write_iter+0x5e0/0x760 fs/btrfs/file.c:1406 new_sync_write fs/read_write.c:586 [inline] vfs_write+0xaeb/0xd30 fs/read_write.c:679 ksys_write+0x18f/0x2b0 fs/read_write.c:731 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fd27d97ff19 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fd27e7fc058 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fd27db46080 RCX: 00007fd27d97ff19 RDX: 000000000000fea7 RSI: 0000000020000040 RDI: 0000000000000006 RBP: 00007fd27d9f3986 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fd27db46080 R15: 00007ffe242cbbe8