Re: [PATCH v2 0/2] KVM: TDX: INIT_MEM_REGION fixes
From: Sean Christopherson
Date: Mon Sep 21 2026 - 10:21:08 EST
On Thu, 06 Aug 2026 10:06:00 -0700, Sean Christopherson wrote:
> I completely lost track of this, meant to post these patches weeks ago.
> Compile tested only.
>
> v2:
> - Fix an off-by-one bug.
> - Use gpa_t instead of raw u64.
> - Tweak the order of checks to bundle similar checks together, and to perform
> the super basic checks (alignment, size, etc.) first.
>
> [...]
Applied to kvm-x86 vmx, thanks!
[1/2] KVM: TDX: Reject INIT_MEM_REGION if number of bytes would overflow a u64
https://github.com/kvm-x86/linux/commit/7c9a2e3a4564
[2/2] KVM: TDX: Fix a benign off-by-one bug on the end GPA for INIT_MEM_REGION
https://github.com/kvm-x86/linux/commit/872aae89167c
--
https://github.com/kvm-x86/linux/tree/next