Joerg Roedel 582f799335 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>
2023-10-25 11:58:55 +02:00
..
2022-07-21 21:24:40 +02:00
2022-07-23 12:54:06 +02:00
2021-06-29 12:36:59 -07:00
2021-03-18 15:31:53 +01:00
2022-07-23 12:53:58 +02:00
2023-03-10 09:39:12 +01:00
2021-03-18 15:31:53 +01:00
2021-03-18 15:31:53 +01:00