------------[ cut here ]------------ BTRFS: Transaction aborted (error -28) WARNING: CPU: 1 PID: 33 at fs/btrfs/block-group.c:3609 do_chunk_alloc fs/btrfs/block-group.c:3609 [inline] WARNING: CPU: 1 PID: 33 at fs/btrfs/block-group.c:3609 btrfs_chunk_alloc.cold+0x1ae/0x330 fs/btrfs/block-group.c:3851 Modules linked in: CPU: 1 PID: 33 Comm: kworker/u4:2 Not tainted 6.2.0-rc2-next-20230105-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Workqueue: events_unbound btrfs_async_reclaim_data_space RIP: 0010:do_chunk_alloc fs/btrfs/block-group.c:3609 [inline] RIP: 0010:btrfs_chunk_alloc.cold+0x1ae/0x330 fs/btrfs/block-group.c:3851 Code: 89 c7 89 c6 88 44 24 57 e8 03 37 b7 f7 45 84 ff 0f 84 6e 01 00 00 e8 85 3a b7 f7 44 89 f6 48 c7 c7 00 27 97 8a e8 82 72 f2 ff <0f> 0b e9 09 ff ff ff e8 6a 3a b7 f7 48 8b 54 24 40 b8 ff ff 37 00 RSP: 0018:ffffc90000aa7ad8 EFLAGS: 00010286 RAX: 0000000000000000 RBX: 00000000ffffffe4 RCX: 0000000000000000 RDX: ffff888012660000 RSI: ffffffff81668bec RDI: fffff52000154f4d RBP: ffff888029f49800 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000080000000 R11: 0000000000000000 R12: ffff888020a2d000 R13: ffff888029b20890 R14: ffffffffffffffe4 R15: 0000000020a2d001 FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055a992fa4000 CR3: 0000000028a0a000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: flush_space+0x9e7/0xeb0 fs/btrfs/space-info.c:772 btrfs_async_reclaim_data_space+0x1c6/0x6a0 fs/btrfs/space-info.c:1302 process_one_work+0x9bf/0x1750 kernel/workqueue.c:2293 worker_thread+0x669/0x1090 kernel/workqueue.c:2440 kthread+0x2e8/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308