Coder Social home page Coder Social logo

Comments (3)

jovanbulck avatar jovanbulck commented on July 21, 2024

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.

xiaonan-INTC avatar xiaonan-INTC commented on July 21, 2024

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.

jovanbulck avatar jovanbulck commented on July 21, 2024

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)

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.