diff options
author | Michal Luczaj <mhal@rbox.co> | 2023-06-03 02:32:50 +0300 |
---|---|---|
committer | Sean Christopherson <seanjc@google.com> | 2023-06-03 03:21:06 +0300 |
commit | 47d2804bc99ca873470df17c20737b28225a320d (patch) | |
tree | 7dd9a1f8b6e62f3a3759a87adb81c2e655466237 /virt | |
parent | 4364b287982bd05bfafa461c80650c732001974b (diff) | |
download | linux-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 'virt')
0 files changed, 0 insertions, 0 deletions