linux-stable/arch/x86
Pawan Gupta ae269412d9 x86/bugs: Add "unknown" reporting for MMIO Stale Data
commit 7df548840c upstream.

Older Intel CPUs that are not in the affected processor list for MMIO
Stale Data vulnerabilities currently report "Not affected" in sysfs,
which may not be correct. Vulnerability status for these older CPUs is
unknown.

Add known-not-affected CPUs to the whitelist. Report "unknown"
mitigation status for CPUs that are not in blacklist, whitelist and also
don't enumerate MSR ARCH_CAPABILITIES bits that reflect hardware
immunity to MMIO Stale Data vulnerabilities.

Mitigation is not deployed when the status is unknown.

  [ bp: Massage, fixup. ]

Fixes: 8d50cdf8b8 ("x86/speculation/mmio: Add sysfs reporting for Processor MMIO Stale Data")
Suggested-by: Andrew Cooper <andrew.cooper3@citrix.com>
Suggested-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Pawan Gupta <pawan.kumar.gupta@linux.intel.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/a932c154772f2121794a5f2eded1a11013114711.1657846269.git.pawan.kumar.gupta@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-09-05 10:26:33 +02:00
..
boot x86: link vdso and boot with -z noexecstack --no-warn-rwx-segments 2022-08-25 11:14:50 +02:00
configs x86/defconfig: Enable CONFIG_USB_XHCI_HCD=y 2020-09-23 12:11:02 +02:00
crypto crypto: x86/crc32c - fix building with clang ias 2021-01-23 15:49:55 +01:00
entry x86: link vdso and boot with -z noexecstack --no-warn-rwx-segments 2022-08-25 11:14:50 +02:00
events perf/amd/ibs: Use interrupt regs ip for stack unwinding 2022-06-14 16:59:22 +02:00
hyperv x86/hyperv: Fix NULL deref in set_hv_tscchange_cb() if Hyper-V setup fails 2021-11-26 11:36:23 +01:00
ia32 x86/ia32: Fix ia32_restore_sigcontext() AC leak 2019-05-31 06:46:27 -07:00
include x86/bugs: Add "unknown" reporting for MMIO Stale Data 2022-09-05 10:26:33 +02:00
kernel x86/bugs: Add "unknown" reporting for MMIO Stale Data 2022-09-05 10:26:33 +02:00
kvm KVM: x86: Avoid theoretical NULL pointer dereference in kvm_irq_delivery_to_apic_fast() 2022-08-25 11:15:31 +02:00
lib x86/delay: Fix the wrong asm constraint in delay_loop() 2022-06-14 16:59:19 +02:00
math-emu x86: math-emu: Fix up 'cmp' insn for clang ias 2020-07-29 10:16:54 +02:00
mm x86/numa: Use cpumask_available instead of hardcoded NULL check 2022-08-25 11:15:26 +02:00
net bpf: Introduce BPF nospec instruction for mitigating Spectre v4 2021-09-22 11:47:58 +02:00
oprofile
pci x86/pci/xen: Disable PCI/MSI[-X] masking for XEN_HVM guests 2022-06-06 08:24:19 +02:00
platform x86/olpc: fix 'logical not is only applied to the left hand side' 2022-08-25 11:15:27 +02:00
power x86/cpu: Load microcode during restore_processor_state() 2022-05-12 12:20:22 +02:00
purgatory x86/purgatory: Disable various profiling and sanitizing options 2020-06-25 15:32:52 +02:00
ras
realmode x86/64/mm: Map all kernel memory into trampoline_pgd 2021-12-08 08:50:14 +01:00
tools x86/tools: Fix objdump version check again 2021-08-26 08:36:39 -04:00
um um: Fix out-of-bounds read in LDT setup 2022-06-14 16:59:29 +02:00
video
xen xen: delay xen_hvm_init_time_ops() if kdump is boot on vcpu>=32 2022-04-15 14:15:03 +02:00
.gitignore
Kbuild
Kconfig x86/sme: Explicitly map new EFI memmap table as encrypted 2021-12-22 09:19:01 +01:00
Kconfig.cpu
Kconfig.debug x86, perf: Fix the dependency of the x86 insn decoder selftest 2020-01-27 14:51:08 +01:00
Makefile x86/build: Propagate $(CLANG_FLAGS) to $(REALMODE_FLAGS) 2021-05-22 10:59:15 +02:00
Makefile.um
Makefile_32.cpu