aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
authorJoerg Roedel <[email protected]>2021-03-03 14:17:16 +0000
committerBorislav Petkov <[email protected]>2021-03-09 11:37:54 +0000
commitbffe30dd9f1f3b2608a87ac909a224d6be472485 (patch)
treec58ca5fed0bca563661eac21fa1d72c0c2f72c30 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
parentx86/sev-es: Correctly track IRQ states in runtime #VC handler (diff)
downloadkernel-bffe30dd9f1f3b2608a87ac909a224d6be472485.tar.gz
kernel-bffe30dd9f1f3b2608a87ac909a224d6be472485.zip
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 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions