[PATCH] KVM: arm64: Properly return allocated EL2 VA from hyp_alloc_private_va_range()
Philippe Mathieu-Daudé
philmd at linaro.org
Mon Aug 28 10:00:54 PDT 2023
Hi Marc,
On 28/8/23 17:31, Marc Zyngier wrote:
> Marek reports that his RPi4 spits out a warning at boot time,
> right at the point where the GICv2 virtual CPU interface gets
> mapped.
>
> Upon investigation, it seems that we never return the allocated
> VA and use whatever was on the stack at this point. Yes, this
> is good stuff, and Marek was pretty lucky that he ended-up with
> a VA that intersected with something that was already mapped.
>
> On my setup, this random value is plausible enough for the mapping
> to take place. Who knows what happens...
>
> Cc: Vincent Donnefort <vdonnefort at google.com>
> Fixes: f156a7d13fc3 ("KVM: arm64: Remove size-order align in the nVHE hyp private VA range")
I don't see your kvmarm-6.6 merged by Paolo, is it too late to squash
and send a new PR? Anyhow:
Reviewed-by: Philippe Mathieu-Daudé <philmd at linaro.org>
Regards,
Phil.
> Reported-by: Marek Szyprowski <m.szyprowski at samsung.com>
> Tested-by: Marek Szyprowski <m.szyprowski at samsung.com>
> Signed-off-by: Marc Zyngier <maz at kernel.org>
> Link: https://lore.kernel.org/r/79b0ad6e-0c2a-f777-d504-e40e8123d81d@samsung.com
> ---
> arch/arm64/kvm/mmu.c | 3 +++
> 1 file changed, 3 insertions(+)
More information about the linux-arm-kernel
mailing list