kernel_samsung_a53x/arch/x86/entry
Pawan Gupta 0c7e61432d x86/entry_32: Clear CPU buffers after register restore in NMI return
commit 48a2440d0f20c826b884e04377ccc1e4696c84e9 upstream.

CPU buffers are currently cleared after call to exc_nmi, but before
register state is restored. This may be okay for MDS mitigation but not for
RDFS. Because RDFS mitigation requires CPU buffers to be cleared when
registers don't have any sensitive data.

Move CLEAR_CPU_BUFFERS after RESTORE_ALL_NMI.

Fixes: a0e2dab44d22 ("x86/entry_32: Add VERW just before userspace transition")
Suggested-by: Dave Hansen <dave.hansen@linux.intel.com>
Signed-off-by: Pawan Gupta <pawan.kumar.gupta@linux.intel.com>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Cc:stable@vger.kernel.org
Link: https://lore.kernel.org/all/20240925-fix-dosemu-vm86-v7-2-1de0daca2d42%40linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-23 23:21:57 +01:00
..
syscalls syscalls: fix compat_sys_io_pgetevents_time64 usage 2024-11-19 14:19:34 +01:00
vdso Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vsyscall x86/mm: Remove broken vsyscall emulation code from the page fault code 2024-11-19 12:27:13 +01:00
calling.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
common.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
entry.S x86/entry: Have entry_ibpb() invalidate return predictions 2024-11-23 23:21:55 +01:00
entry_32.S x86/entry_32: Clear CPU buffers after register restore in NMI return 2024-11-23 23:21:57 +01:00
entry_64.S x86/xen: Drop USERGS_SYSRET64 paravirt call 2024-11-19 12:26:38 +01:00
entry_64_compat.S x86/entry_64: Add VERW just before userspace transition 2024-11-19 09:22:40 +01:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
syscall_32.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
syscall_64.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
syscall_x32.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
thunk_32.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
thunk_64.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00