From: Jerry Snitselaar <jsnitsel@redhat.com>
To: Mimi Zohar <zohar@linux.ibm.com>
Cc: Ken Goldman <kgold@linux.ibm.com>,
linux-integrity@vger.kernel.org,
Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>,
Matthew Garrett <mjg59@google.com>,
Ken Goldman <kgoldman@us.ibm.com>
Subject: Re: Disparity in tpm pcr5 value
Date: Thu, 7 May 2020 09:26:24 -0700 [thread overview]
Message-ID: <20200507162624.4eqi6tvfmfabn6vj@cantor> (raw)
In-Reply-To: <1588863053.5685.62.camel@linux.ibm.com>
On Thu May 07 20, Mimi Zohar wrote:
>On Thu, 2020-05-07 at 00:35 -0700, Jerry Snitselaar wrote:
>> On Wed May 06 20, Ken Goldman wrote:
>> >On 5/5/2020 6:27 PM, Jerry Snitselaar wrote:
>> >>On some systems we've had reports of the value of pcr5 doesn't match
>> >>the digests in the tpm event log.
>> >>It looks like I'm able to reproduce here with 5.7-rc4 on a dell
>> >>system using this parser:
>> >>
>> >>https://github.com/ValdikSS/binary_bios_measurements_parser
>> >>
>> >>Any thoughts on where to start digging? Is there another tool I
>> >>should use to parse this?
>> >
>> >If you email me the event log in binary, I can run it through the IBM
>> >calculator and see if I get the same error.
>> >
>> >
>>
>> A couple other data points:
>>
>> - On the Dell system where I did this if I change it in the bios to use sha256
>> instead of sha1, then using tsseventextend to parse matches the value in the tpm.
>> In the sha256 case there is a final events log.
>>
>> - I have a nuc5 here, which also extends into sha1, and the parse matches there.
>>
>> - Javier has also reproduced it when passing through swtpm to a vm.
>>
>> - I added some debugging code, and there is nothing extending pcr5 with tpm_pcr_extend.
>>
>> - Ken's parse of the log also shows the disparity, which I've now done as well with
>> the tpm1.2 version of the tsseventextend tool.
>
>Thanks, Jerry. You've eliminated the kernel extending into the PCR.
> For SHA256, the event log has to be TPM 2.0 format. I've seen TPM
>2.0's for SHA1 use the TPM 1.2 event log format. When using SHA1, is
>it a TPM 1.2 or 2.0 event log format?
>
>Mimi
>
It is the 1.2 event log format.
next prev parent reply other threads:[~2020-05-07 16:26 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-05 22:27 Disparity in tpm pcr5 value Jerry Snitselaar
2020-05-06 14:12 ` Ken Goldman
2020-05-07 7:35 ` Jerry Snitselaar
2020-05-07 14:50 ` Mimi Zohar
2020-05-07 16:26 ` Jerry Snitselaar [this message]
2020-05-07 20:57 ` Mimi Zohar
2020-05-07 23:12 ` Jerry Snitselaar
2020-05-13 17:10 ` Jarkko Sakkinen
2020-05-13 17:59 ` Jerry Snitselaar
2020-05-14 11:03 ` Jarkko Sakkinen
2020-05-14 16:55 ` Jerry Snitselaar
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-all 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=20200507162624.4eqi6tvfmfabn6vj@cantor \
--to=jsnitsel@redhat.com \
--cc=jarkko.sakkinen@linux.intel.com \
--cc=kgold@linux.ibm.com \
--cc=kgoldman@us.ibm.com \
--cc=linux-integrity@vger.kernel.org \
--cc=mjg59@google.com \
--cc=zohar@linux.ibm.com \
/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;
as well as URLs for NNTP newsgroup(s).