[PATCH v3] KVM: arm64: Check range args for pKVM mem transitions
Marc Zyngier
maz at kernel.org
Thu Oct 30 09:23:32 PDT 2025
On Thu, 16 Oct 2025 17:45:41 +0100, Vincent Donnefort wrote:
> There's currently no verification for host issued ranges in most of the
> pKVM memory transitions. The end boundary might therefore be subject to
> overflow and later checks could be evaded.
>
> Close this loophole with an additional pfn_range_is_valid() check on a
> per public function basis. Once this check has passed, it is safe to
> convert pfn and nr_pages into a phys_addr_t and a size.
>
> [...]
Applied to fixes, thanks!
[1/1] KVM: arm64: Check range args for pKVM mem transitions
commit: f71f7afd0a0cd3f044cd2f8aba71a1a7229df762
Cheers,
M.
--
Without deviation from the norm, progress is not possible.
More information about the linux-arm-kernel
mailing list