Re: regression: kernel log "flooded" with tpm tpm0: A TPM error (2306) occurred attempting to create NULL primary

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2024-11-13 at 15:44 +0100, Christoph Anton Mitterer wrote:
> Hey.
> 
> Forwarding myself from:
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1087331
> 
> Since 6.11.7 (might have also happened with .6, which I've skipped,
> but
> wasn't the case at least in 6.11.5).
> 
> I get:
> Nov 11 17:50:20 heisenberg kernel: tpm tpm0: A TPM error (2306)
> occurred attempting to create NULL primary
> Nov 11 17:50:30 heisenberg kernel: tpm tpm0: A TPM error (2306)
> occurred attempting to create NULL primary
> Nov 11 17:50:41 heisenberg kernel: tpm tpm0: A TPM error (2306)
> occurred attempting to create NULL primary
> Nov 11 17:50:51 heisenberg kernel: tpm tpm0: A TPM error (2306)
> occurred attempting to create NULL primary
> Nov 11 17:51:01 heisenberg kernel: tpm tpm0: A TPM error (2306)
> occurred attempting to create NULL primary
> Nov 11 17:51:11 heisenberg kernel: tpm tpm0: A TPM error (2306)
> occurred attempting to create NULL primary

2306 is TPM_RC_OBJECT_MEMORY - out of memory for object contexts.  What
it's saying is that somewhere we're missing a context flush.  I'll take
a look.  Does this happen with the current upstream kernel?  It could
be a flush got lost as a result of a bad stable backport.

> It seems that this doesn't occur on a fresh boot, but only when I
> resume from hibernation:

That could be more significant, especially with this in the log:

> Nov 13 12:33:06 heisenberg kernel: tpm tpm0: NULL Seed name
> comparison failed
> Nov 13 12:33:16 heisenberg kernel: tpm tpm0: NULL Seed name
> comparison failed
> Nov 13 12:33:26 heisenberg kernel: tpm tpm0: NULL Seed name
> comparison failed

I think we might have to expect the NULL name to change on actual
hibernation because unlike suspend to ram it does power off the TPM.

However, the code that causes the above message was also in 6.10 ...
are you sure kernels 6.10 and beyond hibernate without producing this
message?

Regards,

James





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux Kernel]     [Linux Kernel Hardening]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux