Skip to content

tpm: Detach page allocation from tpm_buf

Jarkko Sakkinen linux-integrity lkml 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 13 repliesIn review
  2. v2 posting 2/21 patch 1 replySuperseded
  3. v2 posting 1/21 patch 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v11 patch3 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2tpm: Use GFP_KERNEL for allocating struct tpm_bufdrivers/char/tpm/tpm.h+1 -17 replies
2/2tpm: Detach page allocation from tpm_bufdrivers/char/tpm/tpm-sysfs.c drivers/char/tpm/tpm.h drivers/char/tpm/tpm1-cmd.c +3 more+333 -1936 replies

Reviews trailers per patch

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

PatchJerry SnitselaarJarkko Sakkinen
1/2R-b R-b
2/2

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/2] tpm: Detach page allocation from tpm_buf

As has been seen recently, binding the buffer allocation and tpm_buf together is sometimes far from optimal. The buffer might come from the caller namely when tpm_send() is used by another subsystem. In addition we can stability in call sites w/o rollback (e.g. power events)>

Take allocation out of the tpm_buf framework and make it purely a wrapper for the data buffer.

Cc Mimi Zohar <[email protected]>
Cc Jerry Snitselaar <[email protected]>
Cc James Bottomley <[email protected]>
Cc Sumit Garg <[email protected]>
Cc Stefan Berger <[email protected]>

Jarkko Sakkinen (2):
tpm: Use GFP_KERNEL for allocating struct tpm_buf
tpm: Detach page allocation from tpm_buf

 drivers/char/tpm/tpm-sysfs.c      |  19 ++-
 drivers/char/tpm/tpm.h            |  40 ++---
 drivers/char/tpm/tpm1-cmd.c       | 114 +++++++++----
 drivers/char/tpm/tpm2-cmd.c       | 265 +++++++++++++++++++-----------
 drivers/char/tpm/tpm2-space.c     |  64 +++++---
 drivers/char/tpm/tpm_vtpm_proxy.c |  24 +--
 6 files changed, 333 insertions(+), 193 deletions(-)
Signature · 1 line
2.20.1