BTRFS info (device loop3): block group 1048576 has 4194304 bytes, 4096 used 0 pinned 0 reserved 0 zone_unusable [readonly] BTRFS info (device loop3): block group has cluster?: no BTRFS info (device loop3): 0 blocks of free space at or bigger than bytes is ------------[ cut here ]------------ WARNING: CPU: 0 PID: 6656 at fs/btrfs/block-group.c:3509 do_chunk_alloc fs/btrfs/block-group.c:3509 [inline] WARNING: CPU: 0 PID: 6656 at fs/btrfs/block-group.c:3509 btrfs_chunk_alloc+0xb2e/0xf40 fs/btrfs/block-group.c:3732 Modules linked in: CPU: 0 PID: 6656 Comm: syz.3.151 Not tainted 5.15.189-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 RIP: 0010:do_chunk_alloc fs/btrfs/block-group.c:3509 [inline] RIP: 0010:btrfs_chunk_alloc+0xb2e/0xf40 fs/btrfs/block-group.c:3732 Code: 00 00 e8 05 20 1a fe 4c 89 f3 0f 1f 44 00 00 e8 f8 1f 1a fe eb 16 e8 f1 1f 1a fe 48 c7 c7 00 c4 4c 8a 44 89 ee e8 b2 c3 3f 06 <0f> 0b 4c 89 ff 48 c7 c6 00 d2 4c 8a ba b5 0d 00 00 eb 74 e8 ca 1f RSP: 0018:ffffc90003c9eb40 EFLAGS: 00010246 RAX: 3bba13c36e2c6a00 RBX: ffff888025668000 RCX: ffff888072321dc0 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: 0000000000000025 R08: dffffc0000000000 R09: ffffed1017204f24 R10: ffffed1017204f24 R11: 1ffff11017204f23 R12: dffffc0000000000 R13: ffffffffffffffe4 R14: ffff888025668000 R15: ffff88807056b000 FS: 00007f4afcca86c0(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f8572bf2000 CR3: 000000002317f000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: find_free_extent_update_loop fs/btrfs/extent-tree.c:4054 [inline] find_free_extent+0x2ba5/0x3560 fs/btrfs/extent-tree.c:4417 btrfs_reserve_extent+0x20a/0x530 fs/btrfs/extent-tree.c:4498 cow_file_range+0x57f/0xb50 fs/btrfs/inode.c:1181 btrfs_run_delalloc_range+0x292/0x1490 fs/btrfs/inode.c:2018 writepage_delalloc+0x14c/0x360 fs/btrfs/extent_io.c:3801 __extent_writepage+0x51f/0xb00 fs/btrfs/extent_io.c:4107 extent_write_cache_pages fs/btrfs/extent_io.c:5029 [inline] extent_writepages+0x9c4/0x13b0 fs/btrfs/extent_io.c:5156 do_writepages+0x48d/0x6d0 mm/page-writeback.c:2386 filemap_fdatawrite_wbc+0x1eb/0x240 mm/filemap.c:400 __filemap_fdatawrite_range mm/filemap.c:433 [inline] filemap_fdatawrite_range+0xbc/0x100 mm/filemap.c:451 btrfs_fdatawrite_range fs/btrfs/file.c:3915 [inline] start_ordered_ops+0xe6/0x210 fs/btrfs/file.c:2142 btrfs_sync_file+0x3ea/0x10d0 fs/btrfs/file.c:2225 generic_write_sync include/linux/fs.h:2989 [inline] btrfs_file_write_iter+0xc8b/0xe00 fs/btrfs/file.c:2099 do_iter_readv_writev+0x497/0x600 fs/read_write.c:-1 do_iter_write+0x205/0x7b0 fs/read_write.c:855 vfs_writev fs/read_write.c:928 [inline] do_pwritev+0x204/0x340 fs/read_write.c:1025 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f4afda57de9 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:00007f4afcca8038 EFLAGS: 00000246 ORIG_RAX: 0000000000000148 RAX: ffffffffffffffda RBX: 00007f4afdc71080 RCX: 00007f4afda57de9 RDX: 0000000000000001 RSI: 0000400000000740 RDI: 0000000000000005 RBP: 00007f4afdad92a0 R08: 0000000000008001 R09: 0000000000000000 R10: 0000000000000800 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f4afdc71080 R15: 00007fff6f180da8