Skip to content

Unsorted tpm2-sessions improvements

Jarkko Sakkinen keyrings linux-integrity linux-security-module lkml sashiko-reviews stable 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest5 patches 3 repliesIn review
  2. v24 patches 3 repliesSuperseded
  3. v14 patches 0 repliesSuperseded

Changes in v3 from the cover letter

- Add "tpm-buf: Make tpm_buf_read*() fallible".

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5tpm2-sessions: Drop TPM2_NAME_SIZEdrivers/char/tpm/tpm-sysfs.c drivers/char/tpm/tpm2-sessions.c include/linux/tpm.h+3 -92 replies
2/5KEYS: trusted: Open code tpm2_buf_append_auth()security/keys/trusted-keys/trusted_tpm2.c+7 -330 replies
3/5KEYS: trusted: Remove dead branch from tpm2_unseal_cmdsecurity/keys/trusted-keys/trusted_tpm2.c+1 -90 replies
4/5tpm2-sessions: Re-orchestrate tpm2_read_public() usedrivers/char/tpm/tpm2-cmd.c drivers/char/tpm/tpm2-sessions.c include/linux/tpm.h +1 more+84 -900 replies
5/5tpm-buf: Make tpm_buf_read*() fallibledrivers/char/tpm/tpm-buf.c drivers/char/tpm/tpm2-sessions.c include/linux/tpm_buf.h +1 more+178 -821 reply

Reviews trailers per patch

3 of 5 patches have a Reviewed-by or Acked-by.

PatchJonathan McDowell
1/5R-b
2/5R-b
3/5R-b
4/5
5/5

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

Read the v3 thread

Cover letter [PATCH v3 0/5] Unsorted tpm2-sessions improvements

Collected patches that still make sense from [1] and tweaked where needed.

[1] https://lore.kernel.org/linux-integrity/[email protected]/#t

CHANGES
=======

v3:
- Add "tpm-buf: Make tpm_buf_read*() fallible".

v2:
- Based on Sashiko feedback I changed "offset += tpm_buf_read_u16()" into "rc = tpm_buf_read_u16(...)" and "offset += rc". I'm convinced that this was necessary but since it does not have a cost, at least this should mute Sashiko.

VERSIONS
========

v1: https://lore.kernel.org/linux-integrity/[email protected]/

Cc Alec Brown <[email protected]>
Cc "Daniel P. Smith" <[email protected]>
Cc David Howells <[email protected]>
Cc Eric Biggers <[email protected]>
Cc James Bottomley <[email protected]>
Cc James Morris <[email protected]>
Cc Jarkko Sakkinen <[email protected]>
Cc Jason Gunthorpe <[email protected]>
Cc Jonathan McDowell <[email protected]>
Cc Matthew Garrett <[email protected]>
Cc Mimi Zohar <[email protected]>
Cc Paul Moore <[email protected]>
Cc Peter Huewe <[email protected]>
Cc Roberto Sassu <[email protected]>
Cc Ross Philipson <[email protected]>
Cc "Serge E. Hallyn" <[email protected]>

Jarkko Sakkinen (5):
tpm2-sessions: Drop TPM2_NAME_SIZE
KEYS: trusted: Open code tpm2_buf_append_auth()
KEYS: trusted: Remove dead branch from tpm2_unseal_cmd
tpm2-sessions: Re-orchestrate tpm2_read_public() use
tpm-buf: Make tpm_buf_read*() fallible

 drivers/char/tpm/tpm-buf.c                |  56 ++--
 drivers/char/tpm/tpm-sysfs.c              |   2 +-
 drivers/char/tpm/tpm2-cmd.c               |   9 +-
 drivers/char/tpm/tpm2-sessions.c          | 306 +++++++++++++---------
 include/linux/tpm.h                       |  18 +-
 include/linux/tpm_buf.h                   |   6 +-
 security/keys/trusted-keys/trusted_tpm2.c |  93 +++----
 7 files changed, 270 insertions(+), 220 deletions(-)

--
2.47.3