BTRFS info (device loop6): balance: start -s ------------[ cut here ]------------ BTRFS: Transaction aborted (error -28) WARNING: fs/btrfs/block-group.c:2795 at btrfs_create_pending_block_groups+0x1150/0x1780 fs/btrfs/block-group.c:2795, CPU#1: syz.6.4576/24154 Modules linked in: CPU: 1 UID: 0 PID: 24154 Comm: syz.6.4576 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025 RIP: 0010:btrfs_create_pending_block_groups+0x1150/0x1780 fs/btrfs/block-group.c:2795 Code: 00 e8 e4 cd b2 fd 84 c0 74 29 e8 bb 80 cc fd e9 fd 01 00 00 e8 b1 80 cc fd 90 48 c7 c7 a0 d2 b0 8b 44 89 f6 e8 61 8d 8f fd 90 <0f> 0b 90 90 e9 e5 fd ff ff e8 d2 fb 54 07 41 89 c7 31 ff 89 c6 e8 RSP: 0000:ffffc90003a876e0 EFLAGS: 00010246 RAX: 94e01d77ce433a00 RBX: ffff88803a858001 RCX: 0000000000080000 RDX: ffffc9000e851000 RSI: 000000000000c74d RDI: 000000000000c74e RBP: ffffc90003a87948 R08: 0000000000000003 R09: 0000000000000004 R10: dffffc0000000000 R11: fffffbfff1bba6c0 R12: 0000000000000000 R13: dffffc0000000000 R14: 00000000ffffffe4 R15: ffff88805c850000 FS: 00007ff39c1d56c0(0000) GS:ffff888126029000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ff394008000 CR3: 00000000303d8000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000010000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Call Trace: __btrfs_end_transaction+0x140/0x640 fs/btrfs/transaction.c:1070 btrfs_inc_block_group_ro+0x63e/0x6f0 fs/btrfs/block-group.c:3091 btrfs_relocate_block_group+0x3f1/0xc70 fs/btrfs/relocation.c:3933 btrfs_relocate_chunk+0x12f/0x5c0 fs/btrfs/volumes.c:3428 __btrfs_balance+0x1860/0x23f0 fs/btrfs/volumes.c:4201 btrfs_balance+0xac2/0x11b0 fs/btrfs/volumes.c:4578 btrfs_ioctl_balance+0x3d3/0x610 fs/btrfs/ioctl.c:3577 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7ff39df8efc9 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:00007ff39c1d5038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007ff39e1e6090 RCX: 00007ff39df8efc9 RDX: 0000200000000440 RSI: 00000000c4009420 RDI: 0000000000000003 RBP: 00007ff39e011f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ff39e1e6128 R14: 00007ff39e1e6090 R15: 00007ffe456592b8