Skip to content

Detach TPM space code from tpm_transmit() flow

Jarkko Sakkinen linux-integrity linux-security-module lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6tpm: use tpm_buf in tpm_transmit_cmd() as the IO parameterdrivers/char/tpm/tpm-interface.c drivers/char/tpm/tpm-sysfs.c drivers/char/tpm/tpm.h +4 more+64 -800 replies
2/6tpm: clean up tpm_try_transmit() error handling flowdrivers/char/tpm/tpm-interface.c+47 -560 replies
3/6tpm: access command header through struct in tpm_try_transmit()drivers/char/tpm/tpm-interface.c+2 -20 replies
4/6tpm: move tpm_validate_commmand() to tpm2-space.cdrivers/char/tpm/tpm-interface.c drivers/char/tpm/tpm.h drivers/char/tpm/tpm2-space.c+68 -670 replies
5/6tpm: encapsulate tpm_dev_transmit()drivers/char/tpm/tpm-dev-common.c+18 -70 replies
6/6tpm: move TPM space code out of tpm_transmit()drivers/char/tpm/tpm-dev-common.c drivers/char/tpm/tpm-interface.c+28 -240 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/6] Detach TPM space code from tpm_transmit() flow

Make the changes that are needed to detach TPM space code from tpm_transmit() flow so that we do no longer need nested tpm_transmit() calls.

Jarkko Sakkinen (6):
tpm: use tpm_buf in tpm_transmit_cmd() as the IO parameter
tpm: clean up tpm_try_transmit() error handling flow
tpm: access command header through struct in tpm_try_transmit()
tpm: move tpm_validate_commmand() to tpm2-space.c
tpm: encapsulate tpm_dev_transmit()
tpm: move TPM space code out of tpm_transmit()

 drivers/char/tpm/tpm-dev-common.c |  50 ++++++-
 drivers/char/tpm/tpm-interface.c  | 231 +++++++++++-------------------
 drivers/char/tpm/tpm-sysfs.c      |   2 +-
 drivers/char/tpm/tpm.h            |  14 +-
 drivers/char/tpm/tpm1-cmd.c       |  26 +---
 drivers/char/tpm/tpm2-cmd.c       |  37 ++---
 drivers/char/tpm/tpm2-space.c     |  58 ++++++--
 drivers/char/tpm/tpm_vtpm_proxy.c |   3 +-
 8 files changed, 206 insertions(+), 215 deletions(-)
Signature · 1 line
2.19.1