Skip to content

KEYS, trusted: a bunch of bug fixes

[email protected] linux-integrity stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v5 Latest3 patches 5 repliesIn review

Changes in v5 from the cover letter

* Call tpm_try_get_ops() and tpm_put_ops() inside tpm2_seal_trusted() and tpm2_unseal_trusted().
https://lore.kernel.org/linux-integrity/CAFA6WYO4HJThYHhBxbx0Tr97sF_JFvTBur9uTGSQTtyQaOKpig@mail.gmail.com/

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3KEYS: trusted: Fix incorrect handling of tpm_get_random()security/keys/trusted-keys/trusted_tpm1.c+17 -31 reply
2/3KEYS: trusted: Fix migratable=1 failingsecurity/keys/trusted-keys/trusted_tpm1.c+1 -10 replies
3/3KEYS: trusted: Reserve TPM for seal and unseal operationsdrivers/char/tpm/tpm.h include/linux/tpm.h security/keys/trusted-keys/trusted_tpm2.c+23 -104 replies

Reviews trailers per patch

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

PatchMimi Zohar
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 v5 thread

Cover letter [PATCH v5 0/3] KEYS, trusted: a bunch of bug fixes

From: Jarkko Sakkinen <[email protected]>

This patch set contains a bunch of disjoint bug fixes.

v5:
* Call tpm_try_get_ops() and tpm_put_ops() inside tpm2_seal_trusted() and tpm2_unseal_trusted().
https://lore.kernel.org/linux-integrity/CAFA6WYO4HJThYHhBxbx0Tr97sF_JFvTBur9uTGSQTtyQaOKpig@mail.gmail.com/

v4:
* Do not create stubs for tpm_transmit_cmd(), tpm_try_get_ops() and tpm_put_ops().
https://lore.kernel.org/linux-integrity/[email protected]/

v3:
* Reordered patches a bit, i.e. trivial fixes in the head and the least trivial in the tail.
<no xref>
* Added the missing "return -ENODEV;" to tpm_transmit_cmd(), when the kernel is compiled without TPM support.
https://lore.kernel.org/linux-integrity/[email protected]/

v2:
* Fix a kernel test bot warning.
https://lore.kernel.org/linux-integrity/[email protected]/

Jarkko Sakkinen (3):
KEYS: trusted: Fix incorrect handling of tpm_get_random()
KEYS: trusted: Fix migratable=1 failing
KEYS: trusted: Reserve TPM for seal and unseal operations

 drivers/char/tpm/tpm.h                    |  4 ----
 include/linux/tpm.h                       |  5 ++++-
 security/keys/trusted-keys/trusted_tpm1.c | 22 +++++++++++++++++----
 security/keys/trusted-keys/trusted_tpm2.c | 24 ++++++++++++++++++-----
 4 files changed, 41 insertions(+), 14 deletions(-)
Signature · 1 line
2.30.0