kernel_samsung_a53x/Documentation/x86
Pawan Gupta 710241e8a0 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-11-19 09:22:40 +01:00
..
i386 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
x86_64 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
amd-memory-encryption.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
boot.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
booting-dt.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cpuinfo.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
earlyprintk.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
entry_64.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exception-tables.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
index.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel-iommu.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_txt.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
kernel-stacks.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mds.rst x86/bugs: Use ALTERNATIVE() instead of mds_user_clear static key 2024-11-19 09:22:40 +01:00
microcode.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mtrr.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
orc-unwinder.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pat.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pti.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
resctrl_ui.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sva.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tlb.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
topology.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tsx_async_abort.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
usb-legacy-support.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
zero-page.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00