TPM2 Problem in 6.2.0 kernel

Bug #2046434 reported by Артём Александрович Максимцев
74
This bug affects 13 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

after updating to kernel 6.2.0-39 i`ve got a problem with TPM on variuos notebooks or desktops. I`ve got this error
sudo dmesg |grep tpm
[ 0.359797] tpm_tis NTC0702:00: 2.0 TPM (device-id 0xFC, rev-id 1)
[ 0.372552] tpm tpm0: [Firmware Bug]: TPM interrupt not working, polling instead
I havent this problem on previuos kernael

Tags: bot-comment
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Libera.chat.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/2046434/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
Revision history for this message
Kari Tiirikainen (karitiirikainen) wrote :

I'm also seeing TPM2.0 issue with kernel 6.2.0-39, 6.2.0-37 works fine.

User@zenbookneo:~$ sudo tpm2_nvread 0x1500016

ERROR:tcti:src/tss2-tcti/tcti-device.c:452:Tss2_Tcti_Device_Init() Failed to open specified TCTI device file /dev/tpmrm0: No such file or directory

ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: libtss2-tcti-device.so.0

ERROR:tcti:src/tss2-tcti/tcti-device.c:452:Tss2_Tcti_Device_Init() Failed to open specified TCTI device file /dev/tpm0: No such file or directory

ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: libtss2-tcti-device.so.0

WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 2321: errno 111: Connection refused

ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket

ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: libtss2-tcti-swtpm.so.0

WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 2321: errno 111: Connection refused

ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: libtss2-tcti-mssim.so.0

ERROR:tcti:src/tss2-tcti/tctildr-dl.c:254:tctildr_get_default() No standard TCTI could be loaded

ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI

ERROR: Could not load tcti, got: "(null)"

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubuntu:
status: New → Confirmed
Revision history for this message
Bernd (badsmoke) wrote (last edit ):

unfortunately i also have to confirm the problem, we have several headless computers in the field that we cannot restart without deleting the kernel first.

Otherwise the automatic decryption will not work.

These are computers with Intel CPUs.

i estimate the problem to be very big, several devices are affected

Revision history for this message
Bernd (badsmoke) wrote :

there seems to be a fix in the kernel with this commit

https://github.com/torvalds/linux/commit/8f7f35e5aa6f2182eabcfa3abef4d898a48e9aa8

Paul White (paulw2u)
affects: ubuntu → linux (Ubuntu)
Revision history for this message
renke (renkeb) wrote :

The error message I get is slightly different:

"
tpm_crb: probe of MSFT0101:00 failed with error 378
"

As https://bugs.launchpad.net/bugs/2047692 was marked as duplicate of this ticket I'll add my original comment here, too - sorry if this breaks launchpad's rules.

6.2.0-39.40~22.04.1 includes upstream stable patchset 2023-10-10 (https://launchpad.net/bugs/2038969) with the TPM changes 'Disable RNG for all AMD fTPMs' and 'Add a helper for checking hwrng enabled'.

This causes on some Intel devices that TPM does not work (in my case a Gigabyte Brix GB-BSi5-1135G7).

Upstream discussed this issue in https://bugzilla.kernel.org/show_bug.cgi?id=217804 and a fix was found: https://github.com/torvalds/linux/commit/8f7f35e5aa6f2182eabcfa3abef4d898a48e9aa8 (already linked by ~badsmoke in an earlier comment)

Revision history for this message
Peter Treman (ptrema) wrote :

It seems to be fixed in the new kernal 6.5.0-14-generic.

Revision history for this message
Kari Tiirikainen (karitiirikainen) wrote :

I can confirm it is fixed.

User@zenbookneo:~$ uname -a
Linux zenbookneo 6.5.0-14-generic #14~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Nov 20 18:15:30 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

User@zenbookneo:~$ sudo tpm2_nvread 0x1500016
WARN: Reading full size of the NV index
*redacted*
User@zenbookneo:~$

Changed in linux (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.