Coder Social home page Coder Social logo

Comments (2)

ipaljak avatar ipaljak commented on July 21, 2024 1

Hi Jo,

you were right, turns out the step interval had to be quite a bit higher on my machine (~40). Thank you very much for the help.

Cheers,
Ivan

from sgx-step.

jovanbulck avatar jovanbulck commented on July 21, 2024

Hi Ivan,

From the output, this looks like you're "zero-stepping": your APC timer interval is likely too low so that the interrupt is arriving too early (during ERESUME itself) and the enclave gets interrupted before it can make any progress. That explains why you see the same RIP value all the time: the enclave is stuck at the first page fault and cannot make progress. In the app/bench program, single-stepping starts from the first page fault, which is likely not yet the NOP instruction slide but another function residing on the same page (you could verify this with objdump and the RIP you see being reported here). This is why the parse_nop script reports zero on the whole line.

Moving forward: your CPU seems to have a base frequency of 2.60GHz and the above output was generated with SGX_STEP_TIMER_INTERVAL=20 which is likely too low looking at the table in the README. Try going for something around 23-25? If you keep getting the same RIP, try going even higher depending on the microcode version you're using. Hope this was helpful, let me know if it works for you ^^

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.