Skip to content

wiki: correct PCR 16 history - #249

Open
tlaurion wants to merge 1 commit into
linuxboot:masterfrom
tlaurion:deepwiki-docs-iteration-2
Open

wiki: correct PCR 16 history#249
tlaurion wants to merge 1 commit into
linuxboot:masterfrom
tlaurion:deepwiki-docs-iteration-2

Conversation

@tlaurion

@tlaurion tlaurion commented Sep 7, 2026

Copy link
Copy Markdown
Collaborator

Summary

Extends doc/tpm.md fix (linuxboot/heads#2203) to the wiki.

Changes

PCR 16 description updated from "Used for TPM futurecalc of LUKS header" to accurate history:

  • Historically scratch PCR for calcfuturepcr on TPM1 (TPM2 used PCR 23)
  • calcfuturepcr was later rewritten to replay from cbmem -L event log, eliminating the need for any scratch PCR
  • PCR 16 is now unused in current code

Evidence

  • 68cc9d0b132 (2017): original tpm calcfuturepcr -ix 16 call in kexec-seal-key.sh
  • 80c4a7ea6ea: TPM1 branch used PCR 16, TPM2 used PCR 23
  • d1a18f1f83b: tpmr.sh introduced, calcfuturepcr rewritten to replay_pcr using cbmem -L
  • Current tpmr.sh:208-230: replay_pcr rejects pcr >= 8, no physical PCR touched

Related

Copilot AI lite review requested due to automatic review settings September 7, 2026 19:58

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The change is documentation-only and corrects an inaccurate description; the remaining feedback is a minor consistency tweak (PCR label/“TPM 1/2” spacing).

Pull request overview

Updates the Heads wiki TPM PCR documentation to correct the historical description of PCR 16 and align it with how calcfuturepcr evolved over time.

Changes:

  • Replaces the outdated PCR 16 description (“Used for TPM futurecalc of LUKS header…”) with a short history explaining its former scratch usage and current non-use.
  • Clarifies the TPM 1 vs TPM 2 PCR choice used historically for calcfuturepcr, and notes the later shift to replaying from cbmem -L.
File summaries
File Description
About/Keys.md Corrects PCR 16 documentation to reflect historical usage and current behavior (unused).
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread About/Keys.md Outdated
Comment on lines +196 to +198
(16): Not measured or read by Heads. Historically used as scratch PCR by
`calcfuturepcr` on TPM1 (TPM2 used PCR 23); now unused — `calcfuturepcr`
was rewritten to replay from the `cbmem -L` event log instead.
@tlaurion
tlaurion force-pushed the deepwiki-docs-iteration-2 branch 2 times, most recently from e843917 to e99fc38 Compare September 7, 2026 23:59
@tlaurion tlaurion changed the title wiki: correct PCR 16 history (iteration 2 of N) wiki: correct PCR 16 history Sep 8, 2026
PCR 16 was historically scratch space for calcfuturepcr on TPM1
(PCR 23 on TPM2). calcfuturepcr was later rewritten to replay
from cbmem -L event log, eliminating the need for any scratch PCR.
PCR 16 is now unused.

Extends doc/tpm.md fix (linuxboot/heads#2203).

Signed-off-by: Thierry Laurion <insurgo@riseup.net>
@tlaurion
tlaurion force-pushed the deepwiki-docs-iteration-2 branch from e99fc38 to eb25e02 Compare September 8, 2026 02:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants