assertion failed: 0, in fs/btrfs/relocation.c:2011 ------------[ cut here ]------------ kernel BUG at fs/btrfs/relocation.c:2011! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 10531 Comm: syz-executor.5 Not tainted 6.4.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 RIP: 0010:merge_reloc_roots+0x8bd/0x8f0 fs/btrfs/relocation.c:2011 Code: 5b 41 5c 41 5d 41 5e 41 5f 5d c3 48 c7 c7 40 33 2b 8a 48 c7 c6 a0 3e 2b 8a 48 c7 c2 c0 33 2b 8a b9 db 07 00 00 e8 f3 5f 60 06 <0f> 0b 48 c7 c7 40 33 2b 8a 48 c7 c6 a0 3e 2b 8a 48 c7 c2 c0 33 2b RSP: 0018:ffffc9000afff740 EFLAGS: 00010246 RAX: 0000000000000032 RBX: ffff888076e2e030 RCX: cec1c179c11c8a00 RDX: 0000000000000001 RSI: ffffffff8a385500 RDI: 0000000000000001 RBP: ffffc9000afff850 R08: dffffc0000000000 R09: fffff520015ffea5 R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888077a74558 R13: ffff888077a74000 R14: ffff888076e2e000 R15: dffffc0000000000 FS: 00007f83dfccf700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f284208d000 CR3: 000000002a921000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: relocate_block_group+0x8bd/0xae0 fs/btrfs/relocation.c:3751 btrfs_relocate_block_group+0x673/0xb80 fs/btrfs/relocation.c:4087 btrfs_relocate_chunk+0xe3/0x2f0 fs/btrfs/volumes.c:3286 __btrfs_balance+0x166f/0x21a0 fs/btrfs/volumes.c:4021 btrfs_balance+0x96c/0xd50 fs/btrfs/volumes.c:4405 btrfs_ioctl_balance+0x460/0x630 fs/btrfs/ioctl.c:3604 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl+0xa7/0xf0 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f83dee8c389 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f83dfccf168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f83defabf80 RCX: 00007f83dee8c389 RDX: 00000000200003c0 RSI: 00000000c4009420 RDI: 0000000000000006 RBP: 00007f83deed7493 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffde171cb8f R14: 00007f83dfccf300 R15: 0000000000022000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:merge_reloc_roots+0x8bd/0x8f0 fs/btrfs/relocation.c:2011 Code: 5b 41 5c 41 5d 41 5e 41 5f 5d c3 48 c7 c7 40 33 2b 8a 48 c7 c6 a0 3e 2b 8a 48 c7 c2 c0 33 2b 8a b9 db 07 00 00 e8 f3 5f 60 06 <0f> 0b 48 c7 c7 40 33 2b 8a 48 c7 c6 a0 3e 2b 8a 48 c7 c2 c0 33 2b RSP: 0018:ffffc9000afff740 EFLAGS: 00010246 RAX: 0000000000000032 RBX: ffff888076e2e030 RCX: cec1c179c11c8a00 RDX: 0000000000000001 RSI: ffffffff8a385500 RDI: 0000000000000001 RBP: ffffc9000afff850 R08: dffffc0000000000 R09: fffff520015ffea5 R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888077a74558 R13: ffff888077a74000 R14: ffff888076e2e000 R15: dffffc0000000000 FS: 00007f83dfccf700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f766a15f000 CR3: 000000002a921000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400