------------[ cut here ]------------ WARNING: CPU: 1 PID: 11 at fs/btrfs/block-group.c:3535 do_chunk_alloc+0x653/0x6c0 fs/btrfs/block-group.c:3535 Modules linked in: CPU: 1 PID: 11 Comm: kworker/u4:1 Not tainted 6.1.0-rc7-syzkaller-00123-ga4412fdd49dc #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+0x653/0x6c0 fs/btrfs/block-group.c:3535 Code: 3b 8b 44 89 fe 31 c0 e8 9b 98 a4 fd 0f 0b b3 01 e9 fd fe ff ff e8 cd f9 dc fd 48 c7 c7 60 99 3b 8b 89 de 31 c0 e8 7d 98 a4 fd <0f> 0b 40 b5 01 e9 fa fe ff ff e8 ae f9 dc fd 48 c7 c7 60 99 3b 8b RSP: 0018:ffffc90000107950 EFLAGS: 00010246 RAX: 99c4d0bda0082000 RBX: ffffffffffffffe4 RCX: ffff88813fee3a80 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: ffff888066660001 R08: ffffffff816e560d R09: ffffed1017324f1c R10: ffffed1017324f1c R11: 1ffff11017324f1b R12: ffff888031ccab28 R13: ffff88807f4ec000 R14: 1ffff1100639956f R15: 00000000ffffffe4 FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000056072aa77668 CR3: 0000000041ea2000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: btrfs_chunk_alloc+0x6a4/0x900 fs/btrfs/block-group.c:3777 flush_space+0x9d8/0xbc0 fs/btrfs/space-info.c:769 btrfs_async_reclaim_data_space+0x14e/0x520 fs/btrfs/space-info.c:1299 process_one_work+0x877/0xdb0 kernel/workqueue.c:2289 worker_thread+0xb14/0x1330 kernel/workqueue.c:2436 kthread+0x266/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306