coreboot/src/security/tpm/tspi
Jeremy Soller f501128536 security/tpm: Respect CBMEM TPM log size
The preram TPM log was being copied to the end of the CBMEM TPM log no
matter what the size of the CBMEM TPM log was. Eventually, it would
overwrite anything else in CBMEM beyond the TPM log.

This can currently be reproduced by enabling TPM_MEASURED_BOOT and
performing multiple S3 suspends, as coreboot is incorrectly performing
TPM measurements on S3 resume.

Change-Id: If76299e68eb5ed2ed20c947be35cea46c51fcdec
Signed-off-by: Jeremy Soller <jeremy@system76.com>
Signed-off-by: Tim Crawford <tcrawford@system76.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/73297
Reviewed-by: Martin L Roth <gaumless@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2023-07-18 14:58:34 +00:00
..
crtm.c security/tpm: make usage of PCRs configurable via Kconfig 2023-04-10 04:01:08 +00:00
crtm.h security/tpm: make usage of PCRs configurable via Kconfig 2023-04-10 04:01:08 +00:00
log-tpm1.c security/tpm: Respect CBMEM TPM log size 2023-07-18 14:58:34 +00:00
log-tpm2.c security/tpm: Respect CBMEM TPM log size 2023-07-18 14:58:34 +00:00
log.c security/tpm: Respect CBMEM TPM log size 2023-07-18 14:58:34 +00:00
logs.h security/tpm: add TPM log format as per 2.0 spec 2023-03-04 02:01:48 +00:00
tspi.c commonlib/console/post_code.h: Change post code prefix to POSTCODE 2023-06-23 15:06:04 +00:00