------------[ cut here ]------------ BTRFS: Transaction aborted (error -28) WARNING: CPU: 0 PID: 5317 at fs/btrfs/block-group.c:3945 do_chunk_alloc fs/btrfs/block-group.c:3945 [inline] WARNING: CPU: 0 PID: 5317 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: 5317 Comm: syz.0.0 Not tainted 6.13.0-rc1-syzkaller-00316-gb5f217084ab3 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 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: 40 61 4d 8c 89 de e8 81 8e 77 fd 90 0f 0b 90 90 e9 23 fe ff ff e8 12 e7 b6 fd 90 48 c7 c7 40 61 4d 8c 89 de e8 63 8e 77 fd 90 <0f> 0b 90 90 e9 25 fe ff ff e8 f4 e6 b6 fd 90 48 c7 c7 40 61 4d 8c RSP: 0018:ffffc9000d36e4a0 EFLAGS: 00010246 RAX: eceaf8dbc6429700 RBX: ffffffffffffffe4 RCX: 0000000000100000 RDX: ffffc9000ee8a000 RSI: 000000000000432f RDI: 0000000000004330 RBP: ffff8880451544a0 R08: ffffffff81601c02 R09: 1ffff11003f8519a R10: dffffc0000000000 R11: ffffed1003f8519b R12: ffff888036039800 R13: dffffc0000000000 R14: ffff888035e4c001 R15: 0000000000000000 FS: 00007f3f437fe6c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055ca7daa3338 CR3: 00000000408da000 CR4: 0000000000352ef0 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+0x42d1/0x5810 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 fallback_to_cow+0x6a8/0xa80 fs/btrfs/inode.c:1826 run_delalloc_nocow+0xe8a/0x11e0 fs/btrfs/inode.c:2222 btrfs_run_delalloc_range+0x31d/0xf70 fs/btrfs/inode.c:2290 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+0x1170/0x2380 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+0x3c4/0x11e0 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:0x7f3f43d7fed9 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:00007f3f437fe058 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f3f43f46080 RCX: 00007f3f43d7fed9 RDX: 000000000000fea7 RSI: 0000000020000040 RDI: 0000000000000006 RBP: 00007f3f43df3cc8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f3f43f46080 R15: 00007ffed2a45028