------------[ cut here ]------------ BTRFS: Transaction aborted (error -28) WARNING: CPU: 0 PID: 994 at fs/btrfs/block-group.c:3609 do_chunk_alloc fs/btrfs/block-group.c:3609 [inline] WARNING: CPU: 0 PID: 994 at fs/btrfs/block-group.c:3609 btrfs_chunk_alloc.cold+0x2c0/0x2e1 fs/btrfs/block-group.c:3851 Modules linked in: CPU: 0 PID: 994 Comm: kworker/u4:5 Not tainted 6.1.0-syzkaller-13409-g2f26e424552e #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Workqueue: events_unbound btrfs_async_reclaim_metadata_space RIP: 0010:do_chunk_alloc fs/btrfs/block-group.c:3609 [inline] RIP: 0010:btrfs_chunk_alloc.cold+0x2c0/0x2e1 fs/btrfs/block-group.c:3851 Code: f7 89 de 48 c7 c7 20 17 77 8a e8 dc 7f f2 ff 0f 0b e9 bc fd ff ff e8 90 1f c1 f7 44 89 f6 48 c7 c7 20 17 77 8a e8 c1 7f f2 ff <0f> 0b e9 42 fe ff ff e8 75 1f c1 f7 89 de 48 c7 c7 20 17 77 8a e8 RSP: 0018:ffffc90004a1fa68 EFLAGS: 00010286 RAX: 0000000000000000 RBX: 00000000ffffffe4 RCX: 0000000000000000 RDX: ffff88801e6cd7c0 RSI: ffffffff8166721c RDI: fffff52000943f3f RBP: ffff8880292a8800 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000080000000 R11: 0000000000000000 R12: ffff88807dfbb000 R13: ffff88802284c890 R14: ffffffffffffffe4 R15: 000000007dfbb001 FS: 0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f5134bc3670 CR3: 0000000028cfc000 CR4: 0000000000350ef0 Call Trace: flush_space+0x9ce/0xe90 fs/btrfs/space-info.c:772 btrfs_async_reclaim_metadata_space+0x541/0xc10 fs/btrfs/space-info.c:1086 process_one_work+0x9bf/0x1710 kernel/workqueue.c:2289 worker_thread+0x669/0x1090 kernel/workqueue.c:2436 kthread+0x2e8/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308