Re: [PATCH v3 1/5] tpm2-sessions: Drop TPM2_NAME_SIZE
From: Jarkko Sakkinen
Date: Mon Nov 16 2026 - 04:53:28 EST
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@xxxxxxxxxxxxxxx # v7.3+
> > Fixes: 88c5a62c3af7 ("tpm: Move TPM common base definitions to the command header")
> > Signed-off-by: Jarkko Sakkinen <jarkko@xxxxxxxxxx>
>
> Reviewed-by: Jonathan McDowell <noodles@xxxxxxxx>
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