Skip to content

Out of bound when creating per-algo measurement list interfaces #14

@robertosassu

Description

@robertosassu

Current patch: https://marc.info/?l=linux-integrity&m=176952677931446&w=2

If a TPM algorithm is not supported the PCR bank info is initialized with HASH_ALGO__LAST, which passed to hash_algo_name[] causes an out of bound.

Instead of skipping unknown TPM algorithm, create a measurement interface for it with name tpm_algo_.

Pending TODOs:

  • Improve the commit message
  • Make the file name in lower case

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions