aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorGravatar Oliver Upton <oliver.upton@linux.dev> 2024-04-24 17:39:59 +0000
committerGravatar Oliver Upton <oliver.upton@linux.dev> 2024-04-24 19:09:36 +0000
commit160933e330f4c5a13931d725a4d952a4b9aefa71 (patch)
tree0cf6432f9b76a46fea7f4e8e8a7de54c29668ccd /arch
parentKVM: arm64: vgic-v2: Check for non-NULL vCPU in vgic_v2_parse_attr() (diff)
downloadlinux-160933e330f4c5a13931d725a4d952a4b9aefa71.tar.gz
linux-160933e330f4c5a13931d725a4d952a4b9aefa71.tar.bz2
linux-160933e330f4c5a13931d725a4d952a4b9aefa71.zip
KVM: selftests: Add test for uaccesses to non-existent vgic-v2 CPUIF
Assert that accesses to a non-existent vgic-v2 CPU interface consistently fail across the various KVM device attr ioctls. This also serves as a regression test for a bug wherein KVM hits a NULL dereference when the CPUID specified in the ioctl is invalid. Note that there is no need to print the observed errno, as TEST_ASSERT() will take care of it. Reviewed-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20240424173959.3776798-3-oliver.upton@linux.dev Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions