Skip to content

fix(migtd): check event log capacity before RTMR extend - #1027

Open
haitaohuang wants to merge 1 commit into
intel:mainfrom
haitaohuang:fix/event-log-capacity-before-rtmr
Open

fix(migtd): check event log capacity before RTMR extend#1027
haitaohuang wants to merge 1 commit into
intel:mainfrom
haitaohuang:fix/event-log-capacity-before-rtmr

Conversation

@haitaohuang

Copy link
Copy Markdown
Contributor

Summary

Check that a complete tagged event record fits in the CCEL buffer before extending the corresponding RTMR.

RTMR extends are irreversible. Extending first and then discovering that the CCEL record cannot be stored leaves remote attestation with an RTMR value that cannot be reproduced from the event log. The new ordering rejects the write before changing the RTMR, preserving RTMR/CCEL consistency.

The scope is limited to the capacity-check ordering in event_log.rs and a regression test that proves capacity is evaluated before the RTMR path.

Validation

  • cargo fmt --check
  • cargo test -p migtd --lib event_log
  • Library build and test workflow
  • Full main image build matrix
  • Full Intel main AzCVMEmu integration matrix

Reject an event that cannot fit in the CCEL buffer before extending the
RTMR. This keeps the attested register consistent with its replayable
event log when capacity is exhausted.

Signed-off-by: Haitao Huang <haitaohuang@microsoft.com>
Assisted-by: GitHub Copilot CLI:GPT-5.6-Sol [migtd-review]
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.

1 participant