KVM: TDX: INIT_MEM_REGION fixes
Status from this message: Applied to kvm-x86 vmx, thanks!
Get series with b4
b4 am [email protected]Versions newest first
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 files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | KVM: TDX: Reject INIT_MEM_REGION if number of bytes would overflow a u64arch/ | +7 | 2 replies | |
| 2/2 | KVM: TDX: Fix a benign off-by-one bug on the end GPA for INIT_MEM_REGIONarch/ | +3 | 2 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.
| Patch | Yan Zhao | Binbin Wu | Ackerley Tng |
|---|---|---|---|
| Series | R-b | ||
| 1/2 | R-b T-b | R-b | |
| 2/2 | R-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.
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