diff options
author | Dionna Glaze <dionnaglaze@google.com> | 2023-03-07 20:24:48 +0100 |
---|---|---|
committer | Borislav Petkov (AMD) <bp@alien8.de> | 2023-03-21 13:20:04 +0100 |
commit | 965006103a14703cc42043bbf9b5e0cdf7a468ad (patch) | |
tree | 567516aa0920c9c1d6f027f9ad5f39293bf677d7 /arch/x86/include/asm/tsc.h | |
parent | dbf07b544ca12c0ab8bd3fc1ea3509ea713a8bf5 (diff) |
virt/coco/sev-guest: Double-buffer messages
The encryption algorithms read and write directly to shared unencrypted
memory, which may leak information as well as permit the host to tamper
with the message integrity. Instead, copy whole messages in or out as
needed before doing any computation on them.
Fixes: d5af44dde546 ("x86/sev: Provide support for SNP guest request NAEs")
Signed-off-by: Dionna Glaze <dionnaglaze@google.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20230214164638.1189804-3-dionnaglaze@google.com
Diffstat (limited to 'arch/x86/include/asm/tsc.h')
0 files changed, 0 insertions, 0 deletions