-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Extend measured boot tests #326
Conversation
6c4f600
to
dccb264
Compare
@SergiiDmytruk
Couple fails in log.html you can see that:
MBO004.002 might have something to do with the fact that test disables USB Mass Storage and platform had connected bootable USB? If yes then other test that enables/disables network boot might have similar problems? |
PCR-8 shouldn't be touched by firmware. But GRUB could be extending a module related to USB (docs) or maybe it enumerates available drives. I don't see an obvious cause in the log. If there is no more neutral option to use, could exclude PCR-8 or check only PCR-0..7 after comparing event logs to confirm the cause of the failure.
Not necessarily, this might not apply to network boot. Depends on what's the actual cause. |
Tried to find option that would be available in most platforms. Maybe lock BIOS boot medium would be better
In the eventlog there is couple events with different + grub_cmd: [ -z (hd1,gpt6)/boot/grub -a -f (hd1,gpt6)/boot/grub/custom.cfg ]
- grub_cmd: [ -z (hd2,gpt6)/boot/grub -a -f (hd2,gpt6)/boot/grub/custom.cfg ] So i guess I would have to change it. |
@SergiiDmytruk From what I read in pcr-measurements.md |
Actually both old and new version of |
209c33b
to
a9f1281
Compare
@SergiiDmytruk Rebased and changed USB test to use SMM write protection.
|
That's because
|
@SergiiDmytruk, shouldn't we bring such issues to the attention of people who have 10+ years of experience with TCG? |
@pietrushnic, the issue is caused by coreboot extending only a single PCR bank and EDK having to deal with it somehow, TCG isn't at fault here. Initial version of upstreamed coreboot patches that add TCG logs allowed extending multiple banks, but one of the reviewers didn't want to "complicate the code", so that part got dropped. |
As author of this comment, do you have a suggestion on how the test scenario should look like @krystian-hebel ? I think we are discussing the |
I would have to see the event log to be sure, but to me it looks that scenario is good, it is coreboot that doesn't abide by the TCG PC Client Platform Firmware Profile Specification, namely
Section 10.1 is about the event log (so it applies to edk2 rather than coreboot), which includes:
So edk2 does the sane thing here, and mismatch between PCR and event log shows that something fishy is going on. There are two possible solutions I can think of, neither of them involves changes to the test:
|
When did we start to worry about that? Is the whole upstream happy about Dasharo's existence? |
https://docs.dasharo.com/newcomers/#dasharo-contribution
Or in our internal documentation: http://wiki.3mdeb.com/products/EX018-dasharo-release-process/#3-implement |
@krystian-hebel I have no idea what precisely you refer to. Can you be more specific? Ideally, you would quote a sentence, which means we have to make upstream happy because I can't see such a sentence in the document. So maybe we should change the newcomer documentation you are sticking to so it reflects the correct approach because not first time perfect is the enemy of good. |
After a discussion with @macpijan I've created Dasharo/dasharo-issues#982 to move this forward. The plan is to limit PCR banks to only one for now (to not postpone landing MeasuredBoot improvements) and make coreboot extend all banks at some later point (the issues gives pointers how to do that). |
MBO001 should now work with TPM 2.0 & TPM 1.2 Signed-off-by: Michał Iwanicki <[email protected]>
Signed-off-by: Michał Iwanicki <[email protected]>
Changes to SB certificate changes only PCR-7 Signed-off-by: Michał Iwanicki <[email protected]>
Those tests check that changing Dasharo configuration option changes PCR-1 value and only PCR-1 Signed-off-by: Michał Iwanicki <[email protected]>
Identical configuration/state == identical measurements Signed-off-by: Michał Iwanicki <[email protected]>
Limit PCRs checked to 0-9 & 14. PCR-10 changes wildly without even changing configuration. Signed-off-by: Michał Iwanicki <[email protected]>
Signed-off-by: Michał Iwanicki <[email protected]>
Signed-off-by: Michał Iwanicki <[email protected]>
Check if reset to defaults and flashing result in having the same PCRs Signed-off-by: Michał Iwanicki <[email protected]>
Signed-off-by: Michał Iwanicki <[email protected]>
Signed-off-by: Michał Iwanicki <[email protected]>
Signed-off-by: Michał Iwanicki <[email protected]>
Signed-off-by: Michał Iwanicki <[email protected]>
Signed-off-by: Michał Iwanicki <[email protected]>
Signed-off-by: Michał Iwanicki <[email protected]>
Signed-off-by: Michał Iwanicki <[email protected]>
grep won't print path without `-H` option if it searches only one file Signed-off-by: Michał Iwanicki <[email protected]>
Signed-off-by: Michał Iwanicki <[email protected]>
Signed-off-by: Michał Iwanicki <[email protected]>
Co-authored-by: SergiiDmytruk <[email protected]>
Signed-off-by: Michał Iwanicki <[email protected]>
This allows supplying an arbitrary disk image. Signed-off-by: Sergii Dmytruk <[email protected]>
* Use `$(id -u)` to get current user's ID. * Use `$PULSE_SERVER` if it's already set. Signed-off-by: Sergii Dmytruk <[email protected]>
Several keywords are useful in other TPM-related tests. Signed-off-by: Sergii Dmytruk <[email protected]>
Signed-off-by: Sergii Dmytruk <[email protected]>
Signed-off-by: Michał Iwanicki <[email protected]>
ceacfde
to
42eaf33
Compare
No description provided.