diff options
author | Joerg Roedel <jroedel@suse.de> | 2021-03-03 15:17:16 +0100 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2021-03-09 12:37:54 +0100 |
commit | bffe30dd9f1f3b2608a87ac909a224d6be472485 (patch) | |
tree | c58ca5fed0bca563661eac21fa1d72c0c2f72c30 /drivers/usb/cdns3/cdns3-debug.h | |
parent | 62441a1fb53263bda349b6e5997c3cc5c120d89e (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 <jroedel@suse.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: stable@vger.kernel.org # v5.10+
Link: https://lkml.kernel.org/r/20210303141716.29223-6-joro@8bytes.org
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions