Skip to content

tpm: robust stack allocations

Jarkko Sakkinen keyrings linux-integrity linux-security-module lkml 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v11 Latest3 patches 2 repliesIn review
  2. v104 patches 6 repliesSuperseded
  3. v91 patch 0 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v81 patch0 repliesSuperseded
v71 patch4 repliesSuperseded
v61 patch0 repliesSuperseded

Patches in v11 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3tpm: Make TPM buffer allocations more robustdrivers/char/tpm/tpm-buf.c drivers/char/tpm/tpm-dev-common.c drivers/char/tpm/tpm-dev.h +12 more+495 -5270 replies
2/3tpm: Use TPM_MIN_BUF_SIZE in driver commandsdrivers/char/tpm/tpm.h drivers/char/tpm/tpm1-cmd.c drivers/char/tpm/tpm2-cmd.c +1 more+42 -660 replies
3/3tpm orchestrate tpm_get_random() in the functiondrivers/char/tpm/tpm-interface.c drivers/char/tpm/tpm.h drivers/char/tpm/tpm1-cmd.c +2 more+90 -920 replies

Reviews trailers per patch

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

PatchStefan Berger
1/3R-b
2/3
3/3

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

Read the v11 thread

Cover letter [PATCH v11 0/3] tpm: robust stack allocations

1. These are previous changes to tpm_buf, which make stack allocations much more feasible than previously.
2. Migrate low-hanging fruit to use stack allocations.
3. Re-orchestrate tpm_get_random().

Jarkko Sakkinen (3):
tpm: Make TPM buffer allocations more robust
tpm: Use TPM_MIN_BUF_SIZE in driver commands tpm orchestrate tpm_get_random() in the function

 drivers/char/tpm/tpm-buf.c                | 139 +++++----
 drivers/char/tpm/tpm-dev-common.c         |   4 +-
 drivers/char/tpm/tpm-dev.h                |   2 +-
 drivers/char/tpm/tpm-interface.c          |  36 ++-
 drivers/char/tpm/tpm-sysfs.c              |  20 +-
 drivers/char/tpm/tpm.h                    |  16 +-
 drivers/char/tpm/tpm1-cmd.c               | 177 +++++------
 drivers/char/tpm/tpm2-cmd.c               | 349 +++++++++-------------
 drivers/char/tpm/tpm2-sessions.c          | 127 ++++----
 drivers/char/tpm/tpm2-space.c             |  44 ++-
 drivers/char/tpm/tpm_tis_i2c.c            |   4 +-
 drivers/char/tpm/tpm_vtpm_proxy.c         |  34 +--
 include/linux/tpm.h                       |  28 +-
 security/keys/trusted-keys/trusted_tpm1.c |  34 +--
 security/keys/trusted-keys/trusted_tpm2.c | 156 +++++-----
 15 files changed, 556 insertions(+), 614 deletions(-)
Signature · 1 line
2.39.5