aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpiutil.c
diff options
context:
space:
mode:
authorJoerg Roedel <[email protected]>2021-03-03 15:17:16 +0100
committerBorislav Petkov <[email protected]>2021-03-09 12:37:54 +0100
commitbffe30dd9f1f3b2608a87ac909a224d6be472485 (patch)
treec58ca5fed0bca563661eac21fa1d72c0c2f72c30 /lib/mpi/mpiutil.c
parent62441a1fb53263bda349b6e5997c3cc5c120d89e (diff)
x86/sev-es: Use __copy_from_user_inatomic()
The #VC handler must run in atomic context and cannot sleep. This is a problem when it tries to fetch instruction bytes from user-space via copy_from_user(). Introduce a insn_fetch_from_user_inatomic() helper which uses __copy_from_user_inatomic() to safely copy the instruction bytes to kernel memory in the #VC handler. Fixes: 5e3427a7bc432 ("x86/sev-es: Handle instruction fetches from user-space") Signed-off-by: Joerg Roedel <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Cc: [email protected] # v5.10+ Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions