BTRFS info (device loop4): clearing compat-ro feature flag for FREE_SPACE_TREE (0x1) BTRFS info (device loop4): clearing compat-ro feature flag for FREE_SPACE_TREE_VALID (0x2) BTRFS info (device loop4): balance: start -susage=34359738372,drange=7..526332,limit=0..6 ------------[ cut here ]------------ BTRFS: Transaction aborted (error -28) WARNING: CPU: 0 PID: 19020 at fs/btrfs/block-group.c:2753 btrfs_create_pending_block_groups+0xe10/0xf20 fs/btrfs/block-group.c:2753 Modules linked in: CPU: 0 PID: 19020 Comm: syz.4.3424 Not tainted 6.6.95-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 RIP: 0010:btrfs_create_pending_block_groups+0xe10/0xf20 fs/btrfs/block-group.c:2753 Code: ba a7 6a 8c ba c8 0a 00 00 44 89 e1 e8 d9 e2 c4 06 e9 19 f6 ff ff e8 9f 3d ed fd 48 c7 c7 80 fd ee 8a 44 89 e6 e8 00 a2 b7 fd <0f> 0b e9 79 fe ff ff e8 84 3d ed fd 48 c7 c7 80 fd ee 8a 44 89 ee RSP: 0018:ffffc9000452f740 EFLAGS: 00010246 RAX: 7f1df9227b908d00 RBX: 0000000000000000 RCX: 0000000000080000 RDX: ffffc9000c729000 RSI: 000000000001f941 RDI: 000000000001f942 RBP: ffffc9000452f988 R08: ffffc9000452f347 R09: 1ffff920008a5e68 R10: dffffc0000000000 R11: fffff520008a5e69 R12: 00000000ffffffe4 R13: ffff88802f42b850 R14: ffff88802f42b858 R15: ffff88806a610001 FS: 00007f9e9b2b66c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f3d3127af98 CR3: 0000000069555000 CR4: 00000000003506f0 Call Trace: __btrfs_end_transaction+0x140/0x630 fs/btrfs/transaction.c:1023 btrfs_inc_block_group_ro+0x596/0x630 fs/btrfs/block-group.c:3014 btrfs_relocate_block_group+0x452/0xd70 fs/btrfs/relocation.c:4013 btrfs_relocate_chunk+0x12a/0x3b0 fs/btrfs/volumes.c:3315 __btrfs_balance+0x187b/0x21c0 fs/btrfs/volumes.c:4061 btrfs_balance+0xcb1/0x11c0 fs/btrfs/volumes.c:4438 btrfs_ioctl_balance+0x4a2/0x730 fs/btrfs/ioctl.c:3647 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:871 [inline] __se_sys_ioctl+0xfd/0x170 fs/ioctl.c:857 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f9e9a38e929 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:00007f9e9b2b6038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f9e9a5b5fa0 RCX: 00007f9e9a38e929 RDX: 0000200000000440 RSI: 00000000c4009420 RDI: 0000000000000003 RBP: 00007f9e9a410b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f9e9a5b5fa0 R15: 00007ffccea0c448