------------[ cut here ]------------ BTRFS: Transaction aborted (error -28) WARNING: CPU: 1 PID: 5132 at fs/btrfs/block-group.c:2684 btrfs_create_pending_block_groups+0x1044/0x1280 fs/btrfs/block-group.c:2684 Modules linked in: CPU: 1 PID: 5132 Comm: kworker/u4:6 Not tainted 6.5.0-rc6-syzkaller-00117-g0e8860d2125f #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 Workqueue: events_unbound btrfs_async_reclaim_metadata_space RIP: 0010:btrfs_create_pending_block_groups+0x1044/0x1280 fs/btrfs/block-group.c:2684 Code: 48 c7 c7 e0 62 4c 8b 44 89 fe e8 f7 de a3 fd 0f 0b e9 d5 fe ff ff e8 6b c5 dc fd 48 c7 c7 e0 62 4c 8b 44 89 e6 e8 dc de a3 fd <0f> 0b e9 66 ff ff ff 48 8b 4c 24 60 80 e1 07 38 c1 0f 8c 5a f3 ff RSP: 0018:ffffc900046b7740 EFLAGS: 00010246 RAX: fde69ba209a4d000 RBX: ffff888076794001 RCX: ffff88801f328000 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffffc900046b79e0 R08: ffffffff8152d442 R09: 1ffff920008d6e60 R10: dffffc0000000000 R11: fffff520008d6e61 R12: 00000000ffffffe4 R13: ffff88803ad269c0 R14: 0000000000000000 R15: ffff88803ad26800 FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f07cf3fe000 CR3: 0000000035759000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __btrfs_end_transaction+0x150/0x640 fs/btrfs/transaction.c:1001 flush_space+0xab3/0xe70 fs/btrfs/space-info.c:771 btrfs_async_reclaim_metadata_space+0x29f/0x350 fs/btrfs/space-info.c:1078 process_one_work+0x92c/0x12c0 kernel/workqueue.c:2600 worker_thread+0xa63/0x1210 kernel/workqueue.c:2751 kthread+0x2b8/0x350 kernel/kthread.c:389 ret_from_fork+0x2e/0x60 arch/x86/kernel/process.c:145 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304