BTRFS info (device loop7): block group has cluster?: no BTRFS info (device loop7): 0 blocks of free space at or bigger than bytes is ------------[ cut here ]------------ WARNING: CPU: 1 PID: 11423 at fs/btrfs/block-group.c:3688 do_chunk_alloc fs/btrfs/block-group.c:3688 [inline] WARNING: CPU: 1 PID: 11423 at fs/btrfs/block-group.c:3688 btrfs_chunk_alloc+0xe47/0xff0 fs/btrfs/block-group.c:3930 Modules linked in: CPU: 1 PID: 11423 Comm: syz.7.1293 Not tainted 6.1.119-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024 RIP: 0010:do_chunk_alloc fs/btrfs/block-group.c:3688 [inline] RIP: 0010:btrfs_chunk_alloc+0xe47/0xff0 fs/btrfs/block-group.c:3930 Code: fd 48 c7 c7 80 3a 50 8b 44 89 e6 e8 23 a3 a3 fd 0f 0b e9 02 fe ff ff e8 07 89 db fd 48 c7 c7 80 3a 50 8b 89 ee e8 09 a3 a3 fd <0f> 0b e9 0d fe ff ff e8 ed 88 db fd 48 c7 c7 80 3a 50 8b 44 89 e6 RSP: 0018:ffffc90003d7e918 EFLAGS: 00010246 RAX: c32778368170a900 RBX: ffff888024c4c001 RCX: 0000000000080000 RDX: ffffc9000eb32000 RSI: 000000000004883a RDI: 000000000004883b RBP: ffffffffffffffe4 R08: ffffffff8152b88e R09: fffff520007afc85 R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888026c9e800 R13: dffffc0000000000 R14: ffff88805ea70000 R15: 0000000000000000 FS: 00007f37109806c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f52a33643b0 CR3: 000000006688b000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000800019 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: find_free_extent_update_loop fs/btrfs/extent-tree.c:4125 [inline] find_free_extent+0x49cc/0x56d0 fs/btrfs/extent-tree.c:4511 btrfs_reserve_extent+0x424/0x810 fs/btrfs/extent-tree.c:4604 cow_file_range+0x562/0xfb0 fs/btrfs/inode.c:1276 btrfs_run_delalloc_range+0x304/0x1110 fs/btrfs/inode.c:2229 writepage_delalloc+0x25d/0x580 fs/btrfs/extent_io.c:1972 __extent_writepage+0x6e3/0x1730 fs/btrfs/extent_io.c:2276 extent_write_cache_pages fs/btrfs/extent_io.c:3191 [inline] extent_writepages+0xbe0/0x17a0 fs/btrfs/extent_io.c:3313 do_writepages+0x3a2/0x670 mm/page-writeback.c:2491 filemap_fdatawrite_wbc+0x121/0x180 mm/filemap.c:388 __filemap_fdatawrite_range mm/filemap.c:421 [inline] filemap_fdatawrite_range+0x16a/0x1e0 mm/filemap.c:439 btrfs_fdatawrite_range fs/btrfs/file.c:3877 [inline] start_ordered_ops+0xe6/0x210 fs/btrfs/file.c:1744 btrfs_sync_file+0x48f/0x1300 fs/btrfs/file.c:1827 generic_write_sync include/linux/fs.h:2962 [inline] btrfs_do_write_iter+0xad2/0x1360 fs/btrfs/file.c:1693 call_write_iter include/linux/fs.h:2265 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x857/0xbc0 fs/read_write.c:584 ksys_write+0x19c/0x2c0 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f370fb7e819 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:00007f3710980038 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f370fd36080 RCX: 00007f370fb7e819 RDX: 000000000000fea7 RSI: 0000000020000040 RDI: 0000000000000007 RBP: 00007f370fbf175e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f370fd36080 R15: 00007ffcb9b06038