Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 0adc35fccd59c8c5171273319ec899aa48fc2c35
      
https://github.com/tianocore/edk2/commit/0adc35fccd59c8c5171273319ec899aa48fc2c35
  Author: Dov Murik <dovmu...@linux.ibm.com>
  Date:   2022-12-15 (Thu, 15 Dec 2022)

  Changed paths:
    M OvmfPkg/AmdSev/SecretDxe/SecretDxe.c

  Log Message:
  -----------
  OvmfPkg/AmdSev/SecretDxe: Allocate secret location as EfiACPIReclaimMemory

BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4186

Commit 079a58276b98 ("OvmfPkg/AmdSev/SecretPei: Mark SEV launch secret
area as reserved") marked the launch secret area itself (1 page) as
reserved so the guest OS can use it during the lifetime of the OS.
However, the address and size of the secret area held in the
CONFIDENTIAL_COMPUTING_SECRET_LOCATION struct are declared as STATIC in
OVMF (in AmdSev/SecretDxe); therefore there's no guarantee that it will
not be written over by OS data.

Fix this by allocating the memory for the
CONFIDENTIAL_COMPUTING_SECRET_LOCATION struct with the
EfiACPIReclaimMemory memory type to ensure the guest OS will not reuse
this memory.

Fixes: 079a58276b98 ("OvmfPkg/AmdSev/SecretPei: Mark SEV launch secret ...")
Signed-off-by: Dov Murik <dovmu...@linux.ibm.com>
Reviewed-by: Tom Lendacky <thomas.lenda...@amd.com>
Reviewed-by: Ard Biesheuvel <a...@kernel.org>




_______________________________________________
edk2-commits mailing list
edk2-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to