------------[ cut here ]------------ btrfs_abort_should_print_stack(__error) WARNING: fs/btrfs/block-group.c:2933 at btrfs_create_pending_block_groups+0x135a/0x15d0 fs/btrfs/block-group.c:2933, CPU#1: kworker/u8:14/3374 Modules linked in: CPU: 1 UID: 0 PID: 3374 Comm: kworker/u8:14 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 Workqueue: events_unbound btrfs_async_reclaim_metadata_space RIP: 0010:btrfs_create_pending_block_groups+0x135a/0x15d0 fs/btrfs/block-group.c:2933 Code: 83 fb e2 74 18 83 fb fb 74 0c 83 fb f4 75 15 e8 fc 11 6a fd eb 17 e8 f5 11 6a fd eb 10 e8 ee 11 6a fd eb 09 e8 e7 11 6a fd 90 <0f> 0b 90 49 be 00 00 00 00 00 fc ff df f7 db e9 39 fd ff ff 44 89 RSP: 0018:ffffc9000ee37520 EFLAGS: 00010293 RAX: ffffffff845f88e9 RBX: 00000000ffffffe4 RCX: ffff88803402be80 RDX: 0000000000000000 RSI: ffffffff90a28570 RDI: 00000000ffffffe4 RBP: ffffc9000ee377a0 R08: ffff88803402be80 R09: 0000000000000003 R10: 00000000fffffffb R11: 0000000000000000 R12: ffff88807b0712f8 R13: fffff52001dc6ec0 R14: ffff888023720001 R15: ffff88807b0714b8 FS: 0000000000000000(0000) GS:ffff8881232b0000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110c382dc6 CR3: 0000000034c1e000 CR4: 00000000003526f0 Call Trace: __btrfs_end_transaction+0x140/0x640 fs/btrfs/transaction.c:1122 flush_space+0x3e9/0xde0 fs/btrfs/space-info.c:909 do_async_reclaim_metadata_space+0x3e8/0x940 fs/btrfs/space-info.c:1208 btrfs_async_reclaim_metadata_space+0x89/0xe0 fs/btrfs/space-info.c:1275 process_one_work kernel/workqueue.c:3503 [inline] process_scheduled_works+0xc5d/0x1650 kernel/workqueue.c:3586 worker_thread+0xa47/0xfb0 kernel/workqueue.c:3667 kthread+0x38b/0x480 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245