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

Enable support for enclave-based time tracking by default #661

Open
wants to merge 2 commits into
base: raoul/rte-204-insecure_time_through_rdtscp
Choose a base branch
from

Conversation

raoulstrackx
Copy link
Contributor

SGXv2 platforms support calling the rdtscp instruction inside an enclave. PRs #659 and #660 added support to take advantage of this change and enable enclave to keep track of time without doing a usercall. This PR changes the default behavior on platforms that have SGXv2 support. This is a bit tricky as existing enclaves were not compiled with this in mind. When they do receive additional information from the enclave-runner that they don't expect, they will panic. This is addressed by printing a detailed error message with possible solutions.
As this code only makes sense for enclaves that were compiled with rdtscp support in mind, this should be merged at the same time support lands in the Rust compiler.

@raoulstrackx raoulstrackx force-pushed the raoul/rte-204-enable_rdtscp_in_enclaves_by_default branch from e4cffce to ffdd05d Compare November 22, 2024 14:59
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