Skip to content

KVM: arm64: Avoid NULL dereference in vgic-v2 device attr accessors

Oliver Upton kvm kvmarm stable 1 version Applied

Status from this message: Applied to kvmarm/fixes, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2KVM: arm64: vgic-v2: Check for non-NULL vCPU in vgic_v2_parse_attr()arch/arm64/kvm/vgic/vgic-kvm-device.c+4 -40 replies
2/2KVM: selftests: Add test for uaccesses to non-existent vgic-v2 CPUIFtools/testing/selftests/kvm/aarch64/vgic_init.c+49 -00 replies

Reviews trailers per patch

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

PatchAlexander PotapenkoMarc Zyngier
SeriesR-b
1/2T-b R-b
2/2

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/2] KVM: arm64: Avoid NULL dereference in vgic-v2 device attr accessors

Alex reports that it is possible to trigger a NULL dereference via the vgic-v2 device attribute accessors, stemming from a lack of sanitization of user input...

Here's a fix + regression test for the bug. Obviously, I intend to take these as a fix ASAP.

Oliver Upton (2):
KVM: arm64: vgic-v2: Check for non-NULL vCPU in vgic_v2_parse_attr()
KVM: selftests: Add test for uaccesses to non-existent vgic-v2 CPUIF

 arch/arm64/kvm/vgic/vgic-kvm-device.c         |  8 +--
 .../testing/selftests/kvm/aarch64/vgic_init.c | 49 +++++++++++++++++++
 2 files changed, 53 insertions(+), 4 deletions(-)

base-commit: fec50db7033ea478773b159e0e2efb135270e3b7

Signature · 1 line
2.44.0.769.g3c40516874-goog