From: "Aithal, Srikanth via groups.io" <srikanth.aithal=amd.com@groups.io>
To: devel@edk2.groups.io, tobin@linux.ibm.com
Cc: dov.murik@gmail.com, james.bottomley@hansenpartnership.com,
thomas.lendacky@amd.com, tobin@ibm.com
Subject: Re: [edk2-devel] [PATCH 0/2] AmdSev: Harden SEV Kernel hashes verifier
Date: Wed, 26 Jun 2024 13:38:35 +0530 [thread overview]
Message-ID: <5618d3f0-827f-49f4-b1a7-6a47fac50550@amd.com> (raw)
In-Reply-To: <cover.1715024059.git.tobin@linux.ibm.com>
[-- Attachment #1: Type: text/plain, Size: 3219 bytes --]
Hello,
SEV/SEVES guest boot fails with AMDSEV OVMF package built using upstream
edk2 master [commit head: 2fbaaa96d11ad61a9133df1728e3fe965d1457a5].
SEV/SEVES guest boot with AMDSEV package gets stuck at below point:
Plain Text
|2024-06-26 04:38:02: FetchBlob: loading 14332416 bytes for "kernel"
2024-06-26 04:38:02: Select Item: 0x18 2024-06-26 04:38:02: Select Item:
0x11 2024-06-26 04:38:02: VerifyBlob: Found GUID
4DE79437-ABD2-427F-B835-D5B172D2045B in table 2024-06-26 04:38:02:
VerifyBlob: Hash comparison succeeded for "kernel" 2024-06-26 04:38:02:
Select Item: 0xB 2024-06-26 04:38:02: VerifyBlob: Found GUID
44BAF731-3A2F-4BD7-9AF1-41E29169781D in table 2024-06-26 04:38:02:
VerifyBlob: Blob Specified in Hash Table was not Provided --> Hung here |
This was working until yesterday [commit head: be38c01], where we can
see boot was proceeding
Plain Text
|2024-06-25 03:13:23: VerifyBlob: Found GUID
4DE79437-ABD2-427F-B835-D5B172D2045B in table 2024-06-25 03:13:23:
VerifyBlob: Hash comparison succeeded for "kernel" 2024-06-25 03:13:23:
Select Item: 0xB 2024-06-25 03:13:23: VerifyBlob: Found GUID
44BAF731-3A2F-4BD7-9AF1-41E29169781D in table 2024-06-25 03:13:23:
VerifyBlob: Hash comparison succeeded for "initrd" 2024-06-25 03:13:23:
Select Item: 0x14 2024-06-25 03:13:23: FetchBlob: loading 120 bytes for
"cmdline" 2024-06-25 03:13:23: Select Item: 0x15 2024-06-25 03:13:23:
VerifyBlob: Found GUID 97D02DD8-BD20-4C94-AA78-E7714D36AB2A in table
2024-06-25 03:13:23: VerifyBlob: Hash comparison succeeded for "cmdline"|
After this patch got merged the regression is seen.
Thanks,
Srikanth Aithal
On 5/7/2024 1:57 AM, Tobin Feldman-Fitzthum via groups.io wrote:
> The AmdSev package has a so-called BlobVerifier, which
> is meant to extend the TCB of a confidential guest
> (SEV or SNP) to include components provided via fw_cfg
> such as initrd, kernel, kernel params.
>
> This series fixes a few implementation errors in the
> blob verifier. One common theme is that the verifier
> currently fails to halt the boot when an invalid blob
> is detected. This can lead to a confidential guest
> having a launch measurement that does not reflect the
> guest TCB.
>
> This series could also help us move towards consolidating
> the AmdSev package back into the OvmfPkg although more
> discussion will be needed on this.
>
> Thank you for Ryan Savino at AMD for pointing out
> some of these issues.
>
> Tobin Feldman-Fitzthum (2):
> AmdSev: Rework Blob Verifier
> AmdSev: Halt on failed blob allocation
>
> .../BlobVerifierSevHashes.c | 56 ++++++++++++++++---
> OvmfPkg/Include/Library/BlobVerifierLib.h | 14 +++--
> .../BlobVerifierLibNull/BlobVerifierNull.c | 13 +++--
> .../QemuKernelLoaderFsDxe.c | 9 ++-
> 4 files changed, 69 insertions(+), 23 deletions(-)
>
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#119717): https://edk2.groups.io/g/devel/message/119717
Mute This Topic: https://groups.io/mt/105977013/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-
[-- Attachment #2: Type: text/html, Size: 6450 bytes --]
next prev parent reply other threads:[~2024-06-26 8:08 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-06 20:27 [edk2-devel] [PATCH 0/2] AmdSev: Harden SEV Kernel hashes verifier Tobin Feldman-Fitzthum
2024-05-06 20:27 ` [edk2-devel] [PATCH 1/2] AmdSev: Rework Blob Verifier Tobin Feldman-Fitzthum
2024-05-30 15:46 ` Lendacky, Thomas via groups.io
2024-05-06 20:27 ` [edk2-devel] [PATCH 2/2] AmdSev: Halt on failed blob allocation Tobin Feldman-Fitzthum
2024-05-30 15:51 ` Lendacky, Thomas via groups.io
2024-06-26 8:08 ` Aithal, Srikanth via groups.io [this message]
2024-06-26 13:58 ` [edk2-devel] [PATCH 0/2] AmdSev: Harden SEV Kernel hashes verifier Tobin Feldman-Fitzthum
2024-06-26 14:33 ` Aithal, Srikanth via groups.io
2024-06-26 17:14 ` Tobin Feldman-Fitzthum
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5618d3f0-827f-49f4-b1a7-6a47fac50550@amd.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox