TPM DEVICE DRIVER changes for v7.4-rc3
Subsystems (2)
Jarkko Sakkinen
maintainerThe following changes since commit b3dfbde62cf1981c4638939c159dfd087b7a72e9:
Merge tag 'linux_kselftest-fixes-7.4-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest (2026-11-09 16:39:05 -0800)
are available in the Git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd.git tags/tpm-v7.4-rc3
for you to fetch changes up to 03fcb358249dc715124b3616f814ea0ecc6ec36c:
tpm: acpi: Fix memory leak at tpm_read_log_acpi() error path (2026-11-10 14:52:19 +0200)
----------------------------------------------------------------
[GIT PULL] TPM DEVICE DRIVER changes for v7.4-rc3
Briefly described this PR tag contains the following bug fixes:
1. Add the missing check of the return value of crypto_kpp_set_secret() when creating an authenticated HMAC session.
2. Check the payload size of EVENT_TAG entries before reading them, in order to avoid out-of-bounds reads with a truncated TPM 1.x event log.
3. Flush the timeout work outside buffer_mutex in tpm_common_read(), as the work itself takes the same mutex, which can lead to a deadlock.
4. Fix a memory leak of the event log buffer in the error path of
tpm_read_log_acpi().
No other bigger story here except as I've put tpm2-sessions.c to my private "address the vector" TODO-list. It's something I'd really like to refurbish in near future as secure boot enabled hibernate will also depend on it (an upcoming feature).
----------------------------------------------------------------
Eric Biggers (1):
tpm: Check return value of crypto_kpp_set_secret()
Guanglei Zhu (1):
tpm: eventlog: check the payload size before reading tag events
Hyunjung Ko (1):
tpm: flush timeout work outside buffer_mutex to avoid deadlock
Takashi Iwai (1):
tpm: acpi: Fix memory leak at tpm_read_log_acpi() error path
drivers/char/tpm/eventlog/acpi.c | 4 +--- drivers/char/tpm/eventlog/tpm1.c | 7 +++++++ drivers/char/tpm/tpm-dev-common.c | 12 +++++++++++- drivers/char/tpm/tpm2-sessions.c | 4 +++- 4 files changed, 22 insertions(+), 5 deletions(-)
The pull request you sent on Thu, 12 Nov 2026 02:18:08 +0200:
The pull request you sent on Thu, 12 Nov 2026 02:18:08 +0200:
Quoted 1 line
git://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd.gittags/tpm-v7.4-rc3
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/ae7e0f32277099a25a1d7804b8cb2f6dd30ee2f3
Thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/prtracker.html