Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

Does any one use python-sgx to develop python app with SGX? #157

Closed
TaihuLight opened this issue Jan 3, 2018 · 6 comments
Closed

Does any one use python-sgx to develop python app with SGX? #157

TaihuLight opened this issue Jan 3, 2018 · 6 comments

Comments

@TaihuLight
Copy link

TaihuLight commented Jan 3, 2018

I build and test python-sgx https://github.com/adombeck/python-sgx , but there are many problems described in https://github.com/adombeck/python-sgx/issues/2
Could you help me?

@tarikova
Copy link

I am also trying to make it work but not much luck making basic functions such as seal work inside graphene's SGX enclaves :(

@donporter
Copy link
Contributor

Can you share a more specific output or set of symptoms? Make sure to enable debugging (build with DEBUG=1) and set the debug output in the manifest to inline.

@tarikova
Copy link

tarikova commented Oct 24, 2018

Thanks for your suggestions Professor Porter. I will.

The frustrating thing is right now I get no symptoms. The programs exits without any output. In fact, I put a debug print statement inside the python function. That does print outputs when I called the _sealing_swing.seal function from the generated _sealing_swig.so file, which is supposed to run the underlying sgx_seal_data function from sgx_tseal.h

@tarikova
Copy link

@donporter I compiled graphene with DEBUG=1 and then tried running the swig sealing program by @adombeck
I get an assertion error in shim_namei.c--more specifically assert(start->state & DENTRY_ISDIRECTORY); on line 97. Unclear if it has anything to do with the library.

@donporter
Copy link
Contributor

Interesting. Can you share any more details about how to reproduce this error?

@mkow
Copy link
Member

mkow commented Feb 4, 2019

We (ITL) have a working fix for exactly this issue, we'll send a PR fixing this next week (hopefully). The problem is caused by a few bugs in reference counting, leading to use-after-free on one of dentry structures.

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

4 participants