Collected patches that still make sense from [1] and tweaked where needed. [1] https://lore.kernel.org/linux-integrity/[email protected]/#t
CHANGES ======= 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: [email protected] Cc: [email protected] Cc: [email protected] Cc: [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 (4): 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 drivers/char/tpm/tpm-sysfs.c | 2 +- drivers/char/tpm/tpm2-cmd.c | 9 +- drivers/char/tpm/tpm2-sessions.c | 124 +++++++--------------- include/linux/tpm.h | 18 ++-- security/keys/trusted-keys/trusted_tpm2.c | 83 +++++++-------- 5 files changed, 95 insertions(+), 141 deletions(-) -- 2.47.3
