Intel® Software Guard Extensions (Intel® SGX)
Discussion board focused on hardware-based isolation and memory encryption to provide extended code protection in solutions.

How to fix the error in Intel SGX for Linux

ryo_hamamoto
Principiante
3.854 Vistas

Currently, I'm executing the Intel SGX sample codes in the intel SGX SDK, but I cannot execute the app in the ubuntu 14.04.

My execution environment is as follows:
PC: DELL Latitude E7270
CPU: Intel Core-i7 6600-U
OS: Ubuntu 14.04
Intel SGX Driver, PSW, SDK version: 1.6

The sample code is compiled by Makefile(command line).
The compile option is "SGX_MODE=HW SGX_PRERELEASE=1"
When I execute the app. the error message is appered at the terminal as follows.

---

nec-user@necuser-Latitude-E7270:~/SGX/DRIVERS/SampleCode/SampleEnclave$ make SGX_MODE=HW SGX_PRERELEASE=1
GEN  =>  App/Enclave_u.c
CC   <=  App/Enclave_u.c
CXX  <=  App/App.cpp
CXX  <=  App/Edger8rSyntax/Arrays.cpp
CXX  <=  App/Edger8rSyntax/Functions.cpp
CXX  <=  App/Edger8rSyntax/Pointers.cpp
CXX  <=  App/Edger8rSyntax/Types.cpp
CXX  <=  App/TrustedLibrary/Libc.cpp
CXX  <=  App/TrustedLibrary/Libcxx.cpp
CXX  <=  App/TrustedLibrary/Thread.cpp
LINK =>  app
GEN  =>  Enclave/Enclave_t.c
CC   <=  Enclave/Enclave_t.c
CXX  <=  Enclave/Enclave.cpp
CXX  <=  Enclave/Edger8rSyntax/Arrays.cpp
CXX  <=  Enclave/Edger8rSyntax/Functions.cpp
CXX  <=  Enclave/Edger8rSyntax/Pointers.cpp
CXX  <=  Enclave/Edger8rSyntax/Types.cpp
CXX  <=  Enclave/TrustedLibrary/Libc.cpp
CXX  <=  Enclave/TrustedLibrary/Libcxx.cpp
CXX  <=  Enclave/TrustedLibrary/Thread.cpp
LINK =>  enclave.so
<EnclaveConfiguration>
    <ProdID>0</ProdID>
    <ISVSVN>0</ISVSVN>
    <StackMaxSize>0x40000</StackMaxSize>
    <HeapMaxSize>0x100000</HeapMaxSize>
    <TCSNum>10</TCSNum>
    <TCSPolicy>1</TCSPolicy>
    <DisableDebug>0</DisableDebug>
    <MiscSelect>0</MiscSelect>
    <MiscMask>0xFFFFFFFF</MiscMask>
</EnclaveConfiguration>
Succeed.
SIGN =>  enclave.signed.so

nec-user@necuser-Latitude-E7270:~/SGX/DRIVERS/SampleCode/SampleEnclave$ ./app
Please use the correct uRTS library from PSW package.
Error: Unexpected error occurred.
Enter a character before exit ...
---

Please explain how to execute the sample program using HW mode? (wrong something?)
I configured aesmd.conf in order to use the proxy.
Moreover, I can execute the sample code when the simulation mode is used.

Best regards,

 

 

 

 

0 kudos
1 Solución
Rodolfo_S_
Nuevo Colaborador III
3.854 Vistas

Hi, Ryo.

I believe your problem is similar to the one addressed here. You could refer to it, and see if this solves your problem.

Best regards,

Rodolfo

Ver la solución en mensaje original publicado

2 Respuestas
Rodolfo_S_
Nuevo Colaborador III
3.855 Vistas

Hi, Ryo.

I believe your problem is similar to the one addressed here. You could refer to it, and see if this solves your problem.

Best regards,

Rodolfo

ryo_hamamoto
Principiante
3.854 Vistas

Dear Rodolfo

Thank you for your kind reply.
I can execute Intel SGX Sample codes with HW mode.

Your advice is very useful.

Best regards,

Ryo

Responder