------------[ cut here ]------------ WARNING: CPU: 0 PID: 46 at fs/btrfs/block-group.c:3692 do_chunk_alloc fs/btrfs/block-group.c:3692 [inline] WARNING: CPU: 0 PID: 46 at fs/btrfs/block-group.c:3692 btrfs_chunk_alloc+0xdab/0x1010 fs/btrfs/block-group.c:3934 Modules linked in: CPU: 0 PID: 46 Comm: kworker/u4:3 Not tainted 6.1.147-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 Workqueue: events_unbound btrfs_async_reclaim_metadata_space RIP: 0010:do_chunk_alloc fs/btrfs/block-group.c:3692 [inline] RIP: 0010:btrfs_chunk_alloc+0xdab/0x1010 fs/btrfs/block-group.c:3934 Code: fd 48 c7 c7 a0 8b d1 8a 89 ee e8 f0 3a c9 fd 0f 0b e9 44 fd ff ff e8 a4 18 fd fd 48 c7 c7 a0 8b d1 8a 44 89 f6 e8 d5 3a c9 fd <0f> 0b e9 89 fd ff ff e8 89 18 fd fd 48 c7 c7 a0 8b d1 8a 89 ee e8 RSP: 0018:ffffc90000b77998 EFLAGS: 00010246 RAX: 98b9a6e425095d00 RBX: ffff88807cd24001 RCX: ffff88801c693b80 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000002 RBP: 0000000000000000 R08: dffffc0000000000 R09: ffffed10171c4f34 R10: ffffed10171c4f34 R11: 1ffff110171c4f33 R12: ffff888023ecd000 R13: dffffc0000000000 R14: ffffffffffffffe4 R15: ffff88807779f000 FS: 0000000000000000(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ff1749b7dac CR3: 000000005b8e6000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: flush_space+0x94d/0xd80 fs/btrfs/space-info.c:766 btrfs_async_reclaim_metadata_space+0x26f/0x330 fs/btrfs/space-info.c:1080 process_one_work+0x898/0x1160 kernel/workqueue.c:2292 worker_thread+0xaa2/0x1250 kernel/workqueue.c:2439 kthread+0x29d/0x330 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295