BTRFS info (device loop3): block group has cluster?: no BTRFS info (device loop3): 0 free space entries at or bigger than 4096 bytes BTRFS info (device loop3): 4190208 bytes available across all block groups ------------[ cut here ]------------ BTRFS: Transaction aborted (error -28) WARNING: CPU: 0 PID: 19290 at fs/btrfs/block-group.c:3945 do_chunk_alloc fs/btrfs/block-group.c:3945 [inline] WARNING: CPU: 0 PID: 19290 at fs/btrfs/block-group.c:3945 btrfs_chunk_alloc+0xebe/0xf80 fs/btrfs/block-group.c:4187 Modules linked in: CPU: 0 UID: 0 PID: 19290 Comm: syz.3.2765 Not tainted 6.12.0-next-20241122-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:3945 [inline] RIP: 0010:btrfs_chunk_alloc+0xebe/0xf80 fs/btrfs/block-group.c:4187 Code: c0 85 4c 8c 89 de e8 81 01 82 fd 90 0f 0b 90 90 e9 23 fe ff ff e8 e2 62 c1 fd 90 48 c7 c7 c0 85 4c 8c 89 de e8 63 01 82 fd 90 <0f> 0b 90 90 e9 25 fe ff ff e8 c4 62 c1 fd 90 48 c7 c7 c0 85 4c 8c RSP: 0000:ffffc900033de820 EFLAGS: 00010246 RAX: e76be28cff2fc600 RBX: ffffffffffffffe4 RCX: 0000000000080000 RDX: ffffc9000f54a000 RSI: 0000000000007014 RDI: 0000000000007015 RBP: ffff88805cdbf940 R08: ffffffff81601b32 R09: 1ffff110170c519a R10: dffffc0000000000 R11: ffffed10170c519b R12: ffff88805e059000 R13: dffffc0000000000 R14: ffff88806eeac001 R15: 0000000000000000 FS: 00007f2bc91ad6c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000002000f000 CR3: 000000006a9ac000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: find_free_extent_update_loop fs/btrfs/extent-tree.c:4166 [inline] find_free_extent+0x42f4/0x5850 fs/btrfs/extent-tree.c:4579 btrfs_reserve_extent+0x422/0x810 fs/btrfs/extent-tree.c:4672 cow_file_range+0x5c8/0x11f0 fs/btrfs/inode.c:1395 btrfs_run_delalloc_range+0x33d/0xf70 fs/btrfs/inode.c:2303 writepage_delalloc+0x8aa/0xc70 fs/btrfs/extent_io.c:1239 extent_writepage fs/btrfs/extent_io.c:1499 [inline] extent_write_cache_pages fs/btrfs/extent_io.c:2194 [inline] btrfs_writepages+0x1157/0x2370 fs/btrfs/extent_io.c:2325 do_writepages+0x35f/0x880 mm/page-writeback.c:2702 filemap_fdatawrite_wbc mm/filemap.c:397 [inline] __filemap_fdatawrite_range mm/filemap.c:430 [inline] filemap_fdatawrite_range+0x215/0x2c0 mm/filemap.c:448 btrfs_fdatawrite_range fs/btrfs/file.c:3719 [inline] start_ordered_ops fs/btrfs/file.c:1454 [inline] btrfs_sync_file+0x3ac/0x1230 fs/btrfs/file.c:1536 generic_write_sync include/linux/fs.h:2904 [inline] btrfs_do_write_iter+0x5e0/0x760 fs/btrfs/file.c:1406 new_sync_write fs/read_write.c:586 [inline] vfs_write+0xaeb/0xd30 fs/read_write.c:679 ksys_write+0x18f/0x2b0 fs/read_write.c:731 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f2bc837e819 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:00007f2bc91ad038 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f2bc8536080 RCX: 00007f2bc837e819 RDX: 000000000000fea7 RSI: 0000000020000040 RDI: 0000000000000008 RBP: 00007f2bc83f175e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f2bc8536080 R15: 00007fffd996a188