tristartom / sgx-emulator Goto Github PK
View Code? Open in Web Editor NEWAn Emulator and SDK for Intel SGX extension
An Emulator and SDK for Intel SGX extension
Greetings,
do you have the source code of the SGX.ko file ?
Thanks
Hi, any instructions on how to use the sgx-emulator at https://github.com/tristartom/sgx-emulator?
I've configured a ubuntu 1404 VM using vmware and the kernel is 3.19 as the readme says, but it still failed to insmod or run the sgx module. The error is as follows:
insmod: ERROR: could not insert module sgx.ko: Invalid module format
TT: base:0x2b608daea000, _entry_point:0x2b608daeaf03, diff: 0xf03, args: 0x7fff02d71970
00400000-00402000 r-xp 00000000 08:01 6167990 /home/john/sgx-emulator/bin/a.out
00601000-00602000 r--p 00001000 08:01 6167990 /home/john/sgx-emulator/bin/a.out
00602000-00603000 rw-p 00002000 08:01 6167990 /home/john/sgx-emulator/bin/a.out
00d07000-00d28000 rw-p 00000000 00:00 0 [heap]
2b608d2fc000-2b608d31f000 r-xp 00000000 08:01 4723319 /lib/x86_64-linux-gnu/ld-2.19.so
2b608d31f000-2b608d322000 rw-p 00000000 00:00 0
2b608d32f000-2b608d332000 rw-p 00000000 00:00 0
2b608d51e000-2b608d51f000 r--p 00022000 08:01 4723319 /lib/x86_64-linux-gnu/ld-2.19.so
2b608d51f000-2b608d520000 rw-p 00023000 08:01 4723319 /lib/x86_64-linux-gnu/ld-2.19.so
2b608d520000-2b608d521000 rw-p 00000000 00:00 0
2b608d521000-2b608d524000 r-xp 00000000 08:01 4723311 /lib/x86_64-linux-gnu/libdl-2.19.so
2b608d524000-2b608d723000 ---p 00003000 08:01 4723311 /lib/x86_64-linux-gnu/libdl-2.19.so
2b608d723000-2b608d724000 r--p 00002000 08:01 4723311 /lib/x86_64-linux-gnu/libdl-2.19.so
2b608d724000-2b608d725000 rw-p 00003000 08:01 4723311 /lib/x86_64-linux-gnu/libdl-2.19.so
2b608d725000-2b608d8e0000 r-xp 00000000 08:01 4723322 /lib/x86_64-linux-gnu/libc-2.19.so
2b608d8e0000-2b608dadf000 ---p 001bb000 08:01 4723322 /lib/x86_64-linux-gnu/libc-2.19.so
2b608dadf000-2b608dae3000 r--p 001ba000 08:01 4723322 /lib/x86_64-linux-gnu/libc-2.19.so
2b608dae3000-2b608dae5000 rw-p 001be000 08:01 4723322 /lib/x86_64-linux-gnu/libc-2.19.so
2b608dae5000-2b608daea000 rw-p 00000000 00:00 0
2b608daea000-2b608daec000 r-xp 00000000 08:01 6167988 /home/john/sgx-emulator/bin/enclave_foo.so
2b608daec000-2b608dceb000 ---p 00002000 08:01 6167988 /home/john/sgx-emulator/bin/enclave_foo.so
2b608dceb000-2b608dcec000 r--p 00001000 08:01 6167988 /home/john/sgx-emulator/bin/enclave_foo.so
2b608dcec000-2b608dced000 rw-p 00002000 08:01 6167988 /home/john/sgx-emulator/bin/enclave_foo.so
2b608dced000-2b608ddd3000 r-xp 00000000 08:01 3932544 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.19
2b608ddd3000-2b608dfd2000 ---p 000e6000 08:01 3932544 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.19
2b608dfd2000-2b608dfda000 r--p 000e5000 08:01 3932544 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.19
2b608dfda000-2b608dfdc000 rw-p 000ed000 08:01 3932544 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.19
2b608dfdc000-2b608dff1000 rw-p 00000000 00:00 0
2b608dff1000-2b608e007000 r-xp 00000000 08:01 4722754 /lib/x86_64-linux-gnu/libgcc_s.so.1
2b608e007000-2b608e206000 ---p 00016000 08:01 4722754 /lib/x86_64-linux-gnu/libgcc_s.so.1
2b608e206000-2b608e207000 rw-p 00015000 08:01 4722754 /lib/x86_64-linux-gnu/libgcc_s.so.1
2b608e207000-2b608e30c000 r-xp 00000000 08:01 4723307 /lib/x86_64-linux-gnu/libm-2.19.so
2b608e30c000-2b608e50b000 ---p 00105000 08:01 4723307 /lib/x86_64-linux-gnu/libm-2.19.so
2b608e50b000-2b608e50c000 r--p 00104000 08:01 4723307 /lib/x86_64-linux-gnu/libm-2.19.so
2b608e50c000-2b608e50d000 rw-p 00105000 08:01 4723307 /lib/x86_64-linux-gnu/libm-2.19.so
7fff02d52000-7fff02d73000 rw-p 00000000 00:00 0 [stack]
7fff02dc0000-7fff02dc2000 r--p 00000000 00:00 0 [vvar]
7fff02dc2000-7fff02dc4000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
note: sections in order: .text, .rodata, .bss
TT: begin of e_enter: which_enclave: 0xd07010; entry_point: 0x2b608daeaf03, rip_enter:400fb5, rt_args: 0x7fff02d71970
make: *** [run] Illegal instruction
insmod: error inserting 'sgx.ko': -1 Invalid module format
my VM configuration:
uname -a: Linux ubuntu 3.19.0-031900-generic #201504091832 SMP Thu Apr 9 17:35:46 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
the virtualization software is virtualbox 5.0.14
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.