Skip to content

KVM: x86: guest.MAXPHYADDR fix and related cleanup

Sean Christopherson kvm lkml 1 version Applied

Status from this message: Queued this one only, for now. Thanks,

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 4 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3Revert "KVM: x86: mmu: Add guest physical address check in translate_gpa()"arch/x86/kvm/mmu/mmu.c+0 -63 replies
2/3KVM: x86: Subsume nested GPA read helper into load_pdptrs()arch/x86/include/asm/kvm_host.h arch/x86/kvm/x86.c+18 -410 replies
3/3KVM: x86: Simplify retrieving the page offset when loading PDTPRsarch/x86/kvm/x86.c+2 -20 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchVitaly Kuznetsov
1/3R-b
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] KVM: x86: guest.MAXPHYADDR fix and related cleanup

Fix a bug exposed by syzkaller where running with guest.MAXPHYADDR < 32 leads KVM injecting a garbage exception due to mishandling an illegal GPA check when "translating" a non-nested GPA.

Clean up tangentially related code in load_pdptrs() to discourage reading guest memory using a potentially-nested GPA.

Sean Christopherson (3):
Revert "KVM: x86: mmu: Add guest physical address check in
translate_gpa()"
KVM: x86: Subsume nested GPA read helper into load_pdptrs()
KVM: x86: Simplify retrieving the page offset when loading PDTPRs

 arch/x86/include/asm/kvm_host.h |  3 --
 arch/x86/kvm/mmu/mmu.c          |  6 ----
 arch/x86/kvm/x86.c              | 56 +++++++++++----------------------
 3 files changed, 18 insertions(+), 47 deletions(-)
Signature · 1 line
2.33.0.259.gc128427fd7-goog