------------[ cut here ]------------ btrfs_abort_should_print_stack(__error) WARNING: fs/btrfs/free-space-tree.c:1446 at __add_block_group_free_space+0x5a3/0x5b0 fs/btrfs/free-space-tree.c:1446, CPU#1: kworker/u8:10/1177 Modules linked in: CPU: 1 UID: 0 PID: 1177 Comm: kworker/u8:10 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:__add_block_group_free_space+0x5a3/0x5b0 fs/btrfs/free-space-tree.c:1446 Code: 07 38 c1 0f 8c ce fc ff ff 4c 89 f7 e8 66 17 f2 fd e9 c1 fc ff ff e8 ac d1 71 fd eb 10 e8 a5 d1 71 fd eb 09 e8 9e d1 71 fd 90 <0f> 0b 90 44 89 e1 f7 d9 e9 51 fe ff ff 90 90 90 90 90 90 90 90 90 RSP: 0018:ffffc900055b7498 EFLAGS: 00010293 RAX: ffffffff8457b4c2 RBX: ffff88807857c001 RCX: ffff88802a2a1f40 RDX: 0000000000000000 RSI: ffffffff90823b60 RDI: 00000000ffffffe4 RBP: ffff888055eba2f0 R08: ffff88802a2a1f40 R09: 0000000000000003 R10: 00000000fffffffb R11: 0000000000000000 R12: 00000000ffffffe4 R13: ffff8880236be840 R14: ffff888055eba350 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8881234b8000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055e8d2f1f790 CR3: 000000007fa20000 CR4: 00000000003526f0 Call Trace: btrfs_add_block_group_free_space+0xd0/0x130 fs/btrfs/free-space-tree.c:1471 btrfs_create_pending_block_groups+0xcc7/0x15e0 fs/btrfs/block-group.c:2943 __btrfs_end_transaction+0x140/0x640 fs/btrfs/transaction.c:1119 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:3511 [inline] process_scheduled_works+0xc3d/0x1630 kernel/workqueue.c:3594 worker_thread+0xa47/0xfb0 kernel/workqueue.c:3675 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