lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <aX_Xz3ERMEb7GwK8@kernel.org>
Date: Mon, 2 Feb 2026 00:46:39 +0200
From: Jarkko Sakkinen <jarkko@...nel.org>
To: "Daniel P. Smith" <dpsmith@...rtussolutions.com>
Cc: Ross Philipson <ross.philipson@...cle.com>,
	linux-kernel@...r.kernel.org, x86@...nel.org,
	linux-integrity@...r.kernel.org, linux-doc@...r.kernel.org,
	linux-crypto@...r.kernel.org, kexec@...ts.infradead.org,
	linux-efi@...r.kernel.org, iommu@...ts.linux.dev,
	tglx@...utronix.de, mingo@...hat.com, bp@...en8.de, hpa@...or.com,
	dave.hansen@...ux.intel.com, ardb@...nel.org, mjg59@...f.ucam.org,
	James.Bottomley@...senpartnership.com, peterhuewe@....de,
	jgg@...pe.ca, luto@...capital.net, nivedita@...m.mit.edu,
	herbert@...dor.apana.org.au, davem@...emloft.net, corbet@....net,
	ebiederm@...ssion.com, dwmw2@...radead.org,
	baolu.lu@...ux.intel.com, kanth.ghatraju@...cle.com,
	andrew.cooper3@...rix.com, trenchboot-devel@...glegroups.com
Subject: Re: [PATCH v15 01/28] tpm: Initial step to reorganize TPM public
 headers

On Sun, Feb 01, 2026 at 11:20:20AM -0500, Daniel P. Smith wrote:
> On 1/19/26 18:40, Jarkko Sakkinen wrote:
> > On Mon, Dec 15, 2025 at 03:32:49PM -0800, Ross Philipson wrote:
> > > Replace the existing public header tpm_command.h with the first two
> > > new public headers tpm1.h and tpm_common.h. In addition, related
> > > definitions in tpm1_cmd.c were moved to the new tpm1.h.
> > > 
> > > Signed-off-by: Daniel P. Smith <dpsmith@...rtussolutions.com>
> > > Signed-off-by: Ross Philipson <ross.philipson@...cle.com>
> > > ---
> > >   drivers/char/tpm/tpm-buf.c                |  3 +-
> > >   drivers/char/tpm/tpm1-cmd.c               | 13 +-----
> > >   include/keys/trusted_tpm.h                |  1 -
> > >   include/linux/tpm.h                       |  3 ++
> > >   include/linux/tpm1.h                      | 55 +++++++++++++++++++++++
> > >   include/linux/tpm_command.h               | 30 -------------
> > 
> > Removing tpm_command.h causes unnecessary noise.
> > 
> > It would be better to retain tpm_command.h, and simply supplement
> > it with TPM2 constants.
> > 
> > Also, what is the reason to not have both TPM1 and TPM2 in tpm.h?
> > 
> > To put the question in other words: is there something in tpm.h that
> > would be incompatible with early boot code?
> > 
> > I'd rather tweak that than have more files...
> 
> Every #include in tpm.h will break in the early boot code. I don't see any
> way to avoid having one header that is the device driver header that
> integrates with mainline features and at least one header that holds the
> general TPM definitions.
> 
> We will move everything that was broken out into tpm_command.h, making it
> the header with the general definitions. I would raise the question of
> whether tpm_command.h would be the best name of the file after definition
> reloactions

tpm_command.h conforms with lowest common denominator in the sense that
it in its current state it is compatible with early boot code.

I'd consolidate TPM1 and TPM2 definitions that can be shared to that
header. I guess rename is fine as long as protocol definitions are
not scattered to two headers.

BR, Jarkko

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ