Comments (3)
Thanks for reporting the broken link. The URL seems to have changed and is now available here. I'll update the README in a moment. However, you don't need to do anything, see note below.
NOTE: This link is only included to credit the approach and for interesting people to see what's going on beneath the hood. The devmem_is_allowed
bypass approach is already implemented in /dev/sgxstep
so it should work out of the box and not cause you any problems.
If you're interested, the code to handle this is this line:
https://github.com/jovanbulck/sgx-step/blob/master/kernel/sgxstep.c#L260
from sgx-step.
Thanks for the reply, jovanbulck. :).
But here is still an error as below, do you have solution for it?
/home/sgx-step/kernel/linux-sgx-driver/sgx_page_cache.c: In function ‘sgx_swap_pages’:
/home/sgx-step/kernel/linux-sgx-driver/sgx_page_cache.c:379:23: error: ‘struct mm_struct’ has no member named ‘mmap_sem’; did you mean ‘mmap_base’?
down_read(&encl->mm->mmap_sem);
^~~~~~~~
mmap_base
/home/sgx-step/kernel/linux-sgx-driver/sgx_page_cache.c:382:21: error: ‘struct mm_struct’ has no member named ‘mmap_sem’; did you mean ‘mmap_base’?
up_read(&encl->mm->mmap_sem);
^~~~~~~~
mmap_base
make[2]: *** [scripts/Makefile.build:271: /home/sgx-step/kernel/linux-sgx-driver/sgx_page_cache.o] Error 1
make[1]: *** [Makefile:1851: /home/sgx-step/kernel/linux-sgx-driver] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.14.0-aex'
make: *** [Makefile:16: default] Error 2
BTW, didn't do following steps, are there any effects to this error?
$ sudo vim /etc/default/grub
//Add the following line: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nox2apic iomem=relaxed no_timer_check nosmep nosmap clearcpuid=514 isolcpus=1 nmi_watchdog=0"
$ sudo update-grub && reboot
from sgx-step.
This seems to be an issue in the linux-sgx-driver. Currently, SGX-Step uses v2.11 that is not compatible with newer Linux kernels. This has been fixed in v2.14 and I pushed commits to SGX-Step to use the latest version v2.14 of the driver (plus also the latest linux-sgx SDK v2.16).
This should fix your issue hopefully. Let me know (by opening a new issue) if problems remain!
from sgx-step.
Related Issues (20)
- Work-in-progress Gramine port HOT 17
- Could add some explanation for each test application under app/ to README? HOT 1
- /dev/sgx-step would be uninstalled after os reboot HOT 2
- foreshadow/lvi building error , memcmp running error HOT 2
- os would always hang after running cpl/idt/memcmp HOT 8
- Refactor: page-fault abstraction in libsgxstep HOT 2
- Could sgx-step support SGX in-kernel/dcap driver? HOT 2
- victim.base && "no enclave found in /proc/self/maps HOT 4
- Support multithreaded enclaves
- ./install_SGX_SDK.sh can't find python2 HOT 3
- Trying to run app/memcmp but gives assertion error HOT 5
- Questions regarding the use of unmap_alias and sim_reload HOT 3
- Questions regarding fs_reload_threshold in foreshadow HOT 1
- Refactor build system
- More questions regarding unmap_alias() and leaking data HOT 1
- Compatibility with Linux 6.5 and later HOT 5
- [load_qe ../qe_logic.cpp:697] Error, call sgx_create_enclave QE fail [load_ Failed to load QE3: 0x4004 HOT 1
- Add x2APIC support HOT 1
- memcmp example fails to find the secret HOT 2
- SIGSEGV right after launch HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sgx-step.