BTRFS info (device loop0): clearing compat-ro feature flag for FREE_SPACE_TREE_VALID (0x2) BTRFS info (device loop0): balance: start -s BTRFS info (device loop0): relocating block group 1048576 flags system ------------[ cut here ]------------ WARNING: CPU: 0 PID: 5489 at fs/btrfs/volumes.c:3217 btrfs_remove_chunk+0x1575/0x1aa0 fs/btrfs/volumes.c:3217 Modules linked in: CPU: 0 PID: 5489 Comm: syz-executor.0 Not tainted 5.15.161-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 RIP: 0010:btrfs_remove_chunk+0x1575/0x1aa0 fs/btrfs/volumes.c:3217 Code: ff e8 bf 59 15 fe 4c 8b 24 24 0f 1f 44 00 00 e8 b1 59 15 fe eb 16 e8 aa 59 15 fe 48 c7 c7 c0 c2 ca 8a 44 89 f6 e8 fb 01 e1 fd <0f> 0b 4c 89 e7 48 c7 c6 20 c6 ca 8a ba 91 0c 00 00 e9 90 fa ff ff RSP: 0018:ffffc90002f17920 EFLAGS: 00010246 RAX: 6fca0164fac9f200 RBX: 0000000000000000 RCX: 0000000000040000 RDX: ffffc9000368a000 RSI: 00000000000364c0 RDI: 00000000000364c1 RBP: ffffc90002f17ad8 R08: ffffffff8166835c R09: fffff520005e2e65 R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888071475f20 R13: dffffc0000000000 R14: ffffffffffffffe4 R15: ffff88805e8e4001 FS: 00007f14f356f6c0(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020002000 CR3: 00000000622d7000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: btrfs_relocate_chunk+0x1ce/0x270 fs/btrfs/volumes.c:3334 __btrfs_balance+0x185e/0x27c0 fs/btrfs/volumes.c:4037 btrfs_balance+0xd40/0x14a0 fs/btrfs/volumes.c:4427 btrfs_ioctl_balance+0x643/0x7d0 fs/btrfs/ioctl.c:4152 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:874 [inline] __se_sys_ioctl+0xf1/0x160 fs/ioctl.c:860 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f14f49f5f29 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f14f356f0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f14f4b2cf80 RCX: 00007f14f49f5f29 RDX: 0000000020000180 RSI: 00000000c4009420 RDI: 0000000000000004 RBP: 00007f14f4a65074 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000