|
Added support for passing arguments to MinSFI's entry function
This patch modifies the MinSFI invocation interface to accept arguments
in the standard UNIX argc,argv format. The runtime copies these onto
the untrusted stack and invokes the _start_minsfi function with a pointer
to the beginning of the data structure. The sandboxed code will use it
to access the arguments but also to initialize its stack pointer.
The CL also introduces the untrusted support library and functions for
converting between native and untrusted pointers.
BUG= https://code.google.com/p/chromium/issues/detail?id=397177
TEST= ./scons bitcode=1 minsfi=1 minsfi_tests
NOTRY=true
Committed: http://src.chromium.org/viewvc/native_client?view=rev&revision=13728
Total comments: 24
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+391 lines, -21 lines) |
Patch |
|
M |
SConstruct
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
site_scons/site_tools/naclsdk.py
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/include/minsfi.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/include/minsfi_priv.h
|
View
|
1
|
4 chunks |
+24 lines, -2 lines |
0 comments
|
Download
|
|
A |
src/include/minsfi_ptr.h
|
View
|
1
|
1 chunk |
+52 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/minsfi/trusted/entry.c
|
View
|
1
|
3 chunks |
+60 lines, -4 lines |
0 comments
|
Download
|
|
A + |
src/minsfi/untrusted/nacl.scons
|
View
|
|
1 chunk |
+6 lines, -3 lines |
0 comments
|
Download
|
|
A |
src/minsfi/untrusted/start.c
|
View
|
1
|
1 chunk |
+21 lines, -0 lines |
0 comments
|
Download
|
|
M |
tests/minsfi/nacl.scons
|
View
|
1
|
2 chunks |
+12 lines, -3 lines |
0 comments
|
Download
|
|
A + |
tests/minsfi/sandbox_invoke_args.c
|
View
|
|
1 chunk |
+6 lines, -5 lines |
0 comments
|
Download
|
|
M |
tests/minsfi/test_initializer.c
|
View
|
1
|
2 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
|
A |
tests/minsfi/test_invoke_args.c
|
View
|
1
|
1 chunk |
+106 lines, -0 lines |
0 comments
|
Download
|
|
A |
tests/minsfi/test_pointer_conversion.c
|
View
|
1
|
1 chunk |
+96 lines, -0 lines |
0 comments
|
Download
|
Total messages: 13 (7 generated)
|