WARNING: CPU: 1 PID: 12318 at fs/btrfs/volumes.c:3151 btrfs_remove_chunk+0x171d/0x19b0 fs/btrfs/volumes.c:3151 Modules linked in: CPU: 1 PID: 12318 Comm: syz-executor.5 Not tainted 6.6.0-syzkaller-16201-gb57b17e88bf5 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 RIP: 0010:btrfs_remove_chunk+0x171d/0x19b0 fs/btrfs/volumes.c:3151 Code: 48 c7 c7 20 e4 ab 8b 44 89 e6 e8 0e 84 b3 fd 0f 0b e9 2d fe ff ff e8 62 cc ed fd 48 c7 c7 20 e4 ab 8b 44 89 e6 e8 f3 83 b3 fd <0f> 0b e9 3a fe ff ff e8 47 cc ed fd 48 c7 c7 20 e4 ab 8b 44 89 e6 RSP: 0018:ffffc9000369f900 EFLAGS: 00010246 RAX: 8af29e313587b100 RBX: ffff88805b5c4001 RCX: 0000000000040000 RDX: ffffc9000b5cd000 RSI: 000000000003b846 RDI: 000000000003b847 RBP: ffffc9000369fab0 R08: ffffffff81547c82 R09: 1ffff920006d3e74 R10: dffffc0000000000 R11: fffff520006d3e75 R12: ffffffffffffffe4 R13: dffffc0000000000 R14: 0000000000000000 R15: 1ffff11003eceb10 FS: 00007f278fabe6c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f20facc56be CR3: 000000007a592000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: btrfs_relocate_chunk+0x292/0x3b0 fs/btrfs/volumes.c:3281 __btrfs_balance+0x1b06/0x2690 fs/btrfs/volumes.c:3971 btrfs_balance+0xbd8/0x10d0 fs/btrfs/volumes.c:4348 btrfs_ioctl_balance+0x496/0x7c0 fs/btrfs/ioctl.c:3614 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:871 [inline] __se_sys_ioctl+0xf8/0x170 fs/ioctl.c:857 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x44/0x110 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7f278ec7cae9 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:00007f278fabe0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f278ed9bf80 RCX: 00007f278ec7cae9 RDX: 00000000200003c0 RSI: 00000000c4009420 RDI: 0000000000000004 RBP: 00007f278ecc847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f278ed9bf80 R15: 00007ffd14a8a3e8