build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/29563 )
Change subject: security/tpm: Fix TCPA log feature ......................................................................
Patch Set 38:
(12 comments)
https://review.coreboot.org/#/c/29563/38/src/include/memlayout.h File src/include/memlayout.h:
https://review.coreboot.org/#/c/29563/38/src/include/memlayout.h@167 PS38, Line 167: #define VBOOT2_TPM_LOG(addr, size) \ Macros with multiple statements should be enclosed in a do - while loop
https://review.coreboot.org/#/c/29563/38/src/include/memlayout.h@167 PS38, Line 167: #define VBOOT2_TPM_LOG(addr, size) \ macros should not use a trailing semicolon
https://review.coreboot.org/#/c/29563/38/src/security/tpm/tspi.h File src/security/tpm/tspi.h:
https://review.coreboot.org/#/c/29563/38/src/security/tpm/tspi.h@50 PS38, Line 50: uint32_t tpm_extend_pcr(int pcr, const char *digest_type, uint8_t *digest, size_t digest_len, line over 80 characters
https://review.coreboot.org/#/c/29563/38/src/security/tpm/tspi/log.c File src/security/tpm/tspi/log.c:
https://review.coreboot.org/#/c/29563/38/src/security/tpm/tspi/log.c@37 PS38, Line 37: size_t tcpa_log_len = sizeof(struct tcpa_table) + MAX_TCPA_LOG_ENTRIES * sizeof(struct tcpa_entry); line over 80 characters
https://review.coreboot.org/#/c/29563/38/src/security/tpm/tspi/log.c@43 PS38, Line 43: if (strncmp(TCPA_LOG_HEADER, (const char *)tclt->header, sizeof(tclt->header))) { line over 80 characters
https://review.coreboot.org/#/c/29563/38/src/security/tpm/tspi/log.c@44 PS38, Line 44: tclt->max_entries = MAX_PREMEM_TCPA_LOG_ENTRIES; line over 80 characters
https://review.coreboot.org/#/c/29563/38/src/security/tpm/tspi/log.c@46 PS38, Line 46: strncpy((char *)tclt->header, TCPA_LOG_HEADER, sizeof(tclt->header)); line over 80 characters
https://review.coreboot.org/#/c/29563/38/src/security/tpm/tspi/log.c@54 PS38, Line 54: strncpy((char *)tclt->header, TCPA_LOG_HEADER, sizeof(tclt->header)); line over 80 characters
https://review.coreboot.org/#/c/29563/38/src/security/tpm/tspi/log.c@59 PS38, Line 59: if (strncmp(TCPA_LOG_HEADER, (const char *)tclt->header, sizeof(tclt->header))) { line over 80 characters
https://review.coreboot.org/#/c/29563/38/src/security/tpm/tspi/log.c@62 PS38, Line 62: strncpy((char *)tclt->header, TCPA_LOG_HEADER, sizeof(tclt->header)); line over 80 characters
https://review.coreboot.org/#/c/29563/38/src/security/tpm/tspi/log.c@97 PS38, Line 97: void tcpa_log_add_table_entry(const char *name, const uint32_t pcr, const char *digest_type, line over 80 characters
https://review.coreboot.org/#/c/29563/38/src/security/vboot/secdata_tpm.c File src/security/vboot/secdata_tpm.c:
https://review.coreboot.org/#/c/29563/38/src/security/vboot/secdata_tpm.c@86 PS38, Line 86: return tpm_extend_pcr(pcr, "SHA256", buffer, size, TPM_PCR_GBB_HWID_NAME); line over 80 characters