BTRFS info (device loop7): block group 1048576 has 4194304 bytes, 4096 used 0 pinned 0 reserved 0 zone_unusable [readonly] 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: 0 PID: 6737 at fs/btrfs/block-group.c:3509 do_chunk_alloc fs/btrfs/block-group.c:3509 [inline] WARNING: CPU: 0 PID: 6737 at fs/btrfs/block-group.c:3509 btrfs_chunk_alloc+0xb2e/0xf40 fs/btrfs/block-group.c:3732 Modules linked in: CPU: 0 PID: 6737 Comm: syz.7.501 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/24/2026 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 c5 ab 13 fe 4c 89 f3 0f 1f 44 00 00 e8 b8 ab 13 fe eb 16 e8 b1 ab 13 fe 48 c7 c7 c0 18 6d 8a 44 89 ee e8 32 b4 4b 06 <0f> 0b 4c 89 ff 48 c7 c6 c0 26 6d 8a ba b5 0d 00 00 eb 74 e8 8a ab RSP: 0018:ffffc90003cc6c80 EFLAGS: 00010246 RAX: 2058c3fa42167a00 RBX: ffff888077b37800 RCX: 0000000000080000 RDX: ffffc900164f1000 RSI: 0000000000048d30 RDI: 0000000000048d31 RBP: 0000000000000025 R08: ffff8880b902795b R09: 1ffff11017204f2b R10: dffffc0000000000 R11: ffffed1017204f2c R12: dffffc0000000000 R13: ffffffffffffffe4 R14: ffff888077b37800 R15: ffff888070c16b00 FS: 00007fc04b8886c0(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000020000002d030 CR3: 0000000068860000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000001800 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: find_free_extent_update_loop fs/btrfs/extent-tree.c:4054 [inline] find_free_extent+0x2c26/0x3610 fs/btrfs/extent-tree.c:4417 btrfs_reserve_extent+0x20a/0x530 fs/btrfs/extent-tree.c:4498 cow_file_range+0x5e5/0xb40 fs/btrfs/inode.c:1181 btrfs_run_delalloc_range+0x292/0x14b0 fs/btrfs/inode.c:2018 writepage_delalloc+0x152/0x370 fs/btrfs/extent_io.c:3809 __extent_writepage+0x52f/0xb10 fs/btrfs/extent_io.c:4115 extent_write_cache_pages fs/btrfs/extent_io.c:5037 [inline] extent_writepages+0xa0e/0x1400 fs/btrfs/extent_io.c:5164 do_writepages+0x476/0x6e0 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+0xe7/0x140 mm/filemap.c:451 btrfs_fdatawrite_range fs/btrfs/file.c:3925 [inline] start_ordered_ops+0xf3/0x220 fs/btrfs/file.c:2142 btrfs_sync_file+0x405/0x10f0 fs/btrfs/file.c:2225 generic_write_sync include/linux/fs.h:2990 [inline] btrfs_file_write_iter+0xc8b/0xe00 fs/btrfs/file.c:2099 call_write_iter include/linux/fs.h:2173 [inline] new_sync_write fs/read_write.c:507 [inline] vfs_write+0x745/0xd60 fs/read_write.c:594 ksys_write+0x152/0x260 fs/read_write.c:647 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:0x7fc04d66ff79 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fc04b888028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fc04d8ea180 RCX: 00007fc04d66ff79 RDX: 000000000000045c RSI: 00002000000002c0 RDI: 0000000000000006 RBP: 00007fc04d7067e0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fc04d8ea218 R14: 00007fc04d8ea180 R15: 00007ffffd6ad868