------------[ cut here ]------------ WARNING: CPU: 0 PID: 57 at fs/btrfs/block-group.c:2562 btrfs_create_pending_block_groups+0xe21/0x1000 fs/btrfs/block-group.c:2562 Modules linked in: CPU: 0 PID: 57 Comm: kworker/u4:4 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Workqueue: events_unbound btrfs_async_reclaim_data_space RIP: 0010:btrfs_create_pending_block_groups+0xe21/0x1000 fs/btrfs/block-group.c:2562 Code: 09 0a 00 00 44 89 e1 e8 d7 1b 95 06 4c 8b 6c 24 10 e9 bb f6 ff ff e8 9e a6 f0 fd 48 c7 c7 40 f2 d1 8a 44 89 e6 e8 df 30 bc fd <0f> 0b e9 36 ff ff ff e8 83 a6 f0 fd 48 c7 c7 40 f2 d1 8a 89 de e8 RSP: 0018:ffffc90001587760 EFLAGS: 00010246 RAX: ff3757298ca20e00 RBX: ffff8880730d5050 RCX: ffff88801856bc00 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000002 RBP: ffffc900015879c0 R08: ffff8880b8e279db R09: 1ffff110171c4f3b R10: dffffc0000000000 R11: ffffed10171c4f3c R12: 00000000ffffffe4 R13: 0000000000000000 R14: ffff8880593d8001 R15: 1ffff1100e61aa0b FS: 0000000000000000(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fab6d667000 CR3: 000000007afc0000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __btrfs_end_transaction+0x154/0x680 fs/btrfs/transaction.c:1013 flush_space+0x9a4/0xda0 fs/btrfs/space-info.c:816 btrfs_async_reclaim_data_space+0x167/0x570 fs/btrfs/space-info.c:1342 process_one_work+0x8ab/0x1160 kernel/workqueue.c:2292 worker_thread+0xaf5/0x12a0 kernel/workqueue.c:2439 kthread+0x29d/0x330 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295