[PATCH v3 8/9] KEYS: trusted: Factor out TPM2 blob loading

Jarkko Sakkinen jarkko at kernel.org
Wed Nov 25 20:14:32 UTC 2026


On Wed, Nov 25, 2026 at 09:03:46PM +0200, Jarkko Sakkinen wrote:
> On Wed, Nov 25, 2026 at 06:16:23PM +0000, sashiko-bot at kernel.org wrote:
> > [Severity: Low]
> > This isn't a bug, but the commit message only mentions factoring out
> > tpm2_key_decode(), tpm2_load_blob(), and tpm2_buf_append_key_auth(),
> > without explaining why this refactoring is needed (to prepare for
> > asymmetric key support in the following patch).  It also omits adding
> > payload->private and trusted_payload_free() in the core trusted keys code,
> > as well as the new public_len < 8 bounds check before reading pub + 4 in
> > tpm2_load_cmd().
> 
> I agree with this and his has higher severity than "low" because patch
> needs to be split as a consequence.

I.e.,  this is the split change.

Br, Jarkko


More information about the Linux-security-module-archive mailing list