linux
linux copied to clipboard
Timeout for the TPM2_SelfTest command is not correct
https://github.com/raspberrypi/linux/blob/7335f3c839417ab9fc40fb205249d415e8ed5aa3/drivers/char/tpm/tpm-interface.c#L142
From TCG PC Client Platform TPM Profile Specification for TPM 2.0 version 1.06 available since April 2025, the timeout duration for the SelfTest command is 3000ms. Current kernel version is still using TPM2_DURATION_LONG (2000) for the SelftTest command. This is not correct and make the driver not working with more recent TPM including new cryptographic features.
It shall be a specific time-out value for the SelfTest command.
See also #7053.