Skip to content

Wrong RT TCI update during update-reset #2775

@sunguk-bin-fad

Description

@sunguk-bin-fad
  • Caliptra Version : 1.x, 2.x latest

During Caliptra update-reset, it seems to hand over wrong value to the DPE(RT TCI)
For the tci_current, RT_FW_CURRENT_PCR must be assigned, but RT_FW_JOURNEY_PCR is being assigned.
Please check if this is intended.

Corresponding codes:
let latest_pcr = <[u8; 48]>::from(drivers.pcr_bank.read_pcr(RT_FW_JOURNEY_PCR));
dpe.contexts[root_idx].tci.tci_current = TciMeasurement(latest_pcr);
dpe.contexts[root_idx].tci.tci_cumulative = TciMeasurement(latest_pcr);

1.x:

let latest_pcr = <[u8; 48]>::from(drivers.pcr_bank.read_pcr(RT_FW_JOURNEY_PCR));
dpe.contexts[root_idx].tci.tci_current = TciMeasurement(latest_pcr);
dpe.contexts[root_idx].tci.tci_cumulative = TciMeasurement(latest_pcr);

2.x:

let latest_pcr = <[u8; 48]>::from(drivers.pcr_bank.read_pcr(RT_FW_JOURNEY_PCR));
dpe.contexts[root_idx].tci.tci_current = TciMeasurement(latest_pcr);
dpe.contexts[root_idx].tci.tci_cumulative = TciMeasurement(latest_pcr);

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions