------------[ cut here ]------------ BTRFS: Transaction aborted (error -28) WARNING: CPU: 0 PID: 11 at fs/btrfs/block-group.c:3943 do_chunk_alloc fs/btrfs/block-group.c:3943 [inline] WARNING: CPU: 0 PID: 11 at fs/btrfs/block-group.c:3943 btrfs_chunk_alloc+0xebe/0xf80 fs/btrfs/block-group.c:4185 Modules linked in: CPU: 0 UID: 0 PID: 11 Comm: kworker/u4:0 Not tainted 6.11.0-syzkaller-03917-ga940d9a43e62 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Workqueue: events_unbound btrfs_async_reclaim_metadata_space RIP: 0010:do_chunk_alloc fs/btrfs/block-group.c:3943 [inline] RIP: 0010:btrfs_chunk_alloc+0xebe/0xf80 fs/btrfs/block-group.c:4185 Code: c0 7a 4e 8c 89 de e8 d1 9d 7e fd 90 0f 0b 90 90 e9 23 fe ff ff e8 42 01 bd fd 90 48 c7 c7 c0 7a 4e 8c 89 de e8 b3 9d 7e fd 90 <0f> 0b 90 90 e9 25 fe ff ff e8 24 01 bd fd 90 48 c7 c7 c0 7a 4e 8c RSP: 0018:ffffc900003d6660 EFLAGS: 00010246 RAX: f4144b4fd82f6d00 RBX: ffffffffffffffe4 RCX: ffff88801bb3a440 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffff88803fb51000 R08: ffffffff8155c952 R09: fffffbfff1cfa178 R10: dffffc0000000000 R11: fffffbfff1cfa178 R12: ffff888012117800 R13: dffffc0000000000 R14: ffff888041078001 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff88801fe00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fea18510f98 CR3: 00000000405d4000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: find_free_extent_update_loop fs/btrfs/extent-tree.c:4173 [inline] find_free_extent+0x42f4/0x5850 fs/btrfs/extent-tree.c:4586 btrfs_reserve_extent+0x422/0x810 fs/btrfs/extent-tree.c:4679 cow_file_range+0x5c4/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:1192 extent_writepage fs/btrfs/extent_io.c:1454 [inline] extent_write_cache_pages fs/btrfs/extent_io.c:2130 [inline] btrfs_writepages+0x1157/0x2370 fs/btrfs/extent_io.c:2261 do_writepages+0x35d/0x870 mm/page-writeback.c:2683 filemap_fdatawrite_wbc+0x125/0x180 mm/filemap.c:397 start_delalloc_inodes+0x7cb/0xc60 fs/btrfs/inode.c:8484 btrfs_start_delalloc_roots+0x738/0xad0 fs/btrfs/inode.c:8561 shrink_delalloc fs/btrfs/space-info.c:673 [inline] flush_space+0x635/0xd00 fs/btrfs/space-info.c:783 btrfs_async_reclaim_metadata_space+0x28e/0x350 fs/btrfs/space-info.c:1105 process_one_work kernel/workqueue.c:3231 [inline] process_scheduled_works+0xa2c/0x1830 kernel/workqueue.c:3312 worker_thread+0x870/0xd30 kernel/workqueue.c:3393 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244