------------[ cut here ]------------ WARNING: CPU: 1 PID: 17788 at fs/btrfs/block-group.c:3443 do_chunk_alloc fs/btrfs/block-group.c:3443 [inline] WARNING: CPU: 1 PID: 17788 at fs/btrfs/block-group.c:3443 btrfs_chunk_alloc+0xc0e/0x1020 fs/btrfs/block-group.c:3666 Modules linked in: CPU: 0 PID: 17788 Comm: kworker/u4:10 Not tainted 5.15.106-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/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 58 ff fe fd eb 16 e8 51 ff fe fd 48 c7 c7 80 76 cb 8a 44 89 ee e8 52 e1 ca fd <0f> 0b 48 8b 7c 24 20 48 c7 c6 80 84 cb 8a ba 73 0d 00 00 e9 8e 00 RSP: 0018:ffffc9000b2df9d8 EFLAGS: 00010246 RAX: efef56cb9c8a1f00 RBX: dffffc0000000000 RCX: ffff88803d423a00 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: ffff8880320cc001 R08: ffffffff816612ec R09: ffffed1017364f24 R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888018823084 R13: ffffffffffffffe4 R14: ffff888072d437db R15: 1ffff11003104610 FS: 0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f33b10ad718 CR3: 000000001de2f000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: 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:2306 worker_thread+0xaca/0x1280 kernel/workqueue.c:2453 kthread+0x3f6/0x4f0 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298