BTRFS info (device loop7): 4190208 bytes available across all block groups ------------[ cut here ]------------ BTRFS: Transaction aborted (error -28) WARNING: CPU: 0 PID: 9736 at fs/btrfs/block-group.c:3945 do_chunk_alloc fs/btrfs/block-group.c:3945 [inline] WARNING: CPU: 0 PID: 9736 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: 9736 Comm: syz.7.857 Not tainted 6.12.0-syzkaller-03657-g43fb83c17ba2 #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: e0 db 4e 8c 89 de e8 51 9f 78 fd 90 0f 0b 90 90 e9 23 fe ff ff e8 72 a6 b7 fd 90 48 c7 c7 e0 db 4e 8c 89 de e8 33 9f 78 fd 90 <0f> 0b 90 90 e9 25 fe ff ff e8 54 a6 b7 fd 90 48 c7 c7 e0 db 4e 8c RSP: 0018:ffffc9000bc3e820 EFLAGS: 00010246 RAX: 75c0ca9edddb4600 RBX: ffffffffffffffe4 RCX: 0000000000080000 RDX: ffffc9000eb42000 RSI: 00000000000409f8 RDI: 00000000000409f9 RBP: ffff8880585c3940 R08: ffffffff8155f432 R09: fffffbfff1cfa88c R10: dffffc0000000000 R11: fffffbfff1cfa88c R12: ffff88807e379800 R13: dffffc0000000000 R14: ffff88807c4ac001 R15: 0000000000000000 FS: 00007f76793596c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f32f24656c0 CR3: 000000006424c000 CR4: 0000000000350ef0 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+0x361/0x880 mm/page-writeback.c:2683 filemap_fdatawrite_wbc mm/filemap.c:398 [inline] __filemap_fdatawrite_range mm/filemap.c:431 [inline] filemap_fdatawrite_range+0x215/0x2c0 mm/filemap.c:449 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+0xaed/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:0x7f767857e819 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:00007f7679359038 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f7678736080 RCX: 00007f767857e819 RDX: 000000000000fea7 RSI: 0000000020000040 RDI: 0000000000000007 RBP: 00007f76785f175e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f7678736080 R15: 00007ffc200eacb8