[PATCH 6.11 424/817] riscv: kvm: Fix out-of-bounds array access