Giter VIP home page Giter VIP logo

Comments (4)

cpriebe avatar cpriebe commented on May 24, 2024

Thanks for reporting this! This is a bug. You can access the help text via sgx-lkl-run -t. I have just pushed a fix, so sgx-lkl-run --help-tls should now work again as well.

Fixed in e3fc437.

from sgx-lkl.

fixerivan avatar fixerivan commented on May 24, 2024

thanks, help text was displayed, but once i followed the instructions:

root@vitro ~/sgx-lkl/tools/kmod-set-fsgsbase # make set-cr4-fsgsbase
make -C /lib/modules/5.1.16-050116-generic/build M=/root/sgx-lkl/tools/kmod-set-fsgsbase modules
make[1]: Entering directory '/usr/src/linux-headers-5.1.16-050116-generic'
Building modules, stage 2.
MODPOST 1 modules
make[1]: Leaving directory '/usr/src/linux-headers-5.1.16-050116-generic'
sudo insmod ./mod_set_cr4_fsgsbase.ko val=1
sudo rmmod mod_set_cr4_fsgsbase
dmesg | tail -n 10
[29900.749478] SGX-LKL: Successfully set CR4.FSGSBASE to 1 on CPU #0, CR4 before: 0x003606f0, after: 0x003706f0.
[29900.749479] SGX-LKL: Successfully set CR4.FSGSBASE to 1 on CPU #8, CR4 before: 0x003606e0, after: 0x003706e0.
[29900.749480] SGX-LKL: Successfully set CR4.FSGSBASE to 1 on CPU #10, CR4 before: 0x003606e0, after: 0x003706e0.
[29900.749481] SGX-LKL: Successfully set CR4.FSGSBASE to 1 on CPU #2, CR4 before: 0x003606e0, after: 0x003706e0.
[29900.749482] SGX-LKL: Successfully set CR4.FSGSBASE to 1 on CPU #9, CR4 before: 0x003606e0, after: 0x003706e0.
[29900.749483] SGX-LKL: Successfully set CR4.FSGSBASE to 1 on CPU #11, CR4 before: 0x003606e0, after: 0x003706e0.
[29900.749484] SGX-LKL: Successfully set CR4.FSGSBASE to 1 on CPU #12, CR4 before: 0x003606e0, after: 0x003706e0.
[29900.749486] SGX-LKL: Successfully set CR4.FSGSBASE to 1 on CPU #14, CR4 before: 0x003606e0, after: 0x003706e0.
[29900.749487] SGX-LKL: Successfully set CR4.FSGSBASE to 1 on CPU #6, CR4 before: 0x003606e0, after: 0x003706e0.
[29900.749487] SGX-LKL: Successfully set CR4.FSGSBASE to 1 on CPU #15, CR4 before: 0x003606e0, after: 0x003706e0.

the results are even worse than before, i just get a segfault:

SGXLKL_HEAP=900M SGXLKL_KEY=/root/sgx-lkl/build/config/enclave_debug.key sgx-lkl-run ./sgxlkl-miniroot-fs.img /bin/node --version
Segmentation fault

from sgx-lkl.

cpriebe avatar cpriebe commented on May 24, 2024

What is /bin/node? Node.js?

./tools/sgx-lkl-disk create --alpine="nodejs" --size=200M nodesjs.img
./build/sgx-lkl-run ./nodesjs.img /usr/bin/node --version
v10.16.0

from sgx-lkl.

fixerivan avatar fixerivan commented on May 24, 2024

ok this works, thanks!

there is a slight problem with sgx-lkl-disk on newer ubuntu versions DNS will not work in chroot without something like: mount --bind /etc/resolv.conf /mnt/alpine/etc/resolv.conf

from sgx-lkl.

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.