WARNING: CPU: 1 PID: 11155 at fs/btrfs/block-group.c:2752 btrfs_create_pending_block_groups+0x14f9/0x1710 fs/btrfs/block-group.c:2752 Modules linked in: CPU: 1 UID: 0 PID: 11155 Comm: syz.9.1187 Not tainted 6.12.0-rc7-syzkaller-00216-gf66d6acccbc0 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024 RIP: 0010:btrfs_create_pending_block_groups+0x14f9/0x1710 fs/btrfs/block-group.c:2752 Code: b8 fd 4c 89 f7 be 03 00 00 00 e8 e2 8b e1 00 e9 86 f9 ff ff e8 b8 ad b8 fd 90 48 c7 c7 80 c0 4e 8c 44 89 f6 e8 18 a4 79 fd 90 <0f> 0b 90 90 e9 7b fe ff ff e8 99 ad b8 fd 90 48 c7 c7 80 c0 4e 8c RSP: 0018:ffffc9000b8b76a0 EFLAGS: 00010246 RAX: 86bcf380e83ad000 RBX: ffff8880311dc001 RCX: 0000000000040000 RDX: ffffc9000b9a1000 RSI: 0000000000010dfa RDI: 0000000000010dfb RBP: ffffc9000b8b7960 R08: ffffffff8155e312 R09: fffffbfff1cf9ff8 R10: dffffc0000000000 R11: fffffbfff1cf9ff8 R12: 0000000000000000 R13: dffffc0000000000 R14: 00000000ffffffe4 R15: ffff88805d0151c0 FS: 00007fa23e21f6c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110c313112 CR3: 000000004ad42000 CR4: 0000000000350ef0 Call Trace: __btrfs_end_transaction+0x150/0x630 fs/btrfs/transaction.c:1065 btrfs_inc_block_group_ro+0x648/0x700 fs/btrfs/block-group.c:3043 btrfs_relocate_block_group+0x440/0xd90 fs/btrfs/relocation.c:4035 btrfs_relocate_chunk+0x12c/0x3b0 fs/btrfs/volumes.c:3377 __btrfs_balance+0x1b0f/0x26b0 fs/btrfs/volumes.c:4161 btrfs_balance+0xbdc/0x10c0 fs/btrfs/volumes.c:4538 btrfs_ioctl_balance+0x493/0x7c0 fs/btrfs/ioctl.c:3673 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:907 [inline] __se_sys_ioctl+0xfb/0x170 fs/ioctl.c:893 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa23d37e719 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fa23e21f038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fa23d535f80 RCX: 00007fa23d37e719 RDX: 0000000020000c40 RSI: 00000000c4009420 RDI: 0000000000000003 RBP: 00007fa23d3f175e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fa23d535f80 R15: 00007ffd92c29838