linux icon indicating copy to clipboard operation
linux copied to clipboard

Timeout for the TPM2_SelfTest command is not correct

Open fredjsq opened this issue 4 months ago • 1 comments

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.

fredjsq avatar Sep 18 '25 08:09 fredjsq

See also #7053.

pelwell avatar Sep 18 '25 08:09 pelwell