Manifest file: file:helloworld.manifest.sgx Executable file: file:./helloworld Token file: file:helloworld.token read token: valid: 0x00000001 attr.flags: 0x0000000000000006 attr.xfrm: 0x000000000000001f mr_enclave: 299b70dc6f807563d98eebbbd6bd32dda128977221c44451413f08d92b2676e8 mr_signer: ba76dbe882f56fe356c7ed8f16e3bfde58d7ec51c07052e8bc00bbc6090cede7 LE cpu_svn: 0709ffffff0100000000000000000000 LE isv_prod_id: 20 LE isv_svn: 03 LE masked_misc_select: 0x00000000 LE attr.flags: 0x0000000000000021 LE attr.xfrm: 0x0000000000000000 enclave created: base: 0x0000000000000000 size: 0x0000000010000000 misc_select: 0x00000000 attr.flags: 0x0000000000000007 attr.xfrm: 0x000000000000001f ssa_frame_size: 1 isv_prod_id: 0x00000000 isv_svn: 0x00000000 adding page to enclave: 0xffff000 [REG:R--] (manifest) measured adding pages to enclave: 0xfff6000-0xfffe000 [REG:RW-] (ssa) measured adding pages to enclave: 0xfff1000-0xfff5000 [TCS:---] (tcs) measured adding pages to enclave: 0xffec000-0xfff0000 [REG:RW-] (tls) measured adding pages to enclave: 0xffab000-0xffeb000 [REG:RW-] (stack) measured adding pages to enclave: 0xff6a000-0xffaa000 [REG:RW-] (stack) measured adding pages to enclave: 0xff29000-0xff69000 [REG:RW-] (stack) measured adding pages to enclave: 0xfee8000-0xff28000 [REG:RW-] (stack) measured adding pages to enclave: 0xfed7000-0xfee7000 [REG:RW-] (sig_stack) measured adding pages to enclave: 0xfec6000-0xfed6000 [REG:RW-] (sig_stack) measured adding pages to enclave: 0xfeb5000-0xfec5000 [REG:RW-] (sig_stack) measured adding pages to enclave: 0xfea4000-0xfeb4000 [REG:RW-] (sig_stack) measured adding pages to enclave: 0xb877000-0xb8cb000 [REG:R-X] (code) measured adding pages to enclave: 0xbacb000-0xbace000 [REG:RW-] (data) measured adding pages to enclave: 0xbace000-0xfea3000 [REG:RW-] (bss) measured adding page to enclave: 0x400000 [REG:RWX] (code) measured adding pages to enclave: 0x600000-0x602000 [REG:RW-] (data) measured adding pages to enclave: 0x603000-0xb876000 [REG:RWX] (free) adding pages to enclave: 0x10000-0x3ff000 [REG:RWX] (free) enclave initializing: enclave id: 0x000000000ffff000 enclave hash: 29 9b 70 dc 6f 80 75 63 d9 8e eb bb d6 bd 32 dd a1 28 97 72 21 c4 44 51 41 3f 08 d9 2b 26 76 e8 Seal key: 3410ab2ce43cfb02e3bb0143171debe0 trusted: [1] fbcbeeb088ecc17a8e370dd7234861c9894577b360831b585c0c9ca792b04105 file:helloworld trusted: [2] ff895365afee33baecc6e6c03e81d34e84cc9546ea350a7b1dd3e49c5ae273b3 file:/home/smherwig/src/graphene/Runtime/libsysdb.so trusted: [3] 814424a4b2e535cca258252e595884539eb40dcc9edd640c2086ba4580adb25e file:/home/smherwig/src/graphene/Runtime/ld-linux-x86-64.so.2 trusted: [4] ca7ac39e69d845db2fef1515acf9237eb3ea51b08d06a7d9f0acb028b2d1db63 file:/home/smherwig/src/graphene/Runtime/libc.so.6 trusted: [5] dfa28d6f9023d4cd76040151c7f71723c22887345db311436b2cf8fc0226a18b file:/home/smherwig/src/graphene/Runtime/libdl.so.2 trusted: [6] 18c94369e3e1f66876c328f2e814c2ed8f9fd3f4bdd55711e2f17e849ecce774 file:/home/smherwig/src/graphene/Runtime/libm.so.6 trusted: [7] 43276d828b7c434778a14ac68d0ccda3b10b0e840f6e4bf57712cdbb6669cc0c file:/home/smherwig/src/graphene/Runtime/libpthread.so.0 trusted: [8] 40afd71938fc970d079734fed3ef84182d611f4eb2f5717d56825f16104ced9c file:tcp.c [P26825] host: Linux-SGX [P26825] bkeep_unmapped: 0xad5d000-0xad5f000 => vma [P26825] allocate 0xad5d000-0xad5f000 for vmas [P26825] Converting early VMA [0xb872120] 0x3ff000-0x400000 [P26825] Converting early VMA [0xb872168] 0x400000-0x602000 [P26825] Converting early VMA [0xb8721b0] 0x602000-0x603000 [P26825] Converting early VMA [0xb8721f8] 0xffff000-0xffff80c [P26825] Converting early VMA [0xb872240] 0xb55f000-0xb876000 [P26825] Converting early VMA [0xb872288] 0xad5d000-0xad5f000 [P26825] heap top adjusted to 0x3dc0000 [P26825] bkeep_unmapped: 0xad4c000-0xad5d000 => slab [P26825] bkeep_unmapped: 0xad2b000-0xad4c000 => slab [P26825] bkeep_unmapped: 0xad27000-0xad2b000 => slab [P26825] bkeep_unmapped: 0xad22000-0xad27000 => slab [P26825] bkeep_unmapped: 0xad1a000-0xad22000 => slab [P26825] shim loaded at 0xb55f000, ready to initialize [P26825] bkeep_unmapped: 0xad19000-0xad1a000 => slab [P26825] bkeep_unmapped: 0xad17000-0xad19000 => slab [P26825] mounting default root filesystem [P26825] bkeep_unmapped: 0xad15000-0xad17000 => slab [P26825] bkeep_unmapped: 0xad12000-0xad15000 => slab [P26825] bkeep_unmapped: 0xad0d000-0xad12000 => slab [P26825] bkeep_munmap: 0xad12000-0xad15000 [P26825] bkeep_munmap: 0xad15000-0xad17000 [P26825] bkeep_munmap: 0xad0d000-0xad12000 [P26825] mounting as proc filesystem: /proc [P26825] mounting as dev filesystem: /dev [P26825] mounting as chroot filesystem: from dev:tty to /dev [P26825] bkeep_unmapped: 0xad16000-0xad17000 => slab [P26825] bkeep_unmapped: 0xad15000-0xad16000 => slab [P26825] creating pipe: pipe.srv:2337433801 [P26825] Adding port (handle 0xbad24f0) for process 26825 (type 0002) [P26825] walk_thread_list(callback=0xb5d0429) [P26825] allocated pid: 1 [P26825] bkeep_unmapped: 0xad10000-0xad15000 => slab [ 1] mounting as chroot filesystem: from file:/home/smherwig/src/graphene/Runtime to /lib [ 1] bkeep_unmapped: 0xad0e000-0xad10000 => slab [ 1] bkeep_munmap: 0xad0e000-0xad10000 [ 1] bkeep_unmapped: 0xad0e000-0xad10000 => slab [ 1] bkeep_munmap: 0xad0e000-0xad10000 [ 1] mounting as chroot filesystem: from file:/bin to /bin [ 1] bkeep_unmapped: 0xad0e000-0xad10000 => slab [ 1] bkeep_unmapped: 0xad0c000-0xad0e000 => slab [ 1] bkeep_munmap: 0xad0e000-0xad10000 [ 1] bkeep_munmap: 0xad0c000-0xad0e000 [ 1] bkeep_unmapped: 0xad0e000-0xad10000 => slab [ 1] bkeep_unmapped: 0xad0c000-0xad0e000 => slab [ 1] bkeep_munmap: 0xad0e000-0xad10000 [ 1] bkeep_munmap: 0xad0c000-0xad0e000 [ 1] bkeep_unmapped: 0x39bf000-0x3dc0000 => stack [ 1] heap top adjusted to 0x39bf000 [ 1] bkeep_mprotect: 0x39c0000-0x3dc0000 [ 1] allocated stack at 0x39c0000 (size = 4194304) [ 1] adding file:helloworld as runtime object loaded at 0x400000-0x602000 [ 1] bkeep_mmap: 0x400000-0x401000 [ 1] bkeep_mmap: 0x600000-0x602000 [ 1] bkeep_mmap: 0x193b000-0x393b000 [ 1] brk area: 0x193b000 - 0x193c000 [ 1] brk reserved area: 0x193c000 - 0x393b000 [ 1] bkeep_mmap: 0x193b000-0x193c000 [ 1] search interpreter: /lib/ld-linux-x86-64.so.2 [ 1] bkeep_unmapped: 0x1714000-0x193b000 [ 1] heap top adjusted to 0x1714000 [ 1] bkeep_mprotect: 0x1739000-0x1938000 [ 1] bkeep_mmap: 0x1938000-0x193a000 [ 1] bkeep_mmap: 0x193a000-0x193b000 [ 1] add a library for gdb: file:/home/smherwig/src/graphene/Runtime/ld-linux-x86-64.so.2 [ 1] shim process initialized [ 1] bkeep_unmapped: 0x1713000-0x1714000 => linux-vdso.so.1 [ 1] heap top adjusted to 0x1713000 [ 1] ---- shim_brk(0x0) = 0x0193b000 [P26825] bkeep_unmapped: 0xad0b000-0xad10000 => slab [P26825] bkeep_mprotect: 0xad0c000-0xad10000 [P26825] allocated stack at 0xad0c000 (size = 16384) [P26825] IPC helper thread started [P26825] Listening to process 26825 on port 0xad15048 (handle 0xbad24f0, type 0002) [ 1] ---- shim_access("/etc/ld.so.preload",F_OK|R_OK) = -2 [ 1] ---- shim_openat(AT_FDCWD,"/lib/tls/haswell/x86_64/libc.so.6",O_RDONLY|2000000,0000) = -2 [ 1] ---- shim_stat("/lib/tls/haswell/x86_64",0x3dbe850) = -2 [ 1] ---- shim_openat(AT_FDCWD,"/lib/tls/haswell/libc.so.6",O_RDONLY|2000000,0000) = -2 [ 1] ---- shim_stat("/lib/tls/haswell",0x3dbe850) = -2 [ 1] ---- shim_openat(AT_FDCWD,"/lib/tls/x86_64/libc.so.6",O_RDONLY|2000000,0000) = -2 [ 1] ---- shim_stat("/lib/tls/x86_64",0x3dbe850) = -2 [ 1] ---- shim_openat(AT_FDCWD,"/lib/tls/libc.so.6",O_RDONLY|2000000,0000) = -2 [ 1] ---- shim_stat("/lib/tls",0x3dbe850) = -2 [ 1] ---- shim_openat(AT_FDCWD,"/lib/haswell/x86_64/libc.so.6",O_RDONLY|2000000,0000) = -2 [ 1] ---- shim_stat("/lib/haswell/x86_64",0x3dbe850) = -2 [ 1] ---- shim_openat(AT_FDCWD,"/lib/haswell/libc.so.6",O_RDONLY|2000000,0000) = -2 [ 1] ---- shim_stat("/lib/haswell",0x3dbe850) = -2 [ 1] ---- shim_openat(AT_FDCWD,"/lib/x86_64/libc.so.6",O_RDONLY|2000000,0000) = -2 [ 1] ---- shim_stat("/lib/x86_64",0x3dbe850) = -2 [ 1] ---- shim_openat(AT_FDCWD,"/lib/libc.so.6",O_RDONLY|2000000,0000) = 3 [ 1] ---- shim_read(3,0x3dbe9b8,832) ... read [ 1] ---- return from shim_read(...) = 832 [ 1] ---- shim_fstat(3,0x3dbe850) = 0 [ 1] ---- shim_mmap(0x0,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0) ... mmap [ 1] bkeep_unmapped: 0x1711000-0x1713000 [ 1] heap top adjusted to 0x1711000 [ 1] ---- return from shim_mmap(...) = 0x01711000 [ 1] ---- shim_mmap(0x0,3873464,PROT_READ|PROT_EXEC,MAP_PRIVATE|0x800,3,0) ... mmap [ 1] bkeep_unmapped: 0x135f000-0x1711000 [ 1] heap top adjusted to 0x135f000 [ 1] ---- return from shim_mmap(...) = 0x0135f000 [ 1] ---- shim_mprotect(0x1507000,2097152,PROT_NONE) ... mprotect [ 1] bkeep_mprotect: 0x1507000-0x1707000 [ 1] ---- return from shim_mprotect(...) = 0 [ 1] ---- shim_mmap(0x1707000,24576,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|0x800,3,1736704) ... mmap [ 1] mmap: allowing overlapping MAP_FIXED allocation at 0x1707000 with length 24576 [ 1] bkeep_mmap: 0x1707000-0x170d000 [ 1] ---- return from shim_mmap(...) = 0x01707000 [ 1] ---- shim_mmap(0x170d000,15032,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON|MAP_FIXED,-1,0) ... mmap [ 1] mmap: allowing overlapping MAP_FIXED allocation at 0x170d000 with length 16384 [ 1] bkeep_mmap: 0x170d000-0x1711000 [ 1] ---- return from shim_mmap(...) = 0x0170d000 [ 1] ---- shim_close(3) = 0 [ 1] glibc register library /lib/libc.so.6 loaded at 0x0135f000 [ 1] add a library for gdb: file:/home/smherwig/src/graphene/Runtime/libc.so.6 Unknown or illegal instruction at RIP 0x000000000b887e3d Unknown or illegal instruction at RIP 0x000000000b899a62 Unknown or illegal instruction at RIP 0x000000000b899a62 Unknown or illegal instruction at RIP 0x000000000b899a62 Unknown or illegal instruction at RIP 0x000000000b899a62 Unknown or illegal instruction at RIP 0x000000000b899a62 Unknown or illegal instruction at RIP 0x000000000b899a62 Unknown or illegal instruction at RIP 0x000000000b899a62 Unknown or illegal instruction at RIP 0x000000000b899a62 Unknown or illegal instruction at RIP 0x000000000b899a62 Unknown or illegal instruction at RIP 0x000000000b899a62 Unknown or illegal instruction at RIP 0x000000000b899a62 Unknown or illegal instruction at RIP 0x000000000b899a62 Unknown or illegal instruction at RIP 0x000000000b899a62 Unknown or illegal instruction at RIP 0x000000000b899a62 Unknown or illegal instruction at RIP 0x000000000b899a62 *** An unexpected AEX vector occurred inside PAL. Exiting the thread. *** (vector = 0x2, type = 0x0 valid = 0, RIP = +0x00022981) rax: 0x0000044c rcx: 0x00000000 rdx: 0x7ffd03bb827f rbx: 0x01712500 rsp: 0x0fed6dc0 rbp: 0x0fed7230 rsi: 0x7ffd03bb827f rdi:Unknown or illegal instruction at RIP 0x000000000b899a62 Unknown or illegal instruction at RIP 0x000000000b899a62 Unknown or illegal instruction at RIP 0x000000000b899a62 Unknown or illegal instruction at RIP 0x000000000b899a62 Unknown or illegal instruction at RIP 0x000000000b899a62 Unknown or illegal instruction at RIP 0x000000000b899a62 Unknown or illegal instruction at RIP 0x000000000b899a62 Unknown or illegal instruction at RIP 0x000000000b899a62 Unknown or illegal instruction at RIP 0x000000000b899a62 Unknown or illegal instruction at RIP 0x000000000b899a62 Unknown or illegal instruction at RIP 0x000000000b899a62 Unknown or illegal instruction at RIP 0x000000000b899a62 Unknown or illegal instruction at RIP 0x000000000b899a62 Unknown or illegal instruction at RIP 0x000000000b899a62 Unknown or illegal instruction at RIP 0x000000000b899a62