Skip to content

KVM: TDX: INIT_MEM_REGION fixes

Sean Christopherson kvm lkml 1 version Applied

Status from this message: Applied to kvm-x86 vmx, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 7 repliesApplied

Changes in v2 from the cover letter

- 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.

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2KVM: TDX: Reject INIT_MEM_REGION if number of bytes would overflow a u64arch/x86/kvm/vmx/tdx.c+7 -32 replies
2/2KVM: TDX: Fix a benign off-by-one bug on the end GPA for INIT_MEM_REGIONarch/x86/kvm/vmx/tdx.c+3 -32 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchYan ZhaoBinbin WuAckerley Tng
SeriesR-b
1/2R-b T-b R-b
2/2R-b T-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [PATCH v2 0/2] KVM: TDX: INIT_MEM_REGION fixes

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.

v1: https://lore.kernel.org/all/[email protected]

Haotian Jiang (1):
KVM: TDX: Reject INIT_MEM_REGION if number of bytes would overflow a

    u64

Sean Christopherson (1):
KVM: TDX: Fix a benign off-by-one bug on the end GPA for
INIT_MEM_REGION

 arch/x86/kvm/vmx/tdx.c | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

base-commit: a806d364ef288a6443a1337820ea8410a7ccc6b3

Signature · 1 line
2.55.0.679.g6767b8d81c-goog