Skip to content

Backport a bugfix to v0.10.3#563

Merged
stefanberger merged 2 commits intostable-0.10from
stable-0.10.next
Mar 5, 2026
Merged

Backport a bugfix to v0.10.3#563
stefanberger merged 2 commits intostable-0.10from
stable-0.10.next

Conversation

@stefanberger
Copy link
Copy Markdown
Owner

@stefanberger stefanberger commented Mar 5, 2026

Backport a bugfix related to ppList and auditCommand array sizes and state reading.

v0.9.x is not affected by this.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
…) (BUGFIX)

The current libtpms v0.10.2 does not accept a TPM 2 state that was written
with a more recent version of libtpms if the sizes of ppList and/or
auditCommands increased. Remove the asserts that trigger state reading
failures and limit array_size to the sizeof(data->ppList) and
sizeof(data->auditCommands) respectively . More recent versions of libtpms,
if they support more TPM 2 commands, will extend these arrays but those new
commands will not be usable by older versions of libtpms (via profile and
StateFormatLevel) and can therefore be ignored by truncating those arrays.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
@stefanberger stefanberger mentioned this pull request Mar 5, 2026
34 tasks
@stefanberger stefanberger merged commit 6bca029 into stable-0.10 Mar 5, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant