summaryrefslogtreecommitdiff
path: root/arch/arm64/kvm/vgic
diff options
context:
space:
mode:
authorMichal Luczaj <mhal@rbox.co>2023-06-03 02:32:50 +0300
committerSean Christopherson <seanjc@google.com>2023-06-03 03:21:06 +0300
commit47d2804bc99ca873470df17c20737b28225a320d (patch)
tree7dd9a1f8b6e62f3a3759a87adb81c2e655466237 /arch/arm64/kvm/vgic
parent4364b287982bd05bfafa461c80650c732001974b (diff)
downloadlinux-47d2804bc99ca873470df17c20737b28225a320d.tar.xz
KVM: selftests: Add test for race in kvm_recalculate_apic_map()
Keep switching between LAPIC_MODE_X2APIC and LAPIC_MODE_DISABLED during APIC map construction to hunt for TOCTOU bugs in KVM. KVM's optimized map recalc makes multiple passes over the list of vCPUs, and the calculations ignore vCPU's whose APIC is hardware-disabled, i.e. there's a window where toggling LAPIC_MODE_DISABLED is quite interesting. Signed-off-by: Michal Luczaj <mhal@rbox.co> Co-developed-by: Sean Christopherson <seanjc@google.com> Link: https://lore.kernel.org/r/20230602233250.1014316-4-seanjc@google.com Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'arch/arm64/kvm/vgic')
0 files changed, 0 insertions, 0 deletions