------------[ cut here ]------------ BTRFS: Transaction aborted (error -28) WARNING: CPU: 1 PID: 6858 at fs/btrfs/block-group.c:3945 do_chunk_alloc fs/btrfs/block-group.c:3945 [inline] WARNING: CPU: 1 PID: 6858 at fs/btrfs/block-group.c:3945 btrfs_chunk_alloc+0xebe/0xf80 fs/btrfs/block-group.c:4187 Modules linked in: CPU: 1 UID: 0 PID: 6858 Comm: syz.1.263 Not tainted 6.12.0-rc7-syzkaller-00212-g4a5df3796467 #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: 80 c0 4e 8c 89 de e8 61 6e 79 fd 90 0f 0b 90 90 e9 23 fe ff ff e8 e2 77 b8 fd 90 48 c7 c7 80 c0 4e 8c 89 de e8 43 6e 79 fd 90 <0f> 0b 90 90 e9 25 fe ff ff e8 c4 77 b8 fd 90 48 c7 c7 80 c0 4e 8c RSP: 0018:ffffc9000bf46840 EFLAGS: 00010246 RAX: 4abb3ed81e5f8100 RBX: ffffffffffffffe4 RCX: 0000000000040000 RDX: ffffc9000c572000 RSI: 00000000000079cf RDI: 00000000000079d0 RBP: ffff88805b277cb8 R08: ffffffff8155e312 R09: fffffbfff1cf9fd0 R10: dffffc0000000000 R11: fffffbfff1cf9fd0 R12: ffff888056281800 R13: dffffc0000000000 R14: ffff88807976c001 R15: 0000000000000000 FS: 00007fc0c89006c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020010000 CR3: 0000000079a92000 CR4: 0000000000350ef0 Call Trace: find_free_extent_update_loop fs/btrfs/extent-tree.c:4189 [inline] find_free_extent+0x42f4/0x5850 fs/btrfs/extent-tree.c:4602 btrfs_reserve_extent+0x422/0x810 fs/btrfs/extent-tree.c:4695 cow_file_range+0x60d/0x11f0 fs/btrfs/inode.c:1425 btrfs_run_delalloc_range+0x33d/0xf70 fs/btrfs/inode.c:2334 writepage_delalloc+0x482/0x7d0 fs/btrfs/extent_io.c:1193 extent_writepage fs/btrfs/extent_io.c:1455 [inline] extent_write_cache_pages fs/btrfs/extent_io.c:2131 [inline] btrfs_writepages+0x1157/0x2370 fs/btrfs/extent_io.c:2262 do_writepages+0x35f/0x870 mm/page-writeback.c:2683 filemap_fdatawrite_wbc+0x125/0x180 mm/filemap.c:398 __filemap_fdatawrite_range mm/filemap.c:431 [inline] filemap_fdatawrite_range+0x11a/0x180 mm/filemap.c:449 btrfs_fdatawrite_range fs/btrfs/file.c:3827 [inline] start_ordered_ops fs/btrfs/file.c:1563 [inline] btrfs_sync_file+0x3ac/0x1230 fs/btrfs/file.c:1645 generic_write_sync include/linux/fs.h:2871 [inline] btrfs_do_write_iter+0x5e0/0x760 fs/btrfs/file.c:1515 new_sync_write fs/read_write.c:590 [inline] vfs_write+0xaed/0xd30 fs/read_write.c:683 ksys_write+0x183/0x2b0 fs/read_write.c:736 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:0x7fc0c7b7e719 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:00007fc0c8900038 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fc0c7d36058 RCX: 00007fc0c7b7e719 RDX: 000000000000fdef RSI: 0000000020000540 RDI: 0000000000000006 RBP: 00007fc0c7bf175e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fc0c7d36058 R15: 00007ffe564e8e38