kernel_samsung_a53x/arch/x86/entry
Johannes Wikner aaf7a8b6e6 x86/entry: Have entry_ibpb() invalidate return predictions
commit 50e4b3b94090babe8d4bb85c95f0d3e6b07ea86e upstream.

entry_ibpb() should invalidate all indirect predictions, including return
target predictions. Not all IBPB implementations do this, in which case the
fallback is RSB filling.

Prevent SRSO-style hijacks of return predictions following IBPB, as the return
target predictor can be corrupted before the IBPB completes.

  [ bp: Massage. ]

Signed-off-by: Johannes Wikner <kwikner@ethz.ch>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Cc: <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-23 23:21:55 +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: Add VERW just before userspace transition 2024-11-19 09:22:40 +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