------------[ cut here ]------------
WARNING: CPU: 0 PID: 4451 at fs/btrfs/block-group.c:3443 do_chunk_alloc fs/btrfs/block-group.c:3443 [inline]
WARNING: CPU: 0 PID: 4451 at fs/btrfs/block-group.c:3443 btrfs_chunk_alloc+0xc0e/0x1020 fs/btrfs/block-group.c:3666
Modules linked in:
CPU: 0 PID: 4451 Comm: kworker/u4:14 Not tainted 5.15.117-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023
Workqueue: events_unbound btrfs_async_reclaim_data_space
RIP: 0010:do_chunk_alloc fs/btrfs/block-group.c:3443 [inline]
RIP: 0010:btrfs_chunk_alloc+0xc0e/0x1020 fs/btrfs/block-group.c:3666
Code: 00 00 00 fc ff df 4c 8b 24 24 0f 1f 44 00 00 e8 d8 c3 fe fd eb 16 e8 d1 c3 fe fd 48 c7 c7 40 88 cb 8a 44 89 ee e8 32 97 ca fd <0f> 0b 48 8b 7c 24 20 48 c7 c6 40 96 cb 8a ba 73 0d 00 00 e9 8e 00
RSP: 0018:ffffc90004e6f9d8 EFLAGS: 00010246
RAX: ecb1ccdab5480900 RBX: dffffc0000000000 RCX: ffff88801adf3b80
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: ffff888019048001 R08: ffffffff8166491c R09: ffffed10173467a0
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88807c0cb884
R13: ffffffffffffffe4 R14: ffff8880740f567b R15: 1ffff1100f819710
FS: 0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c0135f5810 CR3: 0000000071f3c000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
flush_space+0x4c5/0xd50 fs/btrfs/space-info.c:670
btrfs_async_reclaim_data_space+0x118/0x3e0 fs/btrfs/space-info.c:1169
process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2307
worker_thread+0xaca/0x1280 kernel/workqueue.c:2454
kthread+0x3f6/0x4f0 kernel/kthread.c:319
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298
</TASK>