boot: report missing GetActivePcrBanks() call in formware as UINT32_MAX PCR bank mask

Fixes: #39150
This commit is contained in:
Lennart Poettering
2025-11-14 22:22:39 +01:00
parent 7643e4a89c
commit b2b8fb8105
3 changed files with 36 additions and 20 deletions
+2 -2
View File
@@ -198,8 +198,8 @@ uint32_t tpm_get_active_pcr_banks(void) {
/* GetActivePcrBanks() was added only in version 1.1 of the spec */
if (version.Major < 1 || (version.Major == 1 && version.Minor < 1)) {
log_debug("TCG protocol too old for GetActivePcrBanks(), claiming no active banks.");
return 0;
log_debug("TCG protocol too old for GetActivePcrBanks(), returning wildcard bank information.");
return UINT32_MAX;
}
uint32_t active_pcr_banks = 0;