------------[ cut here ]------------ WARNING: CPU: 0 PID: 9 at fs/btrfs/block-group.c:3715 do_chunk_alloc fs/btrfs/block-group.c:3715 [inline] WARNING: CPU: 0 PID: 9 at fs/btrfs/block-group.c:3715 btrfs_chunk_alloc+0xda6/0x1010 fs/btrfs/block-group.c:3957 Modules linked in: CPU: 0 PID: 9 Comm: kworker/u4:0 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026 Workqueue: events_unbound btrfs_async_reclaim_metadata_space RIP: 0010:do_chunk_alloc fs/btrfs/block-group.c:3715 [inline] RIP: 0010:btrfs_chunk_alloc+0xda6/0x1010 fs/btrfs/block-group.c:3957 Code: fd 48 c7 c7 80 a0 d1 8a 44 89 e6 e8 d4 46 c1 fd 0f 0b e9 94 fe ff ff e8 b8 d5 f5 fd 48 c7 c7 80 a0 d1 8a 89 de e8 ba 46 c1 fd <0f> 0b e9 b8 fe ff ff e8 9e d5 f5 fd 48 c7 c7 80 a0 d1 8a 44 89 e6 RSP: 0018:ffffc900000e7970 EFLAGS: 00010246 RAX: 63b0079df6d72f00 RBX: ffffffffffffffe4 RCX: ffff88813fec0000 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000002 RBP: 0000000000000000 R08: ffffc900000e75e7 R09: 1ffff9200001cebc R10: dffffc0000000000 R11: fffff5200001cebd R12: ffff888055f350b9 R13: dffffc0000000000 R14: ffff888058045000 R15: 1ffff1100abe6a17 FS: 0000000000000000(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2fa19ff8 CR3: 000000005ac5a000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: flush_space+0x974/0xd90 fs/btrfs/space-info.c:814 btrfs_async_reclaim_metadata_space+0x276/0x330 fs/btrfs/space-info.c:1128 process_one_work+0x8a2/0x1160 kernel/workqueue.c:2292 worker_thread+0xaa2/0x1270 kernel/workqueue.c:2439 kthread+0x29d/0x330 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295