-
Notifications
You must be signed in to change notification settings - Fork 98
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
[BUG]: "I/O ctl failed" in sgx-detect #565
Comments
I have the same problem. It is specifically not #526. Also I can easily run the SampleEnclave from the SGX-SDK. Any updates on this? ReproducibilityAlways Environment
|
Can you please post the output of running the program with |
|
Is the problem just with |
I think the problem is in Instead, in |
I get the same error when I follow the lines from the readme: # Install EDP components
rustup target add x86_64-fortanix-unknown-sgx --toolchain nightly
cargo install fortanix-sgx-tools sgxs-tools
echo >> ~/.cargo/config -e '[target.x86_64-fortanix-unknown-sgx]\nrunner = "ftxsgx-runner-cargo"'
# Run your enclave!
cargo new --bin hello-world
cd hello-world
cargo run --target x86_64-fortanix-unknown-sgx the last command yields:
Edit:
|
It doesn't really look like ecreate fails in the second log. Any other ideas? |
From the error message in the second log, clearly ECREATE fails. To see it in strace, you need to run with |
Ran with
I don't know, what that |
@raoulstrackx - didn't we meet in Switzerland, last year? On Pascal's workshop at CSF? |
Yes I was there :) |
Describe the bug:
sgx-detect
reports the following error:Running the test on the most recent commit of
sgxs-loaders
also produces similar results:Upon trying to debug the loader, I found that the error
Create(Io(Os { code: 5, kind: Uncategorized, message: "Input/output error" }))
originated from this specific linehttps://github.com/fortanix/rust-sgx/blob/e2f677b28e2a934bc3b3d20cc201962f0bf556b3/intel-sgx/sgxs-loaders/src/isgx/mod.rs#L202C1-L202C70
To Reproduce:
See above.
Expected behavior:
ECREATE is expected to be successful in running an application.
Reproducibility:
Environment:
Severity:
Related Issue
This feels similar to this issue #526 but updating the kernel didn't fix it.
Additional context:
I don't have any issues running sample applications in SGX with Gramine or the Intel SGX SDK, which suggests that the SGX kernel device is working properly.
The text was updated successfully, but these errors were encountered: