kernel_samsung_a53x/arch/x86/boot/compressed
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
..
acpi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cmdline.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cpuflags.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
early_serial_console.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
efi_thunk_64.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
error.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
error.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
head_32.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
head_64.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ident_map_64.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
idt_64.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
idt_handlers_64.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
kaslr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
kernel_info.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mem_encrypt.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
misc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
misc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mkpiggy.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pgtable.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pgtable_64.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sev-es.c x86/sev: Check for user-space IOIO pointing to kernel space 2024-11-08 11:26:09 +01:00
string.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vmlinux.lds.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00