------------[ cut here ]------------ BTRFS: Transaction aborted (error -28) WARNING: fs/btrfs/block-group.c:4012 at do_chunk_alloc fs/btrfs/block-group.c:4012 [inline], CPU#1: syz.9.99/6793 WARNING: fs/btrfs/block-group.c:4012 at btrfs_chunk_alloc+0x12cf/0x1470 fs/btrfs/block-group.c:4253, CPU#1: syz.9.99/6793 Modules linked in: CPU: 1 UID: 0 PID: 6793 Comm: syz.9.99 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/24/2026 RIP: 0010:do_chunk_alloc fs/btrfs/block-group.c:4012 [inline] RIP: 0010:btrfs_chunk_alloc+0x12d2/0x1470 fs/btrfs/block-group.c:4253 Code: fd 48 8d 3d 20 37 76 0c 44 89 ee 67 48 0f b9 3a 41 bc 01 00 00 00 e9 05 0c e7 fc e8 38 67 bc fd 48 8d 3d 11 37 76 0c 44 89 ee <67> 48 0f b9 3a 41 bc 01 00 00 00 e8 1e 67 bc fd 48 8b 7c 24 48 45 RSP: 0018:ffffc90004e06880 EFLAGS: 00010283 RAX: 0000000000002b9b RBX: ffff88802991d800 RCX: ffffc90013502000 RDX: 0000000000080000 RSI: 00000000ffffffe4 RDI: ffffffff90c0ae40 RBP: ffff88802991d8b1 R08: 0000000000000005 R09: fffffffffffffffb R10: ffffffffffffffe4 R11: 0000000000000000 R12: ffff88803530db00 R13: 00000000ffffffe4 R14: ffff888033838000 R15: ffffffffffffffe4 FS: 00007fed637d56c0(0000) GS:ffff8881246dc000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fed66366000 CR3: 0000000029c2b000 CR4: 0000000000350ef0 Call Trace: find_free_extent_update_loop fs/btrfs/extent-tree.c:4199 [inline] find_free_extent+0x3232/0x7140 fs/btrfs/extent-tree.c:4611 btrfs_reserve_extent+0x2cc/0x6f0 fs/btrfs/extent-tree.c:4705 cow_file_range+0x4e5/0x13b0 fs/btrfs/inode.c:1388 btrfs_run_delalloc_range+0x4d9/0x10f0 fs/btrfs/inode.c:2397 writepage_delalloc+0x9e4/0x1e00 fs/btrfs/extent_io.c:1501 extent_writepage fs/btrfs/extent_io.c:1864 [inline] extent_write_cache_pages+0xfc1/0x2700 fs/btrfs/extent_io.c:2551 btrfs_writepages+0x209/0x500 fs/btrfs/extent_io.c:2684 do_writepages+0x278/0x600 mm/page-writeback.c:2598 filemap_writeback+0x22d/0x2e0 mm/filemap.c:387 btrfs_fdatawrite_range+0x53/0xf0 fs/btrfs/file.c:3891 start_ordered_ops.constprop.0+0x9b/0xe0 fs/btrfs/file.c:1518 btrfs_sync_file+0x21c/0xf90 fs/btrfs/file.c:1600 vfs_fsync_range+0x142/0x230 fs/sync.c:188 generic_write_sync include/linux/fs.h:2618 [inline] btrfs_do_write_iter+0x6cf/0x920 fs/btrfs/file.c:1470 aio_write+0x3ba/0x920 fs/aio.c:1634 __io_submit_one fs/aio.c:2006 [inline] io_submit_one+0x1142/0x1fb0 fs/aio.c:2053 __do_sys_io_submit fs/aio.c:2112 [inline] __se_sys_io_submit fs/aio.c:2082 [inline] __x64_sys_io_submit+0x1b1/0x3a0 fs/aio.c:2082 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc9/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fed6559aeb9 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fed637d5028 EFLAGS: 00000246 ORIG_RAX: 00000000000000d1 RAX: ffffffffffffffda RBX: 00007fed65816090 RCX: 00007fed6559aeb9 RDX: 00002000000002c0 RSI: 0000000000000001 RDI: 00007fed66366000 RBP: 00007fed65608c1f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fed65816128 R14: 00007fed65816090 R15: 00007fff161f93e8 ---------------- Code disassembly (best guess): 0: fd std 1: 48 8d 3d 20 37 76 0c lea 0xc763720(%rip),%rdi # 0xc763728 8: 44 89 ee mov %r13d,%esi b: 67 48 0f b9 3a ud1 (%edx),%rdi 10: 41 bc 01 00 00 00 mov $0x1,%r12d 16: e9 05 0c e7 fc jmp 0xfce70c20 1b: e8 38 67 bc fd call 0xfdbc6758 20: 48 8d 3d 11 37 76 0c lea 0xc763711(%rip),%rdi # 0xc763738 27: 44 89 ee mov %r13d,%esi * 2a: 67 48 0f b9 3a ud1 (%edx),%rdi <-- trapping instruction 2f: 41 bc 01 00 00 00 mov $0x1,%r12d 35: e8 1e 67 bc fd call 0xfdbc6758 3a: 48 8b 7c 24 48 mov 0x48(%rsp),%rdi 3f: 45 rex.RB