------------[ cut here ]------------ WARNING: CPU: 1 PID: 46 at fs/btrfs/block-group.c:3535 do_chunk_alloc+0x653/0x6c0 fs/btrfs/block-group.c:3535 Modules linked in: CPU: 1 PID: 46 Comm: kworker/u4:3 Not tainted 6.1.0-rc8-syzkaller-00154-g296a7b7eb792 #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 7b 7f a4 fd 0f 0b b3 01 e9 fd fe ff ff e8 5d e9 dc fd 48 c7 c7 60 9e 3b 8b 89 de 31 c0 e8 5d 7f a4 fd <0f> 0b 40 b5 01 e9 fa fe ff ff e8 3e e9 dc fd 48 c7 c7 60 9e 3b 8b RSP: 0018:ffffc90000b77950 EFLAGS: 00010246 RAX: ec9cd3bf4f520600 RBX: ffffffffffffffe4 RCX: ffff888017613a80 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: ffff88802cb2c001 R08: ffffffff816e5c7d R09: ffffed1017324f1c R10: ffffed1017324f1c R11: 1ffff11017324f1b R12: ffff88802e707bd0 R13: ffff88807e15c000 R14: 1ffff11005ce0f84 R15: 00000000ffffffe4 FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffc5a74dff8 CR3: 0000000079a81000 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