Created
November 13, 2017 00:44
-
-
Save mkow/c8295b1beb3ead7871de40bba5d22416 to your computer and use it in GitHub Desktop.
Graphene log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[P5564] set tcb to 0xffe9658 | |
[P5564] host: Linux-SGX | |
[P5564] initial random value: 6b40e37d9d091092 | |
[P5564] allocate internal heap at 0xb9a4000 - 0xbaa4000 | |
[P5564] User space range given from PAL: 0x10000-0xbaa4000 | |
[P5564] setting initial heap to 0x10000-0xbaa4000 | |
[P5564] bkeep_mmap: 0xb9a4000-0xb9ae000 | |
[P5564] bkeep_mmap: 0xbaa0000-0xbaa4000 | |
[P5564] bkeep_mmap: 0xba9b000-0xbaa0000 | |
[P5564] bkeep_mmap: 0xba94000-0xba9b000 | |
[P5564] shim loaded at 0xbaa5000, ready to initialize | |
[P5564] bkeep_mmap: 0xffff000-0x10000000 | |
[P5564] bkeep_mmap: 0xba93000-0xba94000 | |
[P5564] bkeep_mmap: 0xba92000-0xba93000 | |
[P5564] bkeep_mmap: 0xba91000-0xba92000 | |
[P5564] bkeep_mmap: 0xba8f000-0xba91000 | |
[P5564] mounting as proc filesystem: /proc | |
[P5564] mounting as dev filesystem: /dev | |
[P5564] mounting as chroot filesystem: from dev:tty to /dev | |
[P5564] bkeep_mmap: 0xba8e000-0xba8f000 | |
[P5564] bkeep_mmap: 0xba8d000-0xba8e000 | |
[P5564] adding port (handle 0xbfada40) for process 0 (type 0001) | |
[P5564] creating pipe: pipe.srv:2634616978 | |
[P5564] adding port (handle 0xbfadd80) for process 0 (type 0002) | |
[P5564] walk_thread_list(callback=0xbae5e06) | |
[P5564] allocated pid: 1 | |
[P5564] bkeep_mmap: 0xba88000-0xba8d000 | |
[ 1] mounting as chroot filesystem: from file:../../../../Runtime to /lib | |
[ 1] mounting as chroot filesystem: from file:/bin to /bin | |
[ 1] bkeep_mmap: 0xba87000-0xba88000 | |
[ 1] find unmapped vma between 0x10000-0xbaa4000 | |
[ 1] get unmapped: 0xb5a3000-0xb9a4000 | |
[ 1] bkeep_mmap: 0xb5a4000-0xb9a4000 | |
[ 1] bkeep_mprotect: 0xb5a4000-0xb9a4000 | |
[ 1] bkeep_mmap: 0xb5a3000-0xb5a4000 | |
[ 1] bkeep_mmap: 0xb5a3000-0xb5a4000 | |
[ 1] allocated stack at 0xb5a4000 (size = 4194304) | |
[ 1] adding file:vfork as runtime object loaded at 0x400000-0x602000 | |
[ 1] bkeep_mmap: 0x400000-0x401000 | |
[ 1] bkeep_mmap: 0x600000-0x602000 | |
[ 1] brk area: 0x6a8000 - 0x6a9000 | |
[ 1] brk reserved area: 0x6a9000 - 0x26a8000 | |
[ 1] bkeep_mmap: 0x6a8000-0x6a9000 | |
[ 1] bkeep_mmap: 0x6a9000-0x26a8000 | |
[ 1] search interpreter: /lib/ld-linux-x86-64.so.2 | |
[ 1] bkeep_mmap: 0xba83000-0xba87000 | |
[ 1] find unmapped vma between 0x10000-0xbaa4000 | |
[ 1] get unmapped: 0xb380000-0xb5a3000 | |
[ 1] bkeep_mmap: 0xb380000-0xb5a3000 | |
[ 1] bkeep_mprotect: 0xb3a1000-0xb5a0000 | |
[ 1] bkeep_mmap: 0xb380000-0xb3a1000 | |
[ 1] bkeep_mmap: 0xb5a0000-0xb5a3000 | |
[ 1] bkeep_mmap: 0xb5a0000-0xb5a2000 | |
[ 1] bkeep_mprotect: 0xb5a0000-0xb5a2000 | |
[ 1] bkeep_mmap: 0xb5a2000-0xb5a3000 | |
[ 1] bkeep_mmap: 0xb5a2000-0xb5a3000 | |
[ 1] shim process initialized | |
[ 1] ---- shim_brk(0x0) = 0x6a8000 | |
[ 1] ---- shim_uname(0xb9a3350) = 0 | |
[ 1] ---- shim_mmap(0x0,4096,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0) ... | |
[ 1] find unmapped vma between 0x10000-0xbaa4000 | |
[ 1] get unmapped: 0xba82000-0xba83000 | |
[ 1] bkeep_mmap: 0xba82000-0xba83000 | |
[ 1] ---- return from shim_mmap(...) = 0xba82000 | |
[P5564] set tcb to 0xffd9a40 | |
[ 1] ---- shim_open("/lib/tls/libc.so.6",O_RDONLY|2000000,1326420530) ... | |
[P5564] ipc helper thread started | |
[P5564] bkeep_mmap: 0xba7d000-0xba82000 | |
[ 1] ---- return from shim_open(...) = -2 | |
[P5564] allocated stack at 0xba7e000 (size = 16384) | |
[P5564] listen to process 0 on port 0xba8d0b0 (handle 0xbfadd80, type 0002) | |
[ 1] ---- shim_stat("/lib/tls",0xb9a2da6) = -2 | |
[P5564] listen to process 0 on port 0xba8d038 (handle 0xbfada40, type 0001) | |
[ 1] ---- shim_open("/lib/libc.so.6",O_RDONLY|2000000,1326420530) ... | |
[ 1] bkeep_mmap: 0xba7c000-0xba7d000 | |
[ 1] ---- return from shim_open(...) = 3 | |
[ 1] ---- shim_read(3,0xb9a2ef6,832) ... | |
[ 1] bkeep_mmap: 0xba78000-0xba7c000 | |
[ 1] ---- return from shim_read(...) = 832 | |
[ 1] Stat: Returning link cound 1 | |
[ 1] ---- shim_fstat(3,0xb9a2da6) = 0 | |
[ 1] ---- shim_mmap(0x0,3852760,PROT_READ|PROT_EXEC,MAP_PRIVATE|0x800,3,0) ... | |
[ 1] find unmapped vma between 0x10000-0xbaa4000 | |
[ 1] get unmapped: 0xafd3000-0xb380000 | |
[ 1] bkeep_mmap: 0xafd3000-0xb380000 | |
[ 1] ---- return from shim_mmap(...) = 0xafd3000 | |
[ 1] ---- shim_mprotect(0xb176000,2097152,PROT_NONE) ... | |
[ 1] bkeep_mprotect: 0xb176000-0xb376000 | |
[ 1] bkeep_mmap: 0xafd3000-0xb176000 | |
[ 1] bkeep_mmap: 0xb376000-0xb380000 | |
[ 1] ---- return from shim_mprotect(...) = 0 | |
[ 1] ---- shim_mmap(0xb376000,24576,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED|0x800,3,1716224) ... | |
[ 1] vma overlapped at 0xb376000-0xb380000 | |
[ 1] mmap: allowing overlapping MAP_FIXED allocation at 0xb376000 with length 24576 | |
[ 1] bkeep_mmap: 0xb376000-0xb37c000 | |
[ 1] bkeep_mprotect: 0xb376000-0xb37c000 | |
[ 1] bkeep_mmap: 0xb37c000-0xb380000 | |
[ 1] ---- return from shim_mmap(...) = 0xb376000 | |
[ 1] ---- shim_mmap(0xb37c000,14808,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON|MAP_FIXED,-1,0) ... | |
[ 1] vma overlapped at 0xb37c000-0xb380000 | |
[ 1] mmap: allowing overlapping MAP_FIXED allocation at 0xb37c000 with length 14808 | |
[ 1] bkeep_mmap: 0xb37c000-0xb380000 | |
[ 1] ---- return from shim_mmap(...) = 0xb37c000 | |
[ 1] bkeep_unmmap: 0xba78000-0xba7c000 | |
[ 1] ---- shim_close(3) = 0 | |
[ 1] glibc register library /lib/libc.so.6 loaded at 0xafd3000 | |
[ 1] bkeep_mmap: 0xba7b000-0xba7c000 | |
[ 1] bkeep_mmap: 0xba7a000-0xba7b000 | |
[ 1] ---- shim_mmap(0x0,4096,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0) ... | |
[ 1] find unmapped vma between 0x10000-0xbaa4000 | |
[ 1] get unmapped: 0xba79000-0xba7a000 | |
[ 1] bkeep_mmap: 0xba79000-0xba7a000 | |
[ 1] ---- return from shim_mmap(...) = 0xba79000 | |
[ 1] ---- shim_mmap(0x0,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0) ... | |
[ 1] find unmapped vma between 0x10000-0xbaa4000 | |
[ 1] get unmapped: 0xba77000-0xba79000 | |
[ 1] bkeep_mmap: 0xba77000-0xba79000 | |
[ 1] ---- return from shim_mmap(...) = 0xba77000 | |
[ 1] set tcb to 0xba77700 | |
[ 1] ---- shim_arch_prctl(4098,0xba77700) = 0x0 | |
[ 1] ---- shim_mprotect(0xb376000,16384,PROT_READ) ... | |
[ 1] bkeep_mprotect: 0xb376000-0xb37a000 | |
[ 1] bkeep_mmap: 0xb37a000-0xb37c000 | |
[ 1] ---- return from shim_mprotect(...) = 0 | |
[ 1] ---- shim_mprotect(0x600000,4096,PROT_READ) ... | |
[ 1] bkeep_mprotect: 0x600000-0x601000 | |
[ 1] bkeep_mmap: 0x601000-0x602000 | |
[ 1] ---- return from shim_mprotect(...) = 0 | |
[ 1] ---- shim_mprotect(0xb5a0000,4096,PROT_READ) ... | |
[ 1] bkeep_mprotect: 0xb5a0000-0xb5a1000 | |
[ 1] bkeep_mmap: 0xb5a1000-0xb5a2000 | |
[ 1] ---- return from shim_mprotect(...) = 0 | |
[ 1] ---- shim_vfork() ... | |
[ 1] allocated pid: 2 | |
[ 1] bkeep_mmap: 0xba72000-0xba77000 | |
[ 1] bkeep_mmap: 0xba71000-0xba72000 | |
[ 1] bkeep_mmap: 0xba6f000-0xba71000 | |
[ 1] bkeep_mmap: 0xba6e000-0xba6f000 | |
[ 2] ---- return from shim_vfork(...) = 0 | |
[ 2] ---- shim_getppid() = 1 | |
[ 2] ---- shim_getpid() = 2 | |
[ 2] Stat: Returning link cound 1 | |
[ 2] ---- shim_fstat(1,0xb9a2e00) = 0 | |
[ 2] ---- shim_ioctl(1,TCGETS,0xb9a2d70) ... | |
[ 2] ---- return from shim_ioctl(...) = -22 | |
[ 2] ---- shim_mmap(0x0,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0) ... | |
[ 2] find unmapped vma between 0x10000-0xbaa4000 | |
[ 2] get unmapped: 0xba6c000-0xba6e000 | |
[ 2] bkeep_mmap: 0xba6c000-0xba6e000 | |
[ 2] ---- return from shim_mmap(...) = 0xba6c000 | |
[ 2] ---- shim_exit_group (returning 0) | |
[ 2] ipc broadcast: IPC_CLD_EXIT(1, 2, 0) | |
[ 2] found port 0xba8d0b0 (handle 0xbfadd80) for process 0 (type 0002) | |
[ 2] found port 0xba8d038 (handle 0xbfada40) for process 0 (type 0001) | |
[ 2] thread exits, notifying thread 1 | |
[ 1] set tcb to 0xba77700 | |
[ 1] jump to the stack 0xb9a3520 | |
[ 1] shim_vfork success (returning 2) | |
[ 1] ---- return from shim_vfork(...) = 2 | |
[ 1] ---- shim_getppid() = 1 | |
[ 1] ---- shim_getpid() = 1 | |
[ 1] ---- shim_write(1,0xba6c000,54) ... | |
[pid=2|ppid=1] Hello, Dad! | |
[pid=1|ppid=1] Hello, Kid! | |
[ 1] ---- return from shim_write(...) = 54 | |
[ 1] ---- shim_exit_group (returning 0) | |
[ 1] now kill other threads in the process | |
[ 1] walk_thread_list(callback=0xbb3124a) | |
[ 1] now exit the process | |
[ 1] ipc broadcast: IPC_CLD_EXIT(1, 1, 0) | |
[ 1] found port 0xba8d0b0 (handle 0xbfadd80) for process 0 (type 0002) | |
[ 1] found port 0xba8d038 (handle 0xbfada40) for process 0 (type 0001) | |
[ 1] parent not here, need to tell another process | |
[ 1] ipc broadcast: IPC_CLD_EXIT(1, 1, 0) | |
[ 1] found port 0xba8d0b0 (handle 0xbfadd80) for process 0 (type 0002) | |
[ 1] found port 0xba8d038 (handle 0xbfada40) for process 0 (type 0001) | |
[ 1] this is the only thread | |
[ 1] exiting ipc helper | |
[ 1] deleting port 0xba8d0b0 (handle 0xbfadd80) for process 0 | |
[ 1] deleting port 0xba8d038 (handle 0xbfada40) for process 0 | |
[ 1] process 1069875564 successfully terminated | |
[P5564] ipc helper thread terminated | |
[P7548] set tcb to 0xffe9658 | |
[P7548] host: Linux-SGX | |
[P7548] initial random value: b9949e0d36aa25f9 | |
[P7548] allocate internal heap at 0xb9a4000 - 0xbaa4000 | |
[P7548] User space range given from PAL: 0x10000-0xbaa4000 | |
[P7548] setting initial heap to 0x10000-0xbaa4000 | |
[P7548] bkeep_mmap: 0xb9a4000-0xb9ae000 | |
[P7548] bkeep_mmap: 0xbaa0000-0xbaa4000 | |
[P7548] bkeep_mmap: 0xba9b000-0xbaa0000 | |
[P7548] bkeep_mmap: 0xba94000-0xba9b000 | |
[P7548] shim loaded at 0xbaa5000, ready to initialize | |
[P7548] bkeep_mmap: 0xffff000-0x10000000 | |
[P7548] bkeep_mmap: 0xba93000-0xba94000 | |
[P7548] bkeep_mmap: 0xba92000-0xba93000 | |
[P7548] bkeep_mmap: 0xba91000-0xba92000 | |
[P7548] bkeep_mmap: 0xba8f000-0xba91000 | |
[P7548] mounting as proc filesystem: /proc | |
[P7548] mounting as dev filesystem: /dev | |
[P7548] mounting as chroot filesystem: from dev:tty to /dev | |
[P7548] bkeep_mmap: 0xba8e000-0xba8f000 | |
[P7548] bkeep_mmap: 0xba8d000-0xba8e000 | |
[P7548] adding port (handle 0xbfada40) for process 0 (type 0001) | |
[P7548] creating pipe: pipe.srv:917120505 | |
[P7548] adding port (handle 0xbfadd80) for process 0 (type 0002) | |
[P7548] walk_thread_list(callback=0xbae5e06) | |
[P7548] allocated pid: 1 | |
[P7548] bkeep_mmap: 0xba88000-0xba8d000 | |
[ 1] mounting as chroot filesystem: from file:../../../../Runtime to /lib | |
[ 1] mounting as chroot filesystem: from file:/bin to /bin | |
[ 1] bkeep_mmap: 0xba87000-0xba88000 | |
[ 1] find unmapped vma between 0x10000-0xbaa4000 | |
[ 1] get unmapped: 0xb5a3000-0xb9a4000 | |
[ 1] bkeep_mmap: 0xb5a4000-0xb9a4000 | |
[ 1] bkeep_mprotect: 0xb5a4000-0xb9a4000 | |
[ 1] bkeep_mmap: 0xb5a3000-0xb5a4000 | |
[ 1] bkeep_mmap: 0xb5a3000-0xb5a4000 | |
[ 1] allocated stack at 0xb5a4000 (size = 4194304) | |
[ 1] adding file:vfork as runtime object loaded at 0x400000-0x602000 | |
[ 1] bkeep_mmap: 0x400000-0x401000 | |
[ 1] bkeep_mmap: 0x600000-0x602000 | |
[ 1] brk area: 0x1504000 - 0x1505000 | |
[ 1] brk reserved area: 0x1505000 - 0x3504000 | |
[ 1] bkeep_mmap: 0x1504000-0x1505000 | |
[ 1] bkeep_mmap: 0x1505000-0x3504000 | |
[ 1] search interpreter: /lib/ld-linux-x86-64.so.2 | |
[ 1] bkeep_mmap: 0xba83000-0xba87000 | |
[ 1] find unmapped vma between 0x10000-0xbaa4000 | |
[ 1] get unmapped: 0xb380000-0xb5a3000 | |
[ 1] bkeep_mmap: 0xb380000-0xb5a3000 | |
[ 1] bkeep_mprotect: 0xb3a1000-0xb5a0000 | |
[ 1] bkeep_mmap: 0xb380000-0xb3a1000 | |
[ 1] bkeep_mmap: 0xb5a0000-0xb5a3000 | |
[ 1] bkeep_mmap: 0xb5a0000-0xb5a2000 | |
[ 1] bkeep_mprotect: 0xb5a0000-0xb5a2000 | |
[ 1] bkeep_mmap: 0xb5a2000-0xb5a3000 | |
[ 1] bkeep_mmap: 0xb5a2000-0xb5a3000 | |
[ 1] shim process initialized | |
[ 1] ---- shim_brk(0x0) = 0x1504000 | |
[ 1] ---- shim_uname(0xb9a3350) = 0 | |
[ 1] ---- shim_mmap(0x0,4096,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0) ... | |
[P7548] set tcb to 0xffd9a40 | |
[ 1] find unmapped vma between 0x10000-0xbaa4000 | |
[P7548] ipc helper thread started | |
[ 1] get unmapped: 0xba82000-0xba83000 | |
[ 1] bkeep_mmap: 0xba82000-0xba83000 | |
[ 1] ---- return from shim_mmap(...) = 0xba82000 | |
[P7548] bkeep_mmap: 0xba7e000-0xba83000 | |
[P7548] Check vma flag failure: vma flags 22, checked flags 20000022 | |
bug() bookkeep/shim_vma.c:258 | |
[ 1] ---- shim_open("/lib/tls/libc.so.6",O_RDONLY|2000000,1326420530) ... | |
[P7548] teminating the whole process | |
[P7548] deleting port 0xba8d0b0 (handle 0xbfadd80) for process 0 | |
[ 1] ---- return from shim_open(...) = -2 | |
[P7548] deleting port 0xba8d038 (handle 0xbfada40) for process 0 | |
[P7548] process 1070727548 successfully terminated | |
[ 1] ---- shim_stat("/lib/tls",0xb9a2da6) = -2 | |
[ 1] ---- shim_open("/lib/libc.so.6",O_RDONLY|2000000,1326420530) ... | |
^C[ 1] signal_logs[1]: head=0, tail=1 | |
[ 1] memory fault at 0x0 (IP = 0xbd87c79) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment