Re: [PATCH v2] KVM: SEV: Reject non-positive effective lengths during LAUNCH_UPDATE

From: Sean Christopherson
Date: Wed Sep 24 2025 - 14:44:55 EST


On Fri, 19 Sep 2025 14:16:49 -0700, Sean Christopherson wrote:
> Check for an invalid length during LAUNCH_UPDATE at the start of
> snp_launch_update() instead of subtly relying on kvm_gmem_populate() to
> detect the bad state. Code that directly handles userspace input
> absolutely should sanitize those inputs; failure to do so is asking for
> bugs where KVM consumes an invalid "npages".
>
> Keep the check in gmem, but wrap it in a WARN to flag any bad usage by
> the caller.
>
> [...]

Applied to kvm-x86 svm, thanks!

[1/1] KVM: SEV: Reject non-positive effective lengths during LAUNCH_UPDATE
https://github.com/kvm-x86/linux/commit/5b66e335ead6

--
https://github.com/kvm-x86/linux/tree/next