BTRFS info (device loop1): clearing free space tree BTRFS info (device loop1): clearing compat-ro feature flag for FREE_SPACE_TREE (0x1) BTRFS info (device loop1): clearing compat-ro feature flag for FREE_SPACE_TREE_VALID (0x2) BTRFS info (device loop1): balance: start -susage=34359738372,drange=7..526336,limit=0..6 ------------[ cut here ]------------ WARNING: CPU: 1 PID: 4422 at fs/btrfs/block-group.c:2437 btrfs_create_pending_block_groups+0xc1c/0xe50 fs/btrfs/block-group.c:2437 Modules linked in: CPU: 1 PID: 4422 Comm: syz.1.54 Not tainted 5.15.183-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025 RIP: 0010:btrfs_create_pending_block_groups+0xc1c/0xe50 fs/btrfs/block-group.c:2437 Code: 53 19 fe eb 27 e8 04 53 19 fe 0f 1f 44 00 00 e8 fa 52 19 fe eb 4a e8 f3 52 19 fe 48 c7 c7 40 d5 4c 8a 44 89 fe e8 94 e9 37 06 <0f> 0b 48 8b 7c 24 20 48 c7 c6 c0 d5 4c 8a ba 85 09 00 00 44 89 f9 RSP: 0018:ffffc900045cf780 EFLAGS: 00010246 RAX: 5a0b9cb2b7c31e00 RBX: 1ffff1100ea1b70b RCX: 0000000000080000 RDX: ffffc90004124000 RSI: 000000000004126e RDI: 000000000004126f RBP: ffffc900045cf990 R08: dffffc0000000000 R09: fffff520008b9e55 R10: fffff520008b9e55 R11: 1ffff920008b9e54 R12: ffff8880750db9b0 R13: ffff8880750db850 R14: ffff8880750db858 R15: 00000000ffffffe4 FS: 00007f78d762c6c0(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f9231090e9c CR3: 000000001ee1e000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __btrfs_end_transaction+0x154/0x650 fs/btrfs/transaction.c:1016 btrfs_inc_block_group_ro+0x59d/0x600 fs/btrfs/block-group.c:2660 btrfs_relocate_block_group+0x418/0xd00 fs/btrfs/relocation.c:4041 btrfs_relocate_chunk+0xaa/0x290 fs/btrfs/volumes.c:3332 __btrfs_balance+0x1641/0x2250 fs/btrfs/volumes.c:4073 btrfs_balance+0xd89/0x1520 fs/btrfs/volumes.c:4463 btrfs_ioctl_balance+0x674/0x810 fs/btrfs/ioctl.c:4152 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:874 [inline] __se_sys_ioctl+0xfa/0x170 fs/ioctl.c:860 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f78d97c4969 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:00007f78d762c038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f78d99ebfa0 RCX: 00007f78d97c4969 RDX: 0000200000000440 RSI: 00000000c4009420 RDI: 0000000000000003 RBP: 00007f78d9846ab1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f78d99ebfa0 R15: 00007fff2f635f68