Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reverse TCB fetch order #5704

Merged
merged 1 commit into from
May 27, 2024
Merged

Reverse TCB fetch order #5704

merged 1 commit into from
May 27, 2024

Conversation

jberci
Copy link
Contributor

@jberci jberci commented May 24, 2024

No description provided.

Copy link

netlify bot commented May 24, 2024

Deploy Preview for oasisprotocol-oasis-core canceled.

Name Link
🔨 Latest commit 09a2c65
🔍 Latest deploy log https://app.netlify.com/sites/oasisprotocol-oasis-core/deploys/6650df7ae11f9500084e2632

@@ -135,8 +137,8 @@ func (ep *teeStateEPID) update(
// Decode the AVR so we can do further checks.
avr, decErr := cmnIAS.UnsafeDecodeAVR(avrBundle.Body)
if decErr == nil && avr.TCBEvaluationDataNumber < quotePolicy.MinTCBEvaluationDataNumber {
Copy link
Member

Choose a reason for hiding this comment

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

This condition needs to be changed as early TCB updates will always have higher or equal TCBEvaluationDataNumber. Instead we should probably check that avr.ISVEnclaveQuoteStatus is not one of QuoteOK or QuoteSwHardeningNeeded and only in this case fall back to "without early updating".

@jberci jberci marked this pull request as ready for review May 24, 2024 15:24
go/runtime/host/sgx/epid.go Outdated Show resolved Hide resolved
Copy link

codecov bot commented May 24, 2024

Codecov Report

Attention: Patch coverage is 16.66667% with 5 lines in your changes are missing coverage. Please review.

Project coverage is 65.59%. Comparing base (6124eb5) to head (09a2c65).
Report is 1 commits behind head on master.

Files Patch % Lines
go/runtime/host/sgx/epid.go 0.00% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5704      +/-   ##
==========================================
+ Coverage   64.98%   65.59%   +0.61%     
==========================================
  Files         618      618              
  Lines       63185    63186       +1     
==========================================
+ Hits        41061    41449     +388     
+ Misses      17294    16905     -389     
- Partials     4830     4832       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

go/runtime/host/sgx/ecdsa.go Show resolved Hide resolved
go/runtime/host/sgx/epid.go Show resolved Hide resolved
go/runtime/host/sgx/epid.go Show resolved Hide resolved
@jberci jberci merged commit be002a0 into master May 27, 2024
6 of 7 checks passed
@jberci jberci deleted the jberci/feat/tcb-reorder branch May 27, 2024 13:34
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.

3 participants