diff options
author | Lai Jiangshan <[email protected]> | 2022-04-12 20:49:08 +0800 |
---|---|---|
committer | Borislav Petkov <[email protected]> | 2022-05-19 10:56:46 +0200 |
commit | 47f33de4aafb2f5e43d480d590a939d0f1d566a9 (patch) | |
tree | c6b66cbc91c6b6438bac5fb53b9f0ff98af1ad18 /lib/mpi/mpi-sub-ui.c | |
parent | c42b145181aafd59ed31ccd879493389e3ea5a08 (diff) |
x86/sev: Mark the code returning to user space as syscall gap
When returning to user space, %rsp is user-controlled value.
If it is a SNP-guest and the hypervisor decides to mess with the
code-page for this path while a CPU is executing it, a potential #VC
could hit in the syscall return path and mislead the #VC handler.
So make ip_within_syscall_gap() return true in this case.
Signed-off-by: Lai Jiangshan <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
Acked-by: Joerg Roedel <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions