------------[ cut here ]------------ WARNING: CPU: 1 PID: 27 at fs/btrfs/block-group.c:2102 btrfs_create_pending_block_groups+0x5c9/0x760 fs/btrfs/block-group.c:2102 Modules linked in: CPU: 1 PID: 27 Comm: kworker/u4:2 Not tainted 5.11.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Workqueue: events_unbound btrfs_async_reclaim_metadata_space RIP: 0010:btrfs_create_pending_block_groups+0x5c9/0x760 fs/btrfs/block-group.c:2102 Code: c8 19 00 00 03 72 25 41 83 fe fb 0f 84 55 01 00 00 41 83 fe e2 0f 84 4b 01 00 00 44 89 f6 48 c7 c7 00 b7 0f 89 e8 50 15 23 05 <0f> 0b 44 89 f1 ba 36 08 00 00 48 c7 c6 00 c4 0f 89 48 89 ef e8 17 RSP: 0018:ffffc90000e37ae0 EFLAGS: 00010286 RAX: 0000000000000000 RBX: 0000000000000004 RCX: 0000000000000000 RDX: 0000000000000001 RSI: 0000000000000004 RDI: fffff520001c6f4e RBP: ffff888034e8c540 R08: 0000000000000001 R09: ffff8880b9f2015b R10: ffffed10173e402b R11: 0000000000000001 R12: dffffc0000000000 R13: ffff88802cda11b0 R14: 00000000ffffffe4 R15: ffff88802b758000 FS: 0000000000000000(0000) GS:ffff8880b9f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f1d1c16e920 CR3: 0000000027207000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __btrfs_end_transaction+0xd8/0x6e0 fs/btrfs/transaction.c:957 flush_space+0xbc/0xc20 fs/btrfs/space-info.c:725 btrfs_async_reclaim_metadata_space+0x14f/0x320 fs/btrfs/space-info.c:944 process_one_work+0x84c/0x13b0 kernel/workqueue.c:2275 worker_thread+0x598/0xf80 kernel/workqueue.c:2421 kthread+0x36f/0x450 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296