kernel_samsung_a53x/arch/x86/boot
Joerg Roedel 0d4648884c x86/sev: Check for user-space IOIO pointing to kernel space
Upstream commit: 63e44bc52047f182601e7817da969a105aa1f721

Check the memory operand of INS/OUTS before emulating the instruction.
The #VC exception can get raised from user-space, but the memory operand
can be manipulated to access kernel memory before the emulation actually
begins and after the exception handler has run.

  [ bp: Massage commit message. ]

Fixes: 597cfe48212a ("x86/boot/compressed/64: Setup a GHCB-based VC Exception handler")
Reported-by: Tom Dohrmann <erbse.13@gmx.de>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Cc: <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-08 11:26:09 +01:00
..
compressed x86/sev: Check for user-space IOIO pointing to kernel space 2024-11-08 11:26:09 +01:00
tools Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
a20.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
apm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bioscall.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bitops.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
boot.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cmdline.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
code16gcc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
copy.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cpu.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cpucheck.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cpuflags.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cpuflags.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ctype.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
early_serial_console.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
edd.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
genimage.sh Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
header.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
install.sh Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
main.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
memory.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mkcpustr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mtools.conf.in Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pmjump.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
printf.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
regs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
setup.ld Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
string.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
string.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tty.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
version.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vesa.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
video-bios.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
video-mode.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
video-vesa.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
video-vga.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
video.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
video.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00