acrn-kernel/drivers/virt/coco
Dionna Glaze 577a64725b virt/coco/sev-guest: Double-buffer messages
[ Upstream commit 965006103a ]

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: d5af44dde5 ("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
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-05-11 23:03:10 +09:00
..
efi_secret
sev-guest virt/coco/sev-guest: Double-buffer messages 2023-05-11 23:03:10 +09:00