Re: [PATCH 2/2] efi+tpm: don't traverse an event log with no events

2019-08-31 Thread Ard Biesheuvel
On Mon, 26 Aug 2019 at 18:30, Peter Jones wrote: > > When there are no entries to put into the final event log, some machines > will return the template they would have populated anyway. In this case > the nr_events field is 0, but the rest of the log is just garbage. > > This patch stops us from

Re: [PATCH 2/2] efi+tpm: don't traverse an event log with no events

2019-08-26 Thread Matthew Garrett
On Mon, Aug 26, 2019 at 9:30 AM Jarkko Sakkinen wrote: > > On Mon, Aug 26, 2019 at 11:30:28AM -0400, Peter Jones wrote: > > When there are no entries to put into the final event log, some machines > > will return the template they would have populated anyway. In this case > > the nr_events field

Re: [PATCH 2/2] efi+tpm: don't traverse an event log with no events

2019-08-26 Thread Jarkko Sakkinen
On Mon, Aug 26, 2019 at 11:30:28AM -0400, Peter Jones wrote: > When there are no entries to put into the final event log, some machines > will return the template they would have populated anyway. In this case > the nr_events field is 0, but the rest of the log is just garbage. > > This patch sto

[PATCH 2/2] efi+tpm: don't traverse an event log with no events

2019-08-26 Thread Peter Jones
When there are no entries to put into the final event log, some machines will return the template they would have populated anyway. In this case the nr_events field is 0, but the rest of the log is just garbage. This patch stops us from trying to iterate the table with __calc_tpm2_event_size() wh