------------[ cut here ]------------ BTRFS: Transaction aborted (error -28) WARNING: CPU: 1 PID: 13259 at fs/btrfs/block-group.c:3941 do_chunk_alloc fs/btrfs/block-group.c:3941 [inline] WARNING: CPU: 1 PID: 13259 at fs/btrfs/block-group.c:3941 btrfs_chunk_alloc+0xf70/0x10d0 fs/btrfs/block-group.c:4183 Modules linked in: CPU: 1 UID: 0 PID: 13259 Comm: syz.2.1261 Not tainted 6.13.0-rc3-next-20241219-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/25/2024 RIP: 0010:do_chunk_alloc fs/btrfs/block-group.c:3941 [inline] RIP: 0010:btrfs_chunk_alloc+0xf70/0x10d0 fs/btrfs/block-group.c:4183 Code: 04 24 48 8b 38 48 c7 c6 00 d0 4d 8c 89 da e8 b7 62 26 fd eb 19 e8 20 cb bd fd 90 48 c7 c7 a0 cf 4d 8c 89 de e8 61 92 7e fd 90 <0f> 0b 90 90 49 bd 00 00 00 00 00 fc ff df 4c 8b 74 24 08 4c 8b 64 RSP: 0018:ffffc90003406800 EFLAGS: 00010246 RAX: ace6b81fce7a4b00 RBX: ffffffffffffffe4 RCX: 0000000000080000 RDX: ffffc90012d13000 RSI: 0000000000007555 RDI: 0000000000007556 RBP: 0000000000000000 R08: ffffffff817fea32 R09: fffffbfff1cfa198 R10: dffffc0000000000 R11: fffffbfff1cfa198 R12: ffff88805a08e3d3 R13: dffffc0000000000 R14: ffff8880698ec001 R15: ffff888028abb800 FS: 00007fc50af586c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2c8ddff8 CR3: 000000001bb60000 CR4: 00000000003526f0 Call Trace: find_free_extent_update_loop fs/btrfs/extent-tree.c:4175 [inline] find_free_extent+0x42d1/0x5840 fs/btrfs/extent-tree.c:4588 btrfs_reserve_extent+0x422/0x810 fs/btrfs/extent-tree.c:4681 cow_file_range+0x60a/0x12d0 fs/btrfs/inode.c:1402 btrfs_run_delalloc_range+0x722/0xff0 fs/btrfs/inode.c:2382 writepage_delalloc+0x95c/0x10e0 fs/btrfs/extent_io.c:1251 extent_writepage fs/btrfs/extent_io.c:1548 [inline] extent_write_cache_pages fs/btrfs/extent_io.c:2246 [inline] btrfs_writepages+0x13be/0x22c0 fs/btrfs/extent_io.c:2374 do_writepages+0x35f/0x880 mm/page-writeback.c:2681 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+0x53/0xe0 fs/btrfs/file.c:3707 btrfs_wait_ordered_range+0x59/0x260 fs/btrfs/ordered-data.c:957 btrfs_clone_files+0x2af/0x3a0 fs/btrfs/reflink.c:759 btrfs_remap_file_range+0x615/0x1210 fs/btrfs/reflink.c:889 vfs_copy_file_range+0xc07/0x14f0 fs/read_write.c:1584 __do_sys_copy_file_range fs/read_write.c:1670 [inline] __se_sys_copy_file_range+0x3fa/0x600 fs/read_write.c:1637 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:0x7fc50a185d29 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:00007fc50af58038 EFLAGS: 00000246 ORIG_RAX: 0000000000000146 RAX: ffffffffffffffda RBX: 00007fc50a376080 RCX: 00007fc50a185d29 RDX: 0000000000000006 RSI: 0000000000000000 RDI: 0000000000000008 RBP: 00007fc50a201aa8 R08: 0000000000000006 R09: 0000000000000000 R10: 00000000200000c0 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fc50a376080 R15: 00007ffc82002b08