WARNING: CPU: 0 PID: 24997 at fs/btrfs/block-group.c:3443 do_chunk_alloc fs/btrfs/block-group.c:3443 [inline] WARNING: CPU: 0 PID: 24997 at fs/btrfs/block-group.c:3443 btrfs_chunk_alloc+0xc0e/0x1020 fs/btrfs/block-group.c:3666 Modules linked in: CPU: 0 PID: 24997 Comm: kworker/u4:1 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:ffffc90004d9f9d8 EFLAGS: 00010246 RAX: 071fb46247c30400 RBX: dffffc0000000000 RCX: ffff888026bc1d00 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: ffff88801f124001 R08: ffffffff816612ec R09: ffffed1017344f24 R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888073fa9884 R13: ffffffffffffffe4 R14: ffff88804bb4ba9b R15: 1ffff1100e7f5310 FS: 0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f11e17dc1b8 CR3: 0000000050655000 CR4: 00000000003506f0 DR0: 00000000ffff070c DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 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