BTRFS info (device loop1): relocating block group 1048576 flags system ------------[ cut here ]------------ WARNING: CPU: 1 PID: 22213 at fs/btrfs/volumes.c:3210 btrfs_remove_chunk+0x1575/0x1aa0 fs/btrfs/volumes.c:3210 Modules linked in: CPU: 0 PID: 22213 Comm: syz-executor.1 Not tainted 5.15.142-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023 RIP: 0010:btrfs_remove_chunk+0x1575/0x1aa0 fs/btrfs/volumes.c:3210 Code: ff e8 4f c6 16 fe 4c 8b 24 24 0f 1f 44 00 00 e8 41 c6 16 fe eb 16 e8 3a c6 16 fe 48 c7 c7 c0 4b ca 8a 44 89 f6 e8 3b 7d e2 fd <0f> 0b 4c 89 e7 48 c7 c6 20 4f ca 8a ba 8a 0c 00 00 e9 90 fa ff ff RSP: 0018:ffffc9000501f920 EFLAGS: 00010246 RAX: 3b81396527b9a100 RBX: 0000000000000000 RCX: 0000000000040000 RDX: ffffc9000482a000 RSI: 0000000000031412 RDI: 0000000000031413 RBP: ffffc9000501fad8 R08: ffffffff81665bbc R09: ffffed1017364f24 R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888075be3790 R13: dffffc0000000000 R14: ffffffffffffffe4 R15: ffff88801f43c001 FS: 00007f481f3ff6c0(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f88257f3000 CR3: 000000007d995000 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:3327 __btrfs_balance+0x185e/0x27c0 fs/btrfs/volumes.c:4019 btrfs_balance+0xd40/0x14a0 fs/btrfs/volumes.c:4409 btrfs_ioctl_balance+0x643/0x7d0 fs/btrfs/ioctl.c:4136 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+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f4820e7dba9 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:00007f481f3ff0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f4820f9cf80 RCX: 00007f4820e7dba9 RDX: 0000000020000d40 RSI: 00000000c4009420 RDI: 0000000000000006 RBP: 00007f4820ec947a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f4820f9cf80 R15: 00007fffcfb6ac68