Skip to content

libstub,tpm: fix small bugs and improve error reporting

Gregory Price linux-efi lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 4 repliesIn review
  2. v16 patches 16 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4tpm: fix signed/unsigned bug when checking event logsdrivers/firmware/efi/tpm.c+9 -81 reply
2/4tpm: do not ignore memblock_reserve return valuedrivers/firmware/efi/tpm.c+6 -12 replies
3/4tpm: fix unsigned/signed mismatch errors related to __calc_tpm2_event_sizedrivers/firmware/efi/libstub/tpm.c drivers/firmware/efi/tpm.c include/linux/tpm_eventlog.h+5 -50 replies
4/4libstub,tpm: do not ignore failure case when reading final event logdrivers/firmware/efi/libstub/tpm.c+3 -00 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchIlias Apalodimas
1/4R-b
2/4
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/4] libstub,tpm: fix small bugs and improve error reporting

The efi/tpm code has a number of small signed/unsigned bugs and inaccuracies are prone to cause further bugs in a difficult to debug manner. For example, there is a signed/unsigned mismatch in efi/tpm.c that can lead to calling memblock_reserve on a range with an effectively negative length.

Additionally, there are silently ignored error conditions may result in undefined behavior. Address these.

Gregory Price (4):
tpm: fix signed/unsigned bug when checking event logs
tpm: do not ignore memblock_reserve return value
tpm: fix unsigned/signed mismatch errors related to

    __calc_tpm2_event_size

libstub,tpm: do not ignore failure case when reading final event log

 drivers/firmware/efi/libstub/tpm.c |  9 ++++++---
 drivers/firmware/efi/tpm.c         | 26 ++++++++++++++++----------
 include/linux/tpm_eventlog.h       |  2 +-
 3 files changed, 23 insertions(+), 14 deletions(-)
Signature · 1 line
2.43.0