BTRFS info (device loop1): block group has cluster?: no BTRFS info (device loop1): 0 blocks of free space at or bigger than bytes is ------------[ cut here ]------------ WARNING: CPU: 1 PID: 5589 at fs/btrfs/block-group.c:3505 do_chunk_alloc fs/btrfs/block-group.c:3505 [inline] WARNING: CPU: 1 PID: 5589 at fs/btrfs/block-group.c:3505 btrfs_chunk_alloc+0xb2e/0xf40 fs/btrfs/block-group.c:3728 Modules linked in: CPU: 1 PID: 5589 Comm: syz.1.84 Not tainted 5.15.184-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 RIP: 0010:do_chunk_alloc fs/btrfs/block-group.c:3505 [inline] RIP: 0010:btrfs_chunk_alloc+0xb2e/0xf40 fs/btrfs/block-group.c:3728 Code: 00 00 e8 25 1f 19 fe 4c 89 f3 0f 1f 44 00 00 e8 18 1f 19 fe eb 16 e8 11 1f 19 fe 48 c7 c7 80 d8 4c 8a 44 89 ee e8 b2 c5 37 06 <0f> 0b 4c 89 ff 48 c7 c6 80 e6 4c 8a ba b1 0d 00 00 eb 74 e8 ea 1e RSP: 0018:ffffc900034feb40 EFLAGS: 00010246 RAX: e4c8575a4fafaf00 RBX: ffff88807657f000 RCX: ffff888026691dc0 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: 0000000000000025 R08: dffffc0000000000 R09: ffffed1017224f24 R10: ffffed1017224f24 R11: 1ffff11017224f23 R12: dffffc0000000000 R13: ffffffffffffffe4 R14: ffff88807657f000 R15: ffff888074283840 FS: 00007fa04226a6c0(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c009018000 CR3: 000000005bd95000 CR4: 00000000003506e0 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:0x7fa043019de9 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:00007fa04226a038 EFLAGS: 00000246 ORIG_RAX: 0000000000000148 RAX: ffffffffffffffda RBX: 00007fa043233080 RCX: 00007fa043019de9 RDX: 0000000000000001 RSI: 0000400000000740 RDI: 0000000000000005 RBP: 00007fa04309b2a0 R08: 0000000000008001 R09: 0000000000000000 R10: 0000000000000800 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fa043233080 R15: 00007ffe3ef090a8