mbox series

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

Message ID 20210128235621.127925-1-jarkko@kernel.org (mailing list archive)
Headers show
Series KEYS, trusted: a bunch of bug fixes | expand

Message

Jarkko Sakkinen Jan. 28, 2021, 11:56 p.m. UTC
From: Jarkko Sakkinen <jarkko@kernel.org>

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/20201013023927.GA71954@linux.intel.com/

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/202010110927.zsxMpek2-lkp@intel.com/

v2:
* Fix a kernel test bot warning.
  https://lore.kernel.org/linux-integrity/202010051152.9kxy43LO-lkp@intel.com/

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(-)