WSL2-Linux-Kernel/Documentation/x86
Pawan Gupta 913ae894c2 x86/bugs: Use ALTERNATIVE() instead of mds_user_clear static key
commit 6613d82e617dd7eb8b0c40b2fe3acea655b1d611 upstream.

The VERW mitigation at exit-to-user is enabled via a static branch
mds_user_clear. This static branch is never toggled after boot, and can
be safely replaced with an ALTERNATIVE() which is convenient to use in
asm.

Switch to ALTERNATIVE() to use the VERW mitigation late in exit-to-user
path. Also remove the now redundant VERW in exc_nmi() and
arch_exit_to_user_mode().

Signed-off-by: Pawan Gupta <pawan.kumar.gupta@linux.intel.com>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Link: https://lore.kernel.org/all/20240213-delay-verw-v8-4-a6216d83edb7%40linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-04-10 16:18:48 +02:00
..
i386
x86_64 Another collection of documentation patches, mostly fixes but also includes 2021-09-08 16:28:14 -07:00
amd-memory-encryption.rst x86/msr: Rename MSR_K8_SYSCFG to MSR_AMD64_SYSCFG 2021-05-10 07:51:38 +02:00
boot.rst docs: x86: avoid using ReST :doc:`foo` markup 2021-06-17 13:24:39 -06:00
booting-dt.rst
buslock.rst Documentation/x86: Add ratelimit in buslock.rst 2021-05-18 16:39:31 +02:00
cpuinfo.rst
earlyprintk.rst
elf_auxvec.rst x86/elf: Support a new ELF aux vector AT_MINSIGSTKSZ 2021-05-19 12:18:45 +02:00
entry_64.rst
exception-tables.rst
features.rst
index.rst Fixes and improvements for FPU handling on x86: 2021-07-07 11:12:01 -07:00
intel-iommu.rst
intel_txt.rst
kernel-stacks.rst
mds.rst x86/bugs: Use ALTERNATIVE() instead of mds_user_clear static key 2024-04-10 16:18:48 +02:00
microcode.rst
mtrr.rst docs: x86: avoid using ReST :doc:`foo` markup 2021-06-17 13:24:39 -06:00
orc-unwinder.rst
pat.rst
pti.rst
resctrl.rst
sgx.rst x86/sgx: Introduce virtual EPC for use by KVM guests 2021-04-06 09:43:17 +02:00
sva.rst
tlb.rst
topology.rst
tsx_async_abort.rst
usb-legacy-support.rst
zero-page.rst