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

Ubuntu 18.04, install of sgx_linux_x64_driver_1.35.bin silently fails #124

Closed
nrgifford opened this issue Aug 4, 2020 · 4 comments
Closed

Comments

@nrgifford
Copy link

Is installing the 1.35 SGX driver with Ubuntu 18.04 and Kernel 4.15 a supported configuration?

Ubuntu 18.04, Kernel 4.15
Intel SGX Driver 1.20 is installed.

When I attempt to install 1.35 SGX driver, the installation fails with no error message.
Intel SGX Driver 1.20 is still installed.
OE Sample application helloworld now fails.

./host/helloworld_host ./enclave/enclave.signed
2020-08-03T22:54:23.000000Z [(H)ERROR] tid(0x7f952ffeeb80) | enclave_create with ENCLAVE_TYPE_SGX1 type failed (err=0x1) (oe_result_t=OE_PLATFORM_ERROR) [/source/host/sgx/sgxload.c:oe_sgx_create_enclave:480]
2020-08-03T22:54:23.000000Z [(H)ERROR] tid(0x7f952ffeeb80) | :OE_PLATFORM_ERROR [/source/host/sgx/create.c:oe_sgx_build_enclave:812]
2020-08-03T22:54:23.000000Z [(H)ERROR] tid(0x7f952ffeeb80) | :OE_PLATFORM_ERROR [/source/host/sgx/create.c:oe_create_enclave:960]
oe_create_helloworld_enclave(): result=21 (OE_PLATFORM_ERROR)

Rebooting doesn't resolve the failure.

The issue is fixed after
sudo apt update
sudo apt upgrade

SGX driver is still at 1.20.

@haitaohuang
Copy link
Contributor

Not sure why it went silent. Is the regular Ubuntu image or cloud flavor (e.g. Azure flavor)?

4.15 kernel is supported. Did you try to uninstall old driver before installing new one?

@nrgifford
Copy link
Author

nrgifford commented Aug 5, 2020 via email

@haitaohuang
Copy link
Contributor

You need stop AESM before uninstalling driver. But uninstalling PSW usually does that. You might have something else using it.
Try use "lsof | grep sgx" to see if running process is using /dev/sgx*.

@nrgifford
Copy link
Author

nrgifford commented Aug 5, 2020 via email

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

No branches or pull requests

2 participants