linux-security-module.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v11 0/3] tpm: robust stack allocations
@ 2025-09-23 17:07 Jarkko Sakkinen
  2025-09-23 17:07 ` [PATCH v11 1/3] tpm: Make TPM buffer allocations more robust Jarkko Sakkinen
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Jarkko Sakkinen @ 2025-09-23 17:07 UTC (permalink / raw)
  To: linux-integrity
  Cc: Stefano Garzarella, Jarkko Sakkinen, David Howells, Paul Moore,
	James Morris, Serge E. Hallyn, open list:KEYS/KEYRINGS,
	open list:SECURITY SUBSYSTEM, open list

1. These are previous changes to tpm_buf, which make stack allocations
   much more feasible than previously.
2. Migrate low-hanging fruit to use stack allocations.
3. Re-orchestrate tpm_get_random().

Jarkko Sakkinen (3):
  tpm: Make TPM buffer allocations more robust
  tpm: Use TPM_MIN_BUF_SIZE in driver commands
  tpm orchestrate tpm_get_random() in the function

 drivers/char/tpm/tpm-buf.c                | 139 +++++----
 drivers/char/tpm/tpm-dev-common.c         |   4 +-
 drivers/char/tpm/tpm-dev.h                |   2 +-
 drivers/char/tpm/tpm-interface.c          |  36 ++-
 drivers/char/tpm/tpm-sysfs.c              |  20 +-
 drivers/char/tpm/tpm.h                    |  16 +-
 drivers/char/tpm/tpm1-cmd.c               | 177 +++++------
 drivers/char/tpm/tpm2-cmd.c               | 349 +++++++++-------------
 drivers/char/tpm/tpm2-sessions.c          | 127 ++++----
 drivers/char/tpm/tpm2-space.c             |  44 ++-
 drivers/char/tpm/tpm_tis_i2c.c            |   4 +-
 drivers/char/tpm/tpm_vtpm_proxy.c         |  34 +--
 include/linux/tpm.h                       |  28 +-
 security/keys/trusted-keys/trusted_tpm1.c |  34 +--
 security/keys/trusted-keys/trusted_tpm2.c | 156 +++++-----
 15 files changed, 556 insertions(+), 614 deletions(-)

-- 
2.39.5


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-09-24  1:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-23 17:07 [PATCH v11 0/3] tpm: robust stack allocations Jarkko Sakkinen
2025-09-23 17:07 ` [PATCH v11 1/3] tpm: Make TPM buffer allocations more robust Jarkko Sakkinen
2025-09-23 17:07 ` [PATCH v11 2/3] tpm: Use TPM_MIN_BUF_SIZE in driver commands Jarkko Sakkinen
2025-09-23 17:07 ` [PATCH v11 3/3] tpm orchestrate tpm_get_random() in the function Jarkko Sakkinen
2025-09-24  1:31 ` [PATCH v11 0/3] tpm: robust stack allocations Jarkko Sakkinen
2025-09-24  1:37   ` Jarkko Sakkinen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).