------------[ cut here ]------------ BTRFS: Transaction aborted (error -28) WARNING: CPU: 1 PID: 17914 at fs/btrfs/block-group.c:2481 btrfs_create_pending_block_groups.cold+0x5d/0x1e5 fs/btrfs/block-group.c:2481 Modules linked in: CPU: 1 PID: 17914 Comm: syz-executor.1 Not tainted 6.1.0-next-20221216-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0010:btrfs_create_pending_block_groups.cold+0x5d/0x1e5 fs/btrfs/block-group.c:2481 Code: 78 fd ff 31 ff 89 c3 89 c6 e8 a5 0a b3 f7 84 db 0f 84 c5 00 00 00 e8 28 0e b3 f7 44 89 e6 48 c7 c7 e0 20 97 8a e8 53 86 f2 ff <0f> 0b eb a1 e8 10 0e b3 f7 44 89 e7 e8 cb 77 fd ff 31 ff 89 c3 89 RSP: 0018:ffffc900034cf720 EFLAGS: 00010286 RAX: 0000000000000000 RBX: 00000000ffffff01 RCX: 0000000000000000 RDX: 0000000000040000 RSI: ffffffff81667acc RDI: fffff52000699ed6 RBP: ffff888078e38000 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000080000000 R11: 0000000000000000 R12: 00000000ffffffe4 R13: dffffc0000000000 R14: ffff888026369058 R15: ffff888026369050 FS: 00007f10dd178700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f84fb585058 CR3: 0000000077668000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __btrfs_end_transaction+0xf9/0x900 fs/btrfs/transaction.c:1003 btrfs_inc_block_group_ro+0x237/0x550 fs/btrfs/block-group.c:2724 btrfs_relocate_block_group+0x1c3/0xda0 fs/btrfs/relocation.c:4039 btrfs_relocate_chunk+0x14a/0x350 fs/btrfs/volumes.c:3240 __btrfs_balance fs/btrfs/volumes.c:3968 [inline] btrfs_balance+0x1caf/0x3b50 fs/btrfs/volumes.c:4352 btrfs_ioctl_balance fs/btrfs/ioctl.c:3591 [inline] btrfs_ioctl+0xfcc/0x5870 fs/btrfs/ioctl.c:4622 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl fs/ioctl.c:856 [inline] __x64_sys_ioctl+0x197/0x210 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f10dc48c0d9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f10dd178168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f10dc5abf80 RCX: 00007f10dc48c0d9 RDX: 0000000020000100 RSI: 00000000c4009420 RDI: 0000000000000003 RBP: 00007f10dc4e7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd97714f2f R14: 00007f10dd178300 R15: 0000000000022000