TrouSerS failing with the below error on the 6.8 kernel. It works when switched to 5.15 on the same machine.
tcsd[7945]: TCSD TDDL[7945]: TrouSerS ERROR: write to device /dev/tpm0 failed: Timer expired
trousers[7838]: ...fail!
tcsd[7945]: TCSD TCS[7945]: TrouSerS ERROR: TCS GetCapability failed with result = 0x1087
systemd[1]: trousers.service: Control process exited, code=exited, status=135/n/a
systemd[1]: trousers.service: Failed with result 'exit-code'.
systemd[1]: Failed to start LSB: starts tcsd.
System details
Kernel: 6.8.0-49-generic
Version: Ubuntu 22.04.5 LTS
TPM Chip Version: 1.2.66.1
TPM Vendor: ATML
Logs
$ sudo systemctl status trousers
× trousers.service - LSB: starts tcsd
Loaded: loaded (/etc/init.d/trousers; generated)
Active: failed (Result: exit-code) since Wed 2024-11-20 10:08:46 UTC; 32min ago
Docs: man:systemd-sysv-generator(8)
Process: 7838 ExecStart=/etc/init.d/trousers start (code=exited, status=135)
Nov 20 10:08:46 RC240WZP2337Z0FD systemd[1]: Starting LSB: starts tcsd...
Nov 20 10:08:46 RC240WZP2337Z0FD trousers[7838]: * Starting Trusted Computing daemon tcsd
Nov 20 10:08:46 RC240WZP2337Z0FD tcsd[7945]: TCSD TDDL[7945]: TrouSerS ioctl: (25) Inappropriate ioctl for device
Nov 20 10:08:46 RC240WZP2337Z0FD tcsd[7945]: TCSD TDDL[7945]: TrouSerS Falling back to Read/Write device support.
Nov 20 10:08:46 RC240WZP2337Z0FD tcsd[7945]: TCSD TDDL[7945]: TrouSerS ERROR: write to device /dev/tpm0 failed: Timer expired
Nov 20 10:08:46 RC240WZP2337Z0FD trousers[7838]: ...fail!
Nov 20 10:08:46 RC240WZP2337Z0FD tcsd[7945]: TCSD TCS[7945]: TrouSerS ERROR: TCS GetCapability failed with result = 0x1087
Nov 20 10:08:46 RC240WZP2337Z0FD systemd[1]: trousers.service: Control process exited, code=exited, status=135/n/a
Nov 20 10:08:46 RC240WZP2337Z0FD systemd[1]: trousers.service: Failed with result 'exit-code'.
Nov 20 10:08:46 RC240WZP2337Z0FD systemd[1]: Failed to start LSB: starts tcsd.
dmesg log related to TPM
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-6.8.0-49-generic root=/dev/mapper/root-os ro console=tty1 console=ttyS1,115200n8 netcfg/do_not_use_netplan=true scsi_mod.use_blk_mq=1 net.ifnames=0 biosdevname=0 nomodeset noplymouth processor.max_cstate=1 intel_idle.max_cstate=0 ipmi_watchdog.timeout=3600 ipmi_watchdog.nowayout=1 fsck.repair=yes sunrpc.svc_rpc_per_connection_limit=32 libata.allow_tpm=1 intel_pstate=active cpufreq.default_governor=performance crashkernel=1G,high
[ 1.002153] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-6.8.0-49-generic root=/dev/mapper/root-os ro console=tty1 console=ttyS1,115200n8 netcfg/do_not_use_netplan=true scsi_mod.use_blk_mq=1 net.ifnames=0 biosdevname=0 nomodeset noplymouth processor.max_cstate=1 intel_idle.max_cstate=0 ipmi_watchdog.timeout=3600 ipmi_watchdog.nowayout=1 fsck.repair=yes sunrpc.svc_rpc_per_connection_limit=32 libata.allow_tpm=1 intel_pstate=active cpufreq.default_governor=performance crashkernel=1G,high
[ 16.346678] tpm_tis 00:07: 1.2 TPM (device-id 0x3205, rev-id 80)
[ 16.388955] tpm tpm0: tpm_try_transmit: send(): error -62
[ 22.619661] tpm tpm0: tpm_try_transmit: send(): error -62
[ 32.859675] tpm tpm0: tpm_try_transmit: send(): error -62
$ sudo journalctl -xeu trousers.service
Nov 20 09:39:55 RC240WZP2337Z0FD systemd[1]: Starting LSB: starts tcsd...
░░ Subject: A start job for unit trousers.service has begun execution
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit trousers.service has begun execution.
░░
░░ The job identifier is 152.
Nov 20 09:39:55 RC240WZP2337Z0FD trousers[13637]: * Starting Trusted Computing daemon tcsd
Nov 20 09:39:55 RC240WZP2337Z0FD tcsd[13756]: TCSD TDDL[13756]: TrouSerS ioctl: (25) Inappropriate ioctl for device
Nov 20 09:39:55 RC240WZP2337Z0FD tcsd[13756]: TCSD TDDL[13756]: TrouSerS Falling back to Read/Write device support.
Nov 20 09:39:55 RC240WZP2337Z0FD tcsd[13756]: TCSD TDDL[13756]: TrouSerS ERROR: write to device /dev/tpm0 failed: Timer expired
Nov 20 09:39:55 RC240WZP2337Z0FD tcsd[13756]: TCSD TCS[13756]: TrouSerS ERROR: TCS GetCapability failed with result = 0x1087
Nov 20 09:39:55 RC240WZP2337Z0FD trousers[13637]: ...fail!
Nov 20 09:39:55 RC240WZP2337Z0FD systemd[1]: trousers.service: Control process exited, code=exited, status=135/n/a
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ An ExecStart= process belonging to unit trousers.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 135.
Nov 20 09:39:55 RC240WZP2337Z0FD systemd[1]: trousers.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ The unit trousers.service has entered the 'failed' state with result 'exit-code'.
Nov 20 09:39:55 RC240WZP2337Z0FD systemd[1]: Failed to start LSB: starts tcsd.
░░ Subject: A start job for unit trousers.service has failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit trousers.service has finished with a failure.
░░
░░ The job identifier is 152 and the job result is failed.
Could some help take a look into what the issue is?
It is not a trousers issue.. TPM module is having more read write hits in the latest kernel causing the crash... Trying to pin point the exact code causing this