BTRFS info (device loop4): relocating block group 6881280 flags data|metadata ------------[ cut here ]------------ WARNING: CPU: 0 PID: 9891 at fs/btrfs/relocation.c:4122 btrfs_relocate_block_group+0xc23/0xcb0 Modules linked in: CPU: 1 PID: 9891 Comm: syz-executor.4 Not tainted 5.15.175-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:btrfs_relocate_block_group+0xc23/0xcb0 fs/btrfs/relocation.c:4122 Code: bc 83 ff ff ff e9 5d fe ff ff e8 e8 5b 01 fe 4c 8b 6c 24 28 e9 f1 fd ff ff e8 d9 5b 01 fe 0f 0b e9 16 fd ff ff e8 cd 5b 01 fe <0f> 0b e9 65 fd ff ff e8 c1 5b 01 fe 0f 0b e9 b4 fd ff ff 44 89 f9 RSP: 0018:ffffc900044ffa48 EFLAGS: 00010293 RAX: ffffffff837f2913 RBX: 1ffff1100f41bc00 RCX: ffff88802a719dc0 RDX: 0000000000000000 RSI: 000000000018e000 RDI: 0000000000000000 RBP: 000000000018e000 R08: ffffffff837f2671 R09: fffff5200089ff39 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000 R13: ffff88807a0de000 R14: ffff888061d54010 R15: 1ffff1100f41bccd FS: 00007f4fdb1406c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f198e973000 CR3: 000000001faad000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: btrfs_relocate_chunk+0xac/0x270 fs/btrfs/volumes.c:3332 __btrfs_balance+0x185e/0x27c0 fs/btrfs/volumes.c:4073 btrfs_balance+0xd40/0x14a0 fs/btrfs/volumes.c:4463 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:0x7f4fe31dfb29 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:00007f4fdb1400c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f4fe32ff050 RCX: 00007f4fe31dfb29 RDX: 00000000200003c0 RSI: 00000000c4009420 RDI: 0000000000000005 RBP: 00007f4fe322b47a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007f4fe32ff050 R15: 00007fff5d741898