[GIT PULL] TPM DEVICE DRIVER updates for v5.17 (fixed)

From: Jarkko Sakkinen
Date: Mon Jan 10 2022 - 20:45:12 EST


Hi,

This is the same PR as eaerlier, expect the fixes tag has been corrected for
"tpm: fix potential NULL pointer access in tpm_del_char_device". The
earlier transcript follows after this sentence.

Other than bug fixes for TPM, includes a patch for asymmetric keys to allow
to look up and verify with self-signed certificates (keys without so called
Authority Key Identifier (AKID)) using a new "dn:" prefix in the query.

BR,
Jarkko

The following changes since commit e7c124bd04631973a3cc0df19ab881b56d8a2d50:

Merge tag 'selinux-pr-20211228' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/selinux (2021-12-28 13:33:06 -0800)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd.git/ tags/tpmdd-next-v5.17-fixed

for you to fetch changes up to d99a8af48a3de727173415ccb17f6b6ba60d5573:

lib: remove redundant assignment to variable ret (2022-01-09 00:18:54 +0200)

----------------------------------------------------------------
tpmdd updates for Linux v5.17

----------------------------------------------------------------
Andrew Zaborowski (1):
keys: X.509 public key issuer lookup without AKID

AngeloGioacchino Del Regno (1):
tpm: tpm_tis_spi_cr50: Add default RNG quality

Chen Jun (1):
tpm: add request_locality before write TPM_INT_ENABLE

Christophe Jaillet (1):
tpm_tis: Fix an error handling path in 'tpm_tis_core_init()'

Colin Ian King (1):
lib: remove redundant assignment to variable ret

Lino Sanfilippo (1):
tpm: fix potential NULL pointer access in tpm_del_char_device

Patrick Williams (1):
tpm: fix NPE on probe for missing device

Rob Barnes (1):
char: tpm: cr50: Set TPM_FIRMWARE_POWER_MANAGED based on device property

Sohaib Mohamed (1):
tpm/st33zp24: drop unneeded over-commenting

axelj (1):
tpm: Add Upgrade/Reduced mode support for TPM2 modules

crypto/asymmetric_keys/asymmetric_type.c | 57 ++++++++++----
crypto/asymmetric_keys/pkcs7_trust.c | 6 +-
crypto/asymmetric_keys/restrict.c | 48 +++++++-----
crypto/asymmetric_keys/x509_cert_parser.c | 10 +++
crypto/asymmetric_keys/x509_public_key.c | 10 +++
drivers/char/tpm/st33zp24/st33zp24.c | 122 +++++-------------------------
drivers/char/tpm/tpm-chip.c | 37 ++++++---
drivers/char/tpm/tpm-sysfs.c | 3 +
drivers/char/tpm/tpm2-cmd.c | 6 ++
drivers/char/tpm/tpm_tis_core.c | 14 +++-
drivers/char/tpm/tpm_tis_i2c_cr50.c | 16 +++-
drivers/char/tpm/tpm_tis_spi_cr50.c | 20 ++++-
include/crypto/public_key.h | 2 +-
include/keys/asymmetric-type.h | 3 +-
include/linux/tpm.h | 10 +++
lib/asn1_encoder.c | 2 -
16 files changed, 205 insertions(+), 161 deletions(-)