Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Timeout for the TPM2_SelfTest command is not correct

Open Beginner friendly
#7,054 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
c

Research direction

Start at drivers/char/tpm/tpm-interface.c around line 142 and compare the TPM2_SelfTest timeout with the referenced TPM specification. Trace the existing TPM duration definitions and timeout selection, then verify that the SelfTest command uses the specification's duration and that relevant TPM driver checks still pass.

Written by the indexing model from the issue text.

Description

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.

Dominant language
C
Stars
13.2k
Forks
5.5k
Avg merge
2d 4h
Merged PRs (30d)
30

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from raspberrypi/linux

All issues in raspberrypi/linux

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.