Re: [tpmdd-devel] [PATCH v3 5/5] tpm: parse TPM event logs based on EFI table

2017-09-20 Thread Jason Gunthorpe
On Wed, Sep 20, 2017 at 10:13:40AM +0200, Thiebaud Weksteen wrote: > If we are not able to retrieve the TPM event logs from the ACPI table, > check the EFI configuration table (Linux-specific GUID). > > The format version of the log is now returned by the provider function. > > Signed-off-by:

[tpmdd-devel] [PATCH v3 1/5] tpm: move tpm_eventlog.h outside of drivers folder

2017-09-20 Thread Thiebaud Weksteen via tpmdd-devel
The generic definitions of data structures in tpm_eventlog.h are required by other part of the kernel (namely, the EFI stub). Signed-off-by: Thiebaud Weksteen --- drivers/char/tpm/tpm-chip.c| 3 +- drivers/char/tpm/tpm-interface.c |

[tpmdd-devel] [PATCH v3 4/5] efi: call get_event_log before ExitBootServices

2017-09-20 Thread Thiebaud Weksteen via tpmdd-devel
With TPM 2.0 specification, the event logs may only be accessible by calling an EFI Boot Service. Modify the EFI stub to copy the log area to a new Linux-specific EFI configuration table so it remains accessible once booted. When calling this service, it is possible to specify the expected format

[tpmdd-devel] [PATCH v3 3/5] tpm: add event log format version

2017-09-20 Thread Thiebaud Weksteen via tpmdd-devel
Although defined as part of the TCG EFI specification, we add these definitions here so that any event log provider may reference them. Signed-off-by: Thiebaud Weksteen --- include/linux/tpm_eventlog.h | 3 +++ 1 file changed, 3 insertions(+) diff --git

[tpmdd-devel] [PATCH v3 5/5] tpm: parse TPM event logs based on EFI table

2017-09-20 Thread Thiebaud Weksteen via tpmdd-devel
If we are not able to retrieve the TPM event logs from the ACPI table, check the EFI configuration table (Linux-specific GUID). The format version of the log is now returned by the provider function. Signed-off-by: Thiebaud Weksteen --- drivers/char/tpm/Makefile|

[tpmdd-devel] [PATCH v3 2/5] tpm: rename event log provider files

2017-09-20 Thread Thiebaud Weksteen via tpmdd-devel
Rename the current TPM Event Log provider files (ACPI and OF) for clarity. Signed-off-by: Thiebaud Weksteen --- drivers/char/tpm/Makefile| 4 ++-- drivers/char/tpm/{tpm_acpi.c => tpm_eventlog_acpi.c} | 0 drivers/char/tpm/{tpm_of.c =>

[tpmdd-devel] [PATCH v3 0/5] Call GetEventLog before ExitBootServices

2017-09-20 Thread Thiebaud Weksteen via tpmdd-devel
With TPM 1.2, the ACPI table ("TCPA") has two fields to recover the Event Log Area (LAML and LASA). These logs are useful to understand and rebuild the final values of PCRs. With TPM 2.0, the ACPI table ("TPM2") does not contain these fields anymore. The recommended method is now to call the