Comments (5)
this means the "recovering password length" step failed. Most likely because the single-stepping interval is not set correctly(?)
Try running it as ./app
(as in the GIF screencast) instead of make run
so you have interactive output and see more where it goes wrong. If it works for app/bench, then try to slightly decrease the single-step interval if needed.
from sgx-step.
Ok, did sudo ./app
instead and it got somewhere. I have decreased SGX_STEP_TIMER_INTERVAL
from the default 53 to various values down to 1 and I get the same result. I make sure to use make
before running each time after I change SGX_STEP_TIMER_INTERVAL
. Not sure what the issue is.
from sgx-step.
okay, now you clearly got stuck in "zero-stepping", ie the timer interval is too low and the interrupt arrives before ERESUME has completed, meaning the enclave will not execute an instruction and make progress.
Setting the timer interval to values as low as 1 is always going to be too low and not work. Try to first get a better understanding of the correct timer interval and how to assess it ("Note (calibration)" in the top-level README should hopefully help you). Make sure it works reliably with app/bench
for a large NOP slide and then it should work with the same value for app/memcmp
too.
from sgx-step.
I think I found the correct Step Interval of 124 but memcmp isn't working.
from sgx-step.
Hmm too bad. If it works reliably in app/bench then it should normally also work for app/memcp. I'd advise that you try to understand what exactly goes wrong by settign DEBUG=1 in main.c (and maybe LIBSGXSTEP_DEBUG=0 in config.h for readibility). Then you should be able to see if the stepping is going correct, compared to the objdump, and where's the problem exactly.
from sgx-step.
Related Issues (20)
- kernel panics when single-stepping [SOLVED: KPTI #PF for kernel IRQ] HOT 12
- error when running bench: [file.c] assertion '(f = fopen(path, "w"))' failed: No such file or directory HOT 6
- 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
- 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
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.