linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4] TPM fixes
@ 2021-02-16  0:30 Lino Sanfilippo
  2021-02-16  0:31 ` [PATCH v4] tpm: fix reference counting for struct tpm_chip Lino Sanfilippo
  0 siblings, 1 reply; 16+ messages in thread
From: Lino Sanfilippo @ 2021-02-16  0:30 UTC (permalink / raw)
  To: peterhuewe, jarkko, jgg
  Cc: stefanb, James.Bottomley, linux-integrity, linux-kernel, LinoSanfilippo

This patch fixes a reference count issue in the TPM core code. It is based
on a suggestion and basic implementation made by Jason Gunthorpe.

Changes in v4:
- drop patch 2 (tpm: in tpm2_del_space check if ops pointer is still
valid) since James Bottomley offered a cleaner solution for this
- reimplement patch 1 to setup the /dev/tpmrm device only in case of TPM2
and avoid the installation of another action handler
- add proper tag for stable

Changes in v3:
- drop the patch that introduces the new function tpm_chip_free()
- rework the commit messages for the patches (style, typos, etc.)
- add fixes tag to patch 2
- add James Bottomley to cc list
- add stable mailing list to cc list

Changes in v2:
- drop the patch that erroneously cleaned up after failed installation of
  an action handler in tpmm_chip_alloc() (pointed out by Jarkko Sakkinen)
- make the commit message for patch 1 more detailed
- add fixes tags and kernel logs

Lino Sanfilippo (1):
  tpm: fix reference counting for struct tpm_chip

 drivers/char/tpm/tpm-chip.c | 80 ++++++++++++++++++++++++++++-----------------
 1 file changed, 50 insertions(+), 30 deletions(-)

-- 
2.7.4


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

end of thread, other threads:[~2021-02-19  7:08 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-16  0:30 [PATCH v4] TPM fixes Lino Sanfilippo
2021-02-16  0:31 ` [PATCH v4] tpm: fix reference counting for struct tpm_chip Lino Sanfilippo
2021-02-16  8:27   ` Jarkko Sakkinen
2021-02-16 12:53   ` Jason Gunthorpe
2021-02-16 16:04     ` Jarkko Sakkinen
2021-02-16 16:09       ` Jarkko Sakkinen
2021-02-16 16:11         ` Jarkko Sakkinen
2021-02-16 19:08           ` Lino Sanfilippo
2021-02-16 16:31       ` David Laight
2021-02-17 22:14         ` Jarkko Sakkinen
2021-02-18  1:27           ` Jason Gunthorpe
2021-02-19  7:07             ` Jarkko Sakkinen
2021-02-16 19:15       ` Lino Sanfilippo
2021-02-16 19:04     ` Lino Sanfilippo
2021-02-16 16:52   ` Stefan Berger
2021-02-16 19:17     ` Lino Sanfilippo

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).