WARNING: CPU: 1 PID: 7574 at fs/btrfs/volumes.c:3291 btrfs_remove_chunk+0x1a00/0x1b00 fs/btrfs/volumes.c:3291 Modules linked in: CPU: 1 UID: 0 PID: 7574 Comm: syz.4.547 Not tainted 6.12.0-rc3-syzkaller-00183-g6efbea77b390 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:btrfs_remove_chunk+0x1a00/0x1b00 fs/btrfs/volumes.c:3291 Code: 18 4d fe e9 34 f5 ff ff 4c 89 f7 e8 da 17 4d fe e9 49 fd ff ff e8 20 7c ec fd 90 48 c7 c7 00 1b b9 8b 89 de e8 d1 69 ad fd 90 <0f> 0b 90 90 e9 42 fd ff ff 48 8b 7c 24 50 be 04 00 00 00 e8 f8 18 RSP: 0018:ffffc90009127808 EFLAGS: 00010282 RAX: 0000000000000000 RBX: ffffffffffffffe4 RCX: ffffc900107d0000 RDX: 0000000000040000 RSI: ffffffff814e71b6 RDI: 0000000000000001 RBP: 0000000000000001 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000 R13: ffff8880639292c0 R14: ffff888079ac92b0 R15: ffff888079ac92ac FS: 00007f08017d46c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ff73ad89ffe CR3: 0000000067a94000 CR4: 0000000000350ef0 Call Trace: btrfs_relocate_chunk+0x2ba/0x450 fs/btrfs/volumes.c:3421 __btrfs_balance fs/btrfs/volumes.c:4160 [inline] btrfs_balance+0x20f4/0x3ef0 fs/btrfs/volumes.c:4537 btrfs_ioctl_balance fs/btrfs/ioctl.c:3673 [inline] btrfs_ioctl+0x13d5/0x5c90 fs/btrfs/ioctl.c:4783 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:907 [inline] __se_sys_ioctl fs/ioctl.c:893 [inline] __x64_sys_ioctl+0x192/0x220 fs/ioctl.c:893 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f080097dff9 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:00007f08017d4038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f0800b35f80 RCX: 00007f080097dff9 RDX: 0000000020000180 RSI: 00000000c4009420 RDI: 0000000000000005 RBP: 00007f08009f0296 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f0800b35f80 R15: 00007ffc2ee1f028