Skip to content

tpm: timeouts revamp

Tomas Winkler linux-integrity linux-security-module lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 10 repliesIn review
  2. v16 patches 7 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5tpm: sort objects in the Makefiledrivers/char/tpm/Makefile+12 -30 replies
2/5tpm: factor out tpm 1.2 duration calculation to tpm1-cmd.cdrivers/char/tpm/Makefile drivers/char/tpm/st33zp24/st33zp24.c drivers/char/tpm/tpm-interface.c +5 more+321 -2910 replies
3/5tpm2: add longer timeouts for creation commands.drivers/char/tpm/tpm-interface.c drivers/char/tpm/tpm.h drivers/char/tpm/tpm2-cmd.c+26 -133 replies
4/5tpm2: add new tpm2 commands according to TCG 1.36drivers/char/tpm/tpm.h drivers/char/tpm/tpm2-cmd.c+93 -1440 replies
5/5tmp: factor out tpm_get_timeoutsdrivers/char/tpm/tpm-interface.c drivers/char/tpm/tpm.h drivers/char/tpm/tpm1-cmd.c +1 more+137 -1240 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH 0/5 V2] tpm: timeouts revamp

This series cleans up tpm timeouts setting and handling.

First motivation was to fix failures coming from too short timeouts for commands that creates keys.
Key generation may take significant time depending on the underlying hardware. Rather than increasing default timeout a new constant is added, to not stall too long on regular commands failures.

Second is to define timeouts for new tpm2 commands defined in TCG 1.36 spec.

Tomas Winkler (5):
tpm: sort objects in the Makefile
tpm: factor out tpm 1.2 duration calculation to tpm1-cmd.c
tpm2: add longer timeouts for creation commands.
tpm2: add new tpm2 commands according to TCG 1.36
tmp: factor out tpm_get_timeouts

V2: 1. Makefile go back tpm-y construct.
2. Add more info to longer timouts patch
3. Rebase other patches
4. Remove patch not connected to timouts from the series.

 drivers/char/tpm/Makefile            |  16 +-
 drivers/char/tpm/st33zp24/st33zp24.c |   2 +-
 drivers/char/tpm/tpm-interface.c     | 408 +---------------------------------
 drivers/char/tpm/tpm.h               |  74 ++++---
 drivers/char/tpm/tpm1-cmd.c          | 416 +++++++++++++++++++++++++++++++++++
 drivers/char/tpm/tpm2-cmd.c          | 220 ++++++++----------
 drivers/char/tpm/tpm_i2c_nuvoton.c   |  10 +-
 drivers/char/tpm/tpm_tis_core.c      |   2 +-
 drivers/char/tpm/xen-tpmfront.c      |   2 +-
 9 files changed, 582 insertions(+), 568 deletions(-)
 create mode 100644 drivers/char/tpm/tpm1-cmd.c
Signature · 6 lines
2.14.3

--
To unsubscribe from this list: send the line "unsubscribe linux-security-module" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html