Skip to content
Commit 96500610 authored by Dionna Glaze's avatar Dionna Glaze Committed by Borislav Petkov (AMD)
Browse files

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: d5af44dd ("x86/sev: Provide support for SNP guest request NAEs")
Signed-off-by: default avatarDionna Glaze <dionnaglaze@google.com>
Signed-off-by: default avatarBorislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20230214164638.1189804-3-dionnaglaze@google.com
parent dbf07b54
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment