[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <175873636645.2146220.17008570618264199146.b4-ty@google.com>
Date: Wed, 24 Sep 2025 11:07:41 -0700
From: Sean Christopherson <seanjc@...gle.com>
To: Sean Christopherson <seanjc@...gle.com>, Paolo Bonzini <pbonzini@...hat.com>
Cc: kvm@...r.kernel.org, linux-kernel@...r.kernel.org,
Thomas Lendacky <thomas.lendacky@....com>, Michael Roth <michael.roth@....com>
Subject: Re: [PATCH v2] KVM: SEV: Reject non-positive effective lengths during LAUNCH_UPDATE
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
Powered by blists - more mailing lists