acrn-hypervisor/hypervisor/include/arch/x86/asm
Yifan Liu 4f4da08490 hv: cve hotfix: Disable RRSBA on platform using retpoline
For platform that supports RRSBA (Restricted Return Stack Buffer
Alternate), using retpoline may not be sufficient to guard against branch
history injection or intra-mode branch target injection. RRSBA must
be disabled to prevent CPUs from using alternate predictors for RETs.

Quoting Intel CVE-2022-0001/CVE-2022-0002:

Where software is using retpoline as a mitigation for BHI or intra-mode BTI,
and the processor both enumerates RRSBA and enumerates RRSBA_DIS controls,
it should disable this behavior.
...
Software using retpoline as a mitigation for BHI or intra-mode BTI should use
these new indirect predictor controls to disable alternate predictors for RETs.

See: https://www.intel.com/content/www/us/en/developer/articles/technical/
 software-security-guidance/technical-documentation/branch-history-injection.html

Tracked-On: #7907
Signed-off-by: Yifan Liu <yifan1.liu@intel.com>
2022-07-22 09:38:41 +08:00
..
boot Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
guest hv: tlfs: add tlfs TSC freq MSR support for WaaG 2022-07-18 16:15:29 +08:00
lib Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
apicreg.h Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
board.h Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
cpu_caps.h hv: cve hotfix: Disable RRSBA on platform using retpoline 2022-07-22 09:38:41 +08:00
cpu.h Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
cpufeatures.h hv: cve hotfix: Disable RRSBA on platform using retpoline 2022-07-22 09:38:41 +08:00
cpuid.h Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
default_acpi_info.h Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
e820.h Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
gdt.h Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
host_pm.h Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
idt.h Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
init.h Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
io.h Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
ioapic.h Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
irq.h Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
lapic.h Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
mmu.h Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
msr.h hv: cve hotfix: Disable RRSBA on platform using retpoline 2022-07-22 09:38:41 +08:00
notify.h Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
page.h Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
pci_dev.h Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
per_cpu.h Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
pgtable.h Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
platform_caps.h Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
rdt.h Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
rtcm.h Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
rtct.h Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
security.h hv: cve hotfix: Disable RRSBA on platform using retpoline 2022-07-22 09:38:41 +08:00
seed.h Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
sgx.h Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
trampoline.h Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
tsc.h hv: tsc: calibrate TSC by HPET 2022-07-17 16:48:47 +08:00
vm_config.h Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
vmx.h Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
vtd.h Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
zeropage.h Update copyright year range in code headers 2022-07-15 11:48:35 +08:00