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

Letting enclaves keep track of time without usercalls #17

Open
wants to merge 1 commit into
base: dev-2024-11-21-snmalloc_and_insecure_time
Choose a base branch
from

Conversation

raoulstrackx
Copy link
Collaborator

SGXv2 platforms support calling the rdtscp instruction inside an enclave. This PR enables such support for newly build SGX enclaves.
This code depends on code changes in the rust-sgx repository:

  • PR 659 adds a crate to keep track of time
  • PR 660 adds support for the insecure-time crate in various tools
  • PR661 enables support in the enclave-runner by default. This will affect enclaves build with older compilers, but running with a new enclave-runner as well.

Once code is reviewed here, I'll try to upstream it.

@raoulstrackx raoulstrackx force-pushed the raoul/rte-204-nightly-2024-11-21-insecure_time_through_rdtscp branch from d7f36ca to 6510427 Compare November 22, 2024 15:00
Copy link

@Taowyoo Taowyoo left a comment

Choose a reason for hiding this comment

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

I think we will need another PR after fortanix/rust-sgx#659 is merged and new versions of related crates are published.

@Taowyoo Taowyoo self-requested a review December 5, 2024 20:16
@raoulstrackx raoulstrackx force-pushed the raoul/rte-204-nightly-2024-11-21-insecure_time_through_rdtscp branch from 6510427 to 2940827 Compare December 13, 2024 15:05
'rustc-dep-of-std',
], public = true }
insecure-time = { version = "0.1", git = "https://github.com/fortanix/rust-sgx.git", branch = "master", default-features = false, features = ["rustc-dep-of-std"] }
Copy link

Choose a reason for hiding this comment

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

Suggest to update this finally after all rust-sgx side PRs are all merged and crate published

@raoulstrackx raoulstrackx changed the base branch from nightly-2024-11-21 to dev-2024-11-21-snmalloc_and_insecure_time December 14, 2024 12:51
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.

2 participants