------------[ cut here ]------------ BTRFS: Transaction aborted (error -28) WARNING: CPU: 1 PID: 42 at fs/btrfs/block-group.c:2776 btrfs_create_pending_block_groups+0xf4e/0x1060 fs/btrfs/block-group.c:2776 Modules linked in: CPU: 1 PID: 42 Comm: kworker/u4:2 Not tainted syzkaller #0 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+0xf4e/0x1060 fs/btrfs/block-group.c:2776 Code: df 0a 00 00 44 89 e1 e8 f0 f5 e9 06 4c 8b 64 24 20 e9 47 f5 ff ff e8 01 77 e3 fd 48 c7 c7 a0 ab 2e 8b 44 89 e6 e8 a2 1b ad fd <0f> 0b 49 be 00 00 00 00 00 fc ff df e9 5e fe ff ff e8 dc 76 e3 fd RSP: 0018:ffffc90000b2f720 EFLAGS: 00010246 RAX: 41d3e81fed5fad00 RBX: 0000000000000000 RCX: ffff888019e99e00 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000002 RBP: ffffc90000b2f980 R08: ffffc90000b2f327 R09: 1ffff92000165e64 R10: dffffc0000000000 R11: fffff52000165e65 R12: 00000000ffffffe4 R13: ffff88801e341858 R14: ffff888028114001 R15: ffff88801e341850 FS: 0000000000000000(0000) GS:ffff8880b8d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055b6495b8b60 CR3: 0000000068d75000 CR4: 00000000003506e0 Call Trace: __btrfs_end_transaction+0x140/0x630 fs/btrfs/transaction.c:1042 flush_space+0x49f/0xcd0 fs/btrfs/space-info.c:801 btrfs_async_reclaim_metadata_space+0x26b/0x330 fs/btrfs/space-info.c:1100 process_one_work kernel/workqueue.c:2657 [inline] process_scheduled_works+0xa60/0x1600 kernel/workqueue.c:2734 worker_thread+0xa5e/0xfe0 kernel/workqueue.c:2815 kthread+0x2fa/0x390 kernel/kthread.c:388 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293