Skip to content

KVM: arm64: nv: Fix a couple NULL dereferences in kvm_inject_nested()

Dan Carpenter kvmarm linux-arm-kernel sashiko-reviews 2 versions – Applied

Status from this message: Applied to fixes, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 4 repliesApplied
  2. v11 patch 3 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2KVM: arm64: Load the vcpu in KVM_SET_VCPU_EVENTSarch/arm64/kvm/arm.c+6 -23 replies
2/2KVM: arm64: nv: Fix NULL dereference in kvm_pmu_nested_transition()arch/arm64/kvm/pmu-emul.c+3 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] KVM: arm64: nv: Fix a couple NULL dereferences in kvm_inject_nested()

This is part of our formal verification work at Pereq. It's a couple of NULL dereference bugs that affect nested virt.

The first version added checks for if the vcpu was loaded but the new version loads it unconditionally instead. Also add a fix for the related bug that Sashiko found.

Dan Carpenter (2):
KVM: arm64: Load the vcpu in KVM_SET_VCPU_EVENTS
KVM: arm64: nv: Fix NULL dereference in kvm_pmu_nested_transition()

 arch/arm64/kvm/arm.c      | 8 ++++++--
 arch/arm64/kvm/pmu-emul.c | 3 +++
 2 files changed, 9 insertions(+), 2 deletions(-)
Signature · 1 line
2.53.0