Address or offset of all syscall trampolines

15 views
Skip to first unread message

Lou Gavin

unread,
Jul 13, 2016, 9:03:47 AM7/13/16
to Native-Client-Discuss
Hello all,

I know that the trampolines are the interface for the untrusted code to invoke system calls, 

All trampolines are identical and responsible for certain syscall.

What I what to know is that is there information about where (offset or address) these trampolines exactly are?

Ex : 

assume the entry point of trampoline_of_nacl_mkdir is at 0x1120

Then, I can translate some native code to the following assembly : 

[guest]
;
;text section
;
call _sys_mkdir
-------------------------------------


[host]
-------------------------------------
;
;text section
;
mov eax dword[ds:ebx]
and eax, 0xffffffe0
call eax
-------------------------------------
;
;data section
;
20 11 00 00 ;trampoline of nacl_mkdir

Thanks in advance.
Reply all
Reply to author
Forward
0 new messages