Rohde-Schwarz / TrustedGRUB2

DEPRECATED TPM enabled GRUB2 Bootloader
GNU General Public License v3.0
193 stars 77 forks source link

Loader measurement changing between boots #51

Closed cmatsuoka closed 8 years ago

cmatsuoka commented 8 years ago

I'm working on an Advantech board with Infineon TPM and AMI BIOS where the PCR 10 measurement value is different after each boot, with the same bootloader, kernel and initramfs (no changes made at all between reboots). PCRs 0-9 and 11 remain intact. This is causing all sorts of problems with OS level measurements based on PCR 10. Is there a known or typical cause for this behavior, or a recommended workaround?

Additional information: enabling TGRUB_DEBUG shows that the kernel SHA1 is correct, but no debug message is printed for the initrd. The last message printed is "Loading initial ramdisk ...". Debug messages placed inside grub_cmd_initrd() are not displayed, so I can't confirm if the initrd is being correctly hashed.

cmatsuoka commented 8 years ago

Uuhm, ok, this seems to be an instance of the same problem related in issue #39 where the kernel extends PCR 10 value after booting. I'm not sure why the value changes in every boot, but this is not a problem with TrustedGRUB2 so I'm closing this issue.