-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
incomplete measured boot and CCEL eventlog #35
Comments
I think this issue is related to missing cmdline/initrd measurement issue reported in #40 Can you try it with Linus tip tree or upcoming v6.9-rc1 release? It has fixes related to cmdline measurements in CC platforms. |
This is different. |
I checked with vanilla 24.04 and the result is still the same |
Hello @mythi , i checked it on 24.04 and i see the event log for initrd To check it yourself, i have a ongoing merge request for the branch https://github.com/canonical/tdx/tree/tdx-testing-ng that contains tests for TDX, i have a test for making sure that the initrd is measured into the event log table if you are on the branch and on a 24.04 TDX system, you can run the test with:
|
Thank you for reporting us your feedback! The internal ticket has been created: https://warthogs.atlassian.net/browse/PEK-680.
|
It was not clear in my original report: the eventlog exists but it's incomplete (it does not contain any of the grub2 measurements) but stops at what OVMF has measured. |
@mythi Hello, i did some investigation on this issue and discovered that we have an issue on grub where grub will skip loading the tpm module (in charge of doing measurement both for TPM and Confidential Computing platform) if the tpm is not present (see hector-cao/grub@30708df ), we will need to fix it to allow the tpm module to be loaded when TPM is not present but CC is available (basically check for the protocol : EFI_CC_MEASUREMENT_PROTOCOL) . I will work on this patch and submit it to Ubuntu and also grub upstream |
@hector-cao nice find, thanks so much! |
Here is the upstream patch : https://lists.gnu.org/archive/html/grub-devel/2024-05/msg00273.html |
@hector-cao is this still open? |
@mythi yes, it is. The issue is fixed in Oracular (24.10) and i m going to backport the fix to Noble (24.04), |
thanks! I haven't checked Oracular myself yet. |
I've followed the steps in this repo to build an image based on 23.10 and I have
I was checking the content of CCEL and could not find any logs that the most important parts, i.e., kernel/initrd/cmdline get measured. To see the log, I used https://github.com/canonical/tcglog-parser
All of the grub measurements are missing. In contrast, on my TPM enabled laptop I can see, e.g.,
The text was updated successfully, but these errors were encountered: