[PATCH v2 04/20] KVM: arm64: Rely on index_to_param() for size checks on userspace access

Reiji Watanabe reijiw at google.com
Thu Jul 14 23:59:28 PDT 2022


On Thu, Jul 14, 2022 at 8:20 AM Marc Zyngier <maz at kernel.org> wrote:
>
> index_to_param() already checks that we use 64bit accesses for all
> registers accessed from userspace.
>
> However, we have extra checks in other places, which is pretty
> confusing. Get rid on these checks.
>
> Signed-off-by: Marc Zyngier <maz at kernel.org>

Reviewed-by: Reiji Watanabe <reijiw at google.com>



More information about the linux-arm-kernel mailing list