-
Notifications
You must be signed in to change notification settings - Fork 86
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
AEP trampoline sgx-gdb compatibility #9
Comments
Hello Mr. Bulck,I am trying to execute foreshadow attack on my laptop and i get the following output: [===] Enclave [===] Before you open the issue I got the output you introduced in README.md. Is the error because of the above issue or I made a mistake while installing the sgx-step framework? Thank you for your time |
Hi George, No, this error should be unrelated to this issue. The linker error you get is because your SGX-SDK installation was not properly patched to export the needed Hope this helps! |
I will check it again. |
I am also facing the same issue mentioned by @GeorgeGogos, any update regarding this issue. @jovanbulck ? |
If you get this undefined symbol error, it basically means you have to make sure you're loading the patched SDK urts library. Make sure to purge any SGX libraries installed with See more info and help suggestions here: Hope this helps, let me know with concrete details if you run into more troubles and I can try to help out:) |
Compilation is done successfully, but i am getting this error when running the app: [idt.c] locking IRQ handler pages 0x55555555a000/0x555555560000 Can you help me figure out this? |
Hm this indicates that there's a problem with creating the enclave, not sgx-step itself. The error is thrown by the Intel SGX-SDK code, see also this related issue: In particular it seems 0x4004 is Make sure the DEBUG parameter is set to 1 in the call to sgx_create_enclave. ALso, you prob want to try to first run one of the sample SGX SDK applications (in |
I got error when I ./app in foreshadow : undefined symbol: sgx_get_aep I follew lines: but I can't execute correctly. |
Following up @wuyifancaixukyun , not sure if you already found a solution, but this error means that you didn't properly link to the patched SDK. Normally this should be fine if you follow the instructions above and nothing errors and you execute in the same terminal where you executed the For more directions and troubleshooting, have a look at issue #24 and let me know if it helps? |
Custom AEP trampoline seems to cause
sgx-gdb
to crash with a segmentation fault. Full output for the aep-redirect sample program:After some digging it seems this is caused by the
is_eresume()
function of upstream SDK, which assumes the AEP is always a single ENCLU instruction. As such, sgx-gdb compatibility will probably require another SDK patch...https://github.com/intel/linux-sgx/blob/master/sdk/debugger_interface/linux/se_ptrace.c#L368
The text was updated successfully, but these errors were encountered: