BTRFS critical (device loop4): entry offset 1048576, bytes 4096, bitmap no BTRFS critical (device loop4): entry offset 1056768, bytes 4186112, bitmap no BTRFS info (device loop4): block group has cluster?: no BTRFS info (device loop4): 0 blocks of free space at or bigger than bytes is ------------[ cut here ]------------ WARNING: CPU: 0 PID: 5548 at fs/btrfs/block-group.c:3505 do_chunk_alloc fs/btrfs/block-group.c:3505 [inline] WARNING: CPU: 0 PID: 5548 at fs/btrfs/block-group.c:3505 btrfs_chunk_alloc+0xc0e/0x1020 fs/btrfs/block-group.c:3728 Modules linked in: CPU: 0 PID: 5548 Comm: syz.4.297 Not tainted 5.15.171-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:do_chunk_alloc fs/btrfs/block-group.c:3505 [inline] RIP: 0010:btrfs_chunk_alloc+0xc0e/0x1020 fs/btrfs/block-group.c:3728 Code: 00 00 00 fc ff df 4c 8b 24 24 0f 1f 44 00 00 e8 68 43 fc fd eb 16 e8 61 43 fc fd 48 c7 c7 a0 2a cc 8a 44 89 ee e8 12 df c7 fd <0f> 0b 48 8b 7c 24 20 48 c7 c6 a0 38 cc 8a ba b1 0d 00 00 e9 8e 00 RSP: 0018:ffffc90003406a58 EFLAGS: 00010246 RAX: 559bda677a844000 RBX: dffffc0000000000 RCX: 0000000000040000 RDX: ffffc90005b52000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: ffff888063bf8001 R08: ffffffff81669a2c R09: ffffed1017204f24 R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88801eb95884 R13: ffffffffffffffe4 R14: ffff888061a3c25b R15: 1ffff11003d72b10 FS: 00007f90e460f6c0(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055a50160ef50 CR3: 00000000651e4000 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:4039 [inline] find_free_extent+0x3eb7/0x4ff0 fs/btrfs/extent-tree.c:4402 btrfs_reserve_extent+0x20a/0x540 fs/btrfs/extent-tree.c:4483 cow_file_range+0x674/0xe10 fs/btrfs/inode.c:1181 btrfs_run_delalloc_range+0x38b/0x1500 fs/btrfs/inode.c:2018 writepage_delalloc+0x283/0x5a0 fs/btrfs/extent_io.c:3802 __extent_writepage+0x57d/0xbc0 fs/btrfs/extent_io.c:4108