Skip to content

Commit c5eb9aa

Browse files
committed
verifier: bump MEASUREMENT_CACHE_VERSION to invalidate stale RTMR0
Cache entries written by an older verifier carry the pre-202505 RTMR[0] expectation. Without bumping the version, deploying the new kms picks up those stale entries and rejects 0.5.10 CVMs whose actual RTMR[0] now matches the new computation.
1 parent a304dd9 commit c5eb9aa

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

verifier/src/verification.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,10 @@ fn collect_rtmr_mismatch(
118118
}
119119
}
120120

121-
const MEASUREMENT_CACHE_VERSION: u32 = 1;
121+
// Bump whenever expected RTMR computation changes so stale entries get ignored.
122+
// v2: edk2-stable202505 OVMF RTMR[0] layout (added 4 events, reshaped BootOrder
123+
// and Boot0000); the legacy 13-event log no longer matches any in-field image.
124+
const MEASUREMENT_CACHE_VERSION: u32 = 2;
122125

123126
#[derive(Clone, Serialize, Deserialize)]
124127
struct CachedMeasurement {

0 commit comments

Comments
 (0)