BTRFS info (device loop1): delayed_refs_rsv: size 65536 reserved 0 BTRFS info (device loop1): block group 1048576 has 4194304 bytes, 4096 used 0 pinned 0 reserved 0 zone_unusable [readonly] BTRFS critical (device loop1): entry offset 1048576, bytes 4096, bitmap no BTRFS critical (device loop1): entry offset 1056768, bytes 4186112, bitmap no 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: 0 PID: 6200 at fs/btrfs/block-group.c:3509 do_chunk_alloc fs/btrfs/block-group.c:3509 [inline] WARNING: CPU: 0 PID: 6200 at fs/btrfs/block-group.c:3509 btrfs_chunk_alloc+0xbd8/0x1010 fs/btrfs/block-group.c:3732 Modules linked in: CPU: 0 PID: 6200 Comm: syz.1.522 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026 RIP: 0010:do_chunk_alloc fs/btrfs/block-group.c:3509 [inline] RIP: 0010:btrfs_chunk_alloc+0xbd8/0x1010 fs/btrfs/block-group.c:3732 Code: 00 e8 2c 9c 13 fe 48 8b 1c 24 0f 1f 44 00 00 e8 1e 9c 13 fe eb 16 e8 17 9c 13 fe 48 c7 c7 40 1b 6d 8a 44 89 ee e8 58 f4 4b 06 <0f> 0b 4c 89 e7 48 c7 c6 40 29 6d 8a ba b5 0d 00 00 eb 76 e8 f0 9b RSP: 0018:ffffc9000411eb10 EFLAGS: 00010246 RAX: 6a33d34306830900 RBX: ffff888076d2e000 RCX: 0000000000080000 RDX: ffffc9000ef55000 RSI: 000000000004fdf5 RDI: 000000000004fdf6 RBP: 0000000000000002 R08: ffff8880b902795b R09: 1ffff11017204f2b R10: dffffc0000000000 R11: ffffed1017204f2c R12: ffff88805fdac2c0 R13: ffffffffffffffe4 R14: dffffc0000000000 R15: ffff88805fdac30b FS: 00007f624cad46c0(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f2e0a559158 CR3: 00000000539ac000 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+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 do_iter_readv_writev+0x47e/0x5f0 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+0x240/0x3a0 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:0x7f624e89b799 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:00007f624cad4028 EFLAGS: 00000246 ORIG_RAX: 0000000000000148 RAX: ffffffffffffffda RBX: 00007f624eb15090 RCX: 00007f624e89b799 RDX: 0000000000000001 RSI: 0000200000000740 RDI: 0000000000000006 RBP: 00007f624e931c99 R08: 0000000000008001 R09: 0000000000000000 R10: 0000000000000800 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f624eb15128 R14: 00007f624eb15090 R15: 00007ffd60b073b8