All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] TPM fixes
@ 2021-01-16  1:22 Lino Sanfilippo
  2021-01-16  1:22 ` [PATCH 1/4] tpm: in case of error properly cleanup in tpmm_chip_alloc Lino Sanfilippo
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Lino Sanfilippo @ 2021-01-16  1:22 UTC (permalink / raw)
  To: peterhuewe, jarkko
  Cc: jgg, stefanb, linux-integrity, linux-kernel, LinoSanfilippo,
	p.rosenberger

This patch series fixes some flaws in the TPM code. Most importantly a
reference count issue (patch 2) and a possible NULL pointer access
(patch 3). Patch 1 fixes the error path in tpmm_chip_alloc() and is in
preparation to patch 2 which extends this function. Patch 4 introduces
a new function tpm_chip_free() which is used as a counterpart to
tpm_chip_alloc(). The main reason for this function is to hide the
internals of tpm_chip cleanup by means of multiple reference count
handling.

Lino Sanfilippo (4):
  tpm: in case of error properly cleanup in tpmm_chip_alloc
  tpm: fix reference counting for struct tpm_chip
  tpm: in tpm2_del_space check if ops pointer is still valid
  tpm: Provide a function tpm_chip_free() to free tpm chips

 drivers/char/tpm/tpm-chip.c       | 33 ++++++++++++++++++++++++++++++---
 drivers/char/tpm/tpm.h            |  1 +
 drivers/char/tpm/tpm2-space.c     |  2 +-
 drivers/char/tpm/tpm_ftpm_tee.c   |  4 ++--
 drivers/char/tpm/tpm_vtpm_proxy.c |  2 +-
 5 files changed, 35 insertions(+), 7 deletions(-)

-- 
2.7.4


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

end of thread, other threads:[~2021-01-27 15:21 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-16  1:22 [PATCH 0/4] TPM fixes Lino Sanfilippo
2021-01-16  1:22 ` [PATCH 1/4] tpm: in case of error properly cleanup in tpmm_chip_alloc Lino Sanfilippo
2021-01-17 18:08   ` Jarkko Sakkinen
2021-01-16  1:22 ` [PATCH 2/4] tpm: fix reference counting for struct tpm_chip Lino Sanfilippo
2021-01-17 18:11   ` Jarkko Sakkinen
2021-01-16  1:22 ` [PATCH 3/4] tpm: in tpm2_del_space check if ops pointer is still valid Lino Sanfilippo
2021-01-17 18:13   ` Jarkko Sakkinen
2021-01-24 16:47     ` Lino Sanfilippo
2021-01-26 15:29       ` Jarkko Sakkinen
2021-01-27 15:14         ` Lino Sanfilippo
2021-01-16  1:22 ` [PATCH 4/4] tpm: Provide a function tpm_chip_free() to free tpm chips Lino Sanfilippo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.