[PATCH v1] KVM: arm64: Fix benign bug with incorrect use of VA_BITS.
Marc Zyngier
maz at kernel.org
Mon Dec 5 06:42:18 PST 2022
On Mon, 5 Dec 2022 11:40:31 +0000, Ryan Roberts wrote:
> get_user_mapping_size() uses kvm's pgtable library to walk a user space
> page table created by the kernel, and in doing so, fakes up the metadata
> that the library needs, including ia_bits, which defines the size of the
> input address.
>
> For the case where the kernel is compiled for 52 VA bits but runs on HW
> that does not support LVA, it will fall back to 48 VA bits at runtime.
> Therefore we must use vabits_actual rather than VA_BITS to get the true
> address size.
>
> [...]
Applied to next, thanks!
[1/1] KVM: arm64: Fix benign bug with incorrect use of VA_BITS.
commit: 219072c09abde0f1d0a6ce091be375e8eb7d08f0
Cheers,
M.
--
Without deviation from the norm, progress is not possible.
More information about the linux-arm-kernel
mailing list