------------[ cut here ]------------ WARNING: CPU: 0 PID: 3916 at fs/btrfs/block-group.c:3443 do_chunk_alloc fs/btrfs/block-group.c:3443 [inline] WARNING: CPU: 0 PID: 3916 at fs/btrfs/block-group.c:3443 btrfs_chunk_alloc+0xc0e/0x1020 fs/btrfs/block-group.c:3666 Modules linked in: CPU: 0 PID: 3916 Comm: kworker/u4:11 Not tainted 5.15.104-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/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 00 ff fd eb 16 e8 51 00 ff fd 48 c7 c7 40 76 cb 8a 44 89 ee e8 22 e5 ca fd <0f> 0b 48 8b 7c 24 20 48 c7 c6 40 84 cb 8a ba 73 0d 00 00 e9 8e 00 RSP: 0018:ffffc900055df9d8 EFLAGS: 00010246 RAX: 4ddfde0f84804200 RBX: dffffc0000000000 RCX: ffff8880777b5700 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: ffff88807dd18001 R08: ffffffff8166101c R09: ffffed1017344f24 R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88801b8af084 R13: ffffffffffffffe4 R14: ffff888074b58cab R15: 1ffff11003715e10 FS: 0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020622000 CR3: 0000000019366000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 000000000000003b DR6: 00000000ffff0ff0 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