Coder Social home page Coder Social logo

Comments (5)

jovanbulck avatar jovanbulck commented on July 21, 2024

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.

kmarzouq avatar kmarzouq commented on July 21, 2024

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.
Screenshot from 2023-07-05 11-51-50

from sgx-step.

jovanbulck avatar jovanbulck commented on July 21, 2024

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.

kmarzouq avatar kmarzouq commented on July 21, 2024

I think I found the correct Step Interval of 124 but memcmp isn't working.
Screenshot from 2023-07-12 16-34-57

from sgx-step.

jovanbulck avatar jovanbulck commented on July 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.