linux/arch/x86/kernel/cpu
Borislav Petkov (AMD) 8cc68c9c9e x86/CPU/AMD: Make sure EFER[AIBRSE] is set
The AutoIBRS bit gets set only on the BSP as part of determining which
mitigation to enable on AMD. Setting on the APs relies on the
circumstance that the APs get booted through the trampoline and EFER
- the MSR which contains that bit - gets replicated on every AP from the
BSP.

However, this can change in the future and considering the security
implications of this bit not being set on every CPU, make sure it is set
by verifying EFER later in the boot process and on every AP.

Reported-by: Josh Poimboeuf <jpoimboe@kernel.org>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Acked-by: Dave Hansen <dave.hansen@linux.intel.com>
Link: https://lore.kernel.org/r/20230224185257.o3mcmloei5zqu7wa@treble
2023-03-16 11:50:00 +01:00
..
mce - Add support for reporting more bits of the physical address on error, 2023-02-21 08:04:51 -08:00
microcode x86/microcode/core: Return an error only when necessary 2023-02-06 13:41:31 +01:00
mtrr x86/mtrr: Make message for disabled MTRRs more descriptive 2022-12-05 11:08:25 +01:00
resctrl x86/resctrl: Fix a silly -Wunused-but-set-variable warning 2023-01-26 11:15:20 +01:00
sgx mm: replace vma->vm_flags direct modifications with modifier calls 2023-02-09 16:51:39 -08:00
.gitignore
acrn.c x86/acrn: Set up timekeeping 2022-08-04 11:11:59 +02:00
amd.c x86/CPU/AMD: Make sure EFER[AIBRSE] is set 2023-03-16 11:50:00 +01:00
aperfmperf.c x86/aperfmperf: Erase stale arch_freq_scale values when disabling frequency invariance readings 2023-01-16 10:19:15 +01:00
bugs.c x86/CPU/AMD: Make sure EFER[AIBRSE] is set 2023-03-16 11:50:00 +01:00
cacheinfo.c x86/cacheinfo: Remove unused trace variable 2023-02-11 10:43:31 +01:00
centaur.c
common.c A healthy mix of EFI contributions this time: 2023-02-23 14:41:48 -08:00
cpu.h x86/CPU/AMD: Make sure EFER[AIBRSE] is set 2023-03-16 11:50:00 +01:00
cpuid-deps.c x86/cpufeatures: Add Bandwidth Monitoring Event Configuration feature flag 2023-01-23 17:38:31 +01:00
cyrix.c x86/cyrix: include header linux/isa-dma.h 2022-07-26 14:03:12 -05:00
feat_ctl.c x86/cpu: Include the header of init_ia32_feat_ctl()'s prototype 2022-09-26 17:06:27 +02:00
hygon.c - Split MTRR and PAT init code to accomodate at least Xen PV and TDX 2022-12-13 14:56:56 -08:00
hypervisor.c
intel.c - Add support for multiple testing sequences to the Intel In-Field Scan 2022-12-13 15:05:29 -08:00
intel_epb.c x86/intel_epb: Set Alder Lake N and Raptor Lake P normal EPB 2022-11-03 11:31:01 -07:00
intel_pconfig.c
Makefile x86/cpu: Re-enable stackprotector 2022-10-17 16:40:56 +02:00
match.c
mkcapflags.sh
mshyperv.c ARM: 2023-02-25 11:30:21 -08:00
perfctr-watchdog.c
powerflags.c
proc.c
rdrand.c x86/rdrand: Remove "nordrand" flag in favor of "random.trust_cpu" 2022-07-18 15:04:04 +02:00
scattered.c x86/cpufeatures: Add Bandwidth Monitoring Event Configuration feature flag 2023-01-23 17:38:31 +01:00
topology.c x86/topology: Fix duplicated core ID within a package 2022-10-17 11:58:52 -07:00
transmeta.c
tsx.c x86/cpu: Remove redundant extern x86_read_arch_cap_msr() 2023-01-10 12:40:24 +01:00
umc.c
umwait.c
vmware.c sched/clock/x86: Mark sched_clock() noinstr 2023-01-31 15:01:47 +01:00
vortex.c
zhaoxin.c