[PATCH v3 1/5] tpm2-sessions: Drop TPM2_NAME_SIZE
Jarkko Sakkinen
jarkko at kernel.org
Mon Nov 16 09:53:19 UTC 2026
On Mon, Nov 16, 2026 at 09:43:40AM +0000, Jonathan McDowell wrote:
> On Mon, Nov 16, 2026 at 02:51:00AM +0200, Jarkko Sakkinen wrote:
> > TPM2_NAME_SIZE was left to include/linux/tpm.h when the base definitions
> > were consolidated. Switch struct tpm2_auth to TPM2_MAX_NAME_SIZE and
> > convert TPM2_NAME_SIZE users to TPM2_NULL_NAME_SIZE, removing the
> > redundant TPM2_NAME_SIZE definition.
> >
> > Cc: stable at vger.kernel.org # v7.3+
> > Fixes: 88c5a62c3af7 ("tpm: Move TPM common base definitions to the command header")
> > Signed-off-by: Jarkko Sakkinen <jarkko at kernel.org>
>
> Reviewed-by: Jonathan McDowell <noodles at meta.com>
Thanks. I was not exactly sure (since time has passed) whether this
should have had your R-by so I just in case dropped it :-)
Cleaning up the dirt from tpm2-sessions suddenly became more relevant
as Matthew sent "hibernate for lockdown" patches; so I thought that
these patches would be a low-barrier kickoff towards that direction.
Br, Jarkko
More information about the Linux-security-module-archive
mailing list