[PATCH] KVM: arm64: Fix nVHE/pKVM hyp tracing error on invalid desc

Marc Zyngier maz at kernel.org
Fri May 15 03:21:15 PDT 2026


On Thu, 14 May 2026 17:26:24 +0100,
Vincent Donnefort <vdonnefort at google.com> wrote:
> 
> pKVM must validate the host-provided tracing buffer descriptor.
> However, if an error is found, the hypervisor would just return 0 to the
> host. Fix the return value on validation failure.
> 
> While at it, rename the function to hyp_trace_desc_is_valid() and skip
> validation for the nVHE mode as we trust host-provided data in that
> case.
> 
> Signed-off-by: Vincent Donnefort <vdonnefort at google.com>

Fixes: tag? Should it be considered as a Cc: to stable?

	M.

-- 
Without deviation from the norm, progress is not possible.



More information about the linux-arm-kernel mailing list