BTRFS info (device loop1): relocating block group 1048576 flags system ------------[ cut here ]------------ WARNING: CPU: 0 PID: 4480 at fs/btrfs/volumes.c:3227 btrfs_remove_chunk+0x1654/0x1ad0 fs/btrfs/volumes.c:3227 Modules linked in: CPU: 0 PID: 4480 Comm: syz.1.53 Not tainted 6.1.119-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:btrfs_remove_chunk+0x1654/0x1ad0 fs/btrfs/volumes.c:3227 Code: 48 c7 c7 c0 a2 4f 8b 44 89 f6 e8 d7 b8 b3 fd 0f 0b e9 10 fe ff ff e8 bb 9e eb fd 48 c7 c7 c0 a2 4f 8b 44 89 f6 e8 bc b8 b3 fd <0f> 0b e9 1d fe ff ff e8 a0 9e eb fd 48 c7 c7 c0 a2 4f 8b 44 89 f6 RSP: 0018:ffffc90004a7f900 EFLAGS: 00010246 RAX: 3e1ebe01e7deab00 RBX: ffff88807dde0001 RCX: 0000000000080000 RDX: ffffc9000c7ca000 RSI: 000000000007ffff RDI: 0000000000080000 RBP: ffffc90004a7fab0 R08: ffffffff8152b88e R09: ffffed10171c4f1c R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000100000 R13: dffffc0000000000 R14: ffffffffffffffe4 R15: 0000000000000000 FS: 00007ff10ebec6c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f85c7fded58 CR3: 0000000057a43000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: btrfs_relocate_chunk+0x296/0x3b0 fs/btrfs/volumes.c:3357 __btrfs_balance+0x1c16/0x27d0 fs/btrfs/volumes.c:4060 btrfs_balance+0xbd4/0x10c0 fs/btrfs/volumes.c:4436 btrfs_ioctl_balance+0x493/0x7c0 fs/btrfs/ioctl.c:4511 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl+0xf1/0x160 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7ff10dd80809 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:00007ff10ebec058 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007ff10df45fa0 RCX: 00007ff10dd80809 RDX: 0000000020000780 RSI: 00000000c4009420 RDI: 0000000000000004 RBP: 00007ff10ddf393e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007ff10df45fa0 R15: 00007ffcdfefd438