]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm64: Rely on index_to_param() for size checks on userspace access
authorMarc Zyngier <maz@kernel.org>
Mon, 4 Jul 2022 16:01:50 +0000 (17:01 +0100)
committerMarc Zyngier <maz@kernel.org>
Sun, 17 Jul 2022 10:55:33 +0000 (11:55 +0100)
commit85f07bdd721ec661f3a1c3b69b46e101c6175c3f
tree537a4673270b63605fd31c89afa0d6d89b9429b6
parent5fbce39aed22e4373c277c1acaad4e66c0f50d3b
KVM: arm64: Rely on index_to_param() for size checks on userspace access

index_to_param() already checks that we use 64bit accesses for all
registers accessed from userspace.

However, we have extra checks in other places (such as index_to_params),
which is pretty confusing. Get rid off these redundant checks.

Reviewed-by: Reiji Watanabe <reijiw@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/sys_regs.c