Skip to content

KVM: Fix for a mostly benign gpc WARN

Sean Christopherson kvm lkml 1 version Applied

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 11 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3KVM: Add helpers to consolidate gfn_to_pfn_cache's page split checkvirt/kvm/pfncache.c+19 -82 replies
2/3KVM: Check validity of offset+length of gfn_to_pfn_cache prior to activationvirt/kvm/pfncache.c+9 -72 replies
3/3KVM: Explicitly disallow activatating a gfn_to_pfn_cache with INVALID_GPAvirt/kvm/pfncache.c+7 -02 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchDavid WoodhousePaul Durrant
1/3R-b R-b
2/3R-b R-b
3/3R-b R-b

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: Fix for a mostly benign gpc WARN

Fix a bug found by syzkaller, thanks to a new WARN sanity check, where KVM marks a gfn_to_pfn_cache as active without actually setting gpc->gpa or any other metadata. On top, harden against _directly_ setting gpc->gpa to KVM's magic INVALID_GPA, which would also fail the sanity check.

Sean Christopherson (3):
KVM: Add helpers to consolidate gfn_to_pfn_cache's page split check
KVM: Check validity of offset+length of gfn_to_pfn_cache prior to
activation
KVM: Explicitly disallow activatating a gfn_to_pfn_cache with
INVALID_GPA

Sean Christopherson (3):
KVM: Add helpers to consolidate gfn_to_pfn_cache's page split check
KVM: Check validity of offset+length of gfn_to_pfn_cache prior to
activation
KVM: Explicitly disallow activatating a gfn_to_pfn_cache with
INVALID_GPA

 virt/kvm/pfncache.c | 48 ++++++++++++++++++++++++++++++++-------------
 1 file changed, 34 insertions(+), 14 deletions(-)

base-commit: 964d0c614c7f71917305a5afdca9178fe8231434

Signature · 1 line
2.44.0.291.gc1ea87d7ee-goog