Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

Audit TF Trusted to remove unneeded exits and system calls #9

Open
justin1121 opened this issue Apr 24, 2019 · 0 comments
Open

Audit TF Trusted to remove unneeded exits and system calls #9

justin1121 opened this issue Apr 24, 2019 · 0 comments

Comments

@justin1121
Copy link
Member

Whenever exits (e.g. print statements) or other system calls happen it causes the SGX program to be slower than it needs to be. We can audit the code to make sure we remove all prints and other obvious system calls. To discover system calls that might be occurring that we're not aware of, inside TF Lite for example, we can use strace to investigate further. Here's a quick tutorial explaining how to use strace https://www.youtube.com/watch?v=EG0ihttnEJI.

Another route to take is to look deeper into sgx switchless code. This makes it so that CPU doesn't need to switch from enclave mode to unprotected mode when calling exits or system calls. Figuring out if Asylo supports this by default would be a good place to start. More information on switchless in SGX can be found here https://github.com/intel/linux-sgx/tree/master/SampleCode/Switchless and here https://github.com/intel/linux-sgx/tree/master/sdk/switchless.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant