-
-
Notifications
You must be signed in to change notification settings - Fork 186
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
cbmem -L broken under coreboot 4.21+ #1608
Comments
Issued a PR that should address the issue: #1609 As far as heads is concerned, it doesn't matter which event log format is used right? Or rather coreboot's custom format is preferred @tlaurion ? Why |
@miczyg1 @JonathonHall-Purism theoritically, tpm1.2 vs coreboot log format should not matter since from my understanding, they use PCR2 for operations. For our interest here and where the bug was discovered (all ivy/sandy/haswell boards were based on 4.19 since edp/fhd patch was not merged upstream), boards stayed on 4.19. But since https://review.coreboot.org/c/coreboot/+/28950 got merged yesterday as coreboot/coreboot@a88dd4b, I'll prepare a PR switching all boards to that commit and be able to give traces, switching boards to TCG TPM1.2 TPM Event log format and go from there. |
Logs provided and analysis at #1609 (comment) and further comments
|
Discussion under thread at https://matrix.to/#/!pAlHOfxQNPXOgFGTmo:matrix.org/$CQDLxAckANKmXAu8ZDtcDIHUn1dgvgfzyifZidHr7SA?via=matrix.org&via=nitro.chat&via=fairydust.space leading to traces requests by @krystian-hebel and @miczyg1 |
Ok, so to trace this better Coreboot custom event log format:
|
TCG event log format
|
@miczyg1 #1609 closed as explained under #1608 (comment) : switching to coreboot custom format doesn't fix anything at all. Let me know here if anything else is needed to troubleshoot coreboot upstream issue from Heads side. |
Blocker for #1568 |
@miczyg1 ping? |
This is related to coreboot changes from TCPA->TPM event log and is still present under coreboot master (24.05) and affects all forks since coreboot 4.21 where that change occurred |
Opened Dasharo/dasharo-issues#1004 Closing here |
The utilit yassumed that TCG TPM log area is zeroed and then filled with events but it does not have to be true. If there is garbage after the last valid event entry, the utility will most likely access data outside of the cbmem area containing the logs. Relevant issue: linuxboot/heads#1608 TEST=Dump TCG TPM1.2 event log on Dell OptiPlex 7010 and see "Invalid TPM1.2 log entry overflowing cbmem area" error is printed. Signed-off-by: Michał Żygowski <[email protected]>
https://review.coreboot.org/c/coreboot/+/84926 Fixed the cbmem utility side, but it would also be good to clear that log area on creation. |
The utilit yassumed that TCG TPM log area is zeroed and then filled with events but it does not have to be true. If there is garbage after the last valid event entry, the utility will most likely access data outside of the cbmem area containing the logs. Relevant issue: linuxboot/heads#1608 TEST=Dump TCG TPM1.2 event log on Dell OptiPlex 7010 and see "Invalid TPM1.2 log entry overflowing cbmem area" error is printed. Signed-off-by: Michał Żygowski <[email protected]>
The utilit yassumed that TCG TPM log area is zeroed and then filled with events but it does not have to be true. If there is garbage after the last valid event entry, the utility will most likely access data outside of the cbmem area containing the logs. Relevant issue: linuxboot/heads#1608 TEST=Dump TCG TPM1.2 event log on Dell OptiPlex 7010 and see "Invalid TPM1.2 log entry overflowing cbmem area" error is printed. Signed-off-by: Michał Żygowski <[email protected]>
https://review.coreboot.org/c/coreboot/+/84927 Fixed the log area creation for TPM1.2. Not sure why but the TPM2.0 log area was completely cleared, thus the issue did not appear when parsing TPM2.0 logs... |
Originally posted by @tlaurion in #1604 (comment)
The text was updated successfully, but these errors were encountered: