Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1366)

Issue 546883003: MinSFI: Passing arguments to the entry function (Closed)

Created:
6 years, 3 months ago by dbrazdil
Modified:
6 years, 3 months ago
CC:
native-client-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/native_client/src/native_client.git@master
Project:
nacl
Visibility:
Public.

Description

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

Patch Set 1 : #

Total comments: 24

Patch Set 2 : #

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

Messages

Total messages: 13 (7 generated)
dbrazdil
This won't pass tests until the LLVM deps are updated, but it's ready.
6 years, 3 months ago (2014-09-10 15:31:31 UTC) #6
jvoung (off chromium)
https://codereview.chromium.org/546883003/diff/80001/src/include/minsfi_priv.h File src/include/minsfi_priv.h (right): https://codereview.chromium.org/546883003/diff/80001/src/include/minsfi_priv.h#newcode15 src/include/minsfi_priv.h:15: /* Definition of the untrusted pointer type */ It ...
6 years, 3 months ago (2014-09-10 17:04:30 UTC) #7
dbrazdil
https://codereview.chromium.org/546883003/diff/80001/src/include/minsfi_priv.h File src/include/minsfi_priv.h (right): https://codereview.chromium.org/546883003/diff/80001/src/include/minsfi_priv.h#newcode15 src/include/minsfi_priv.h:15: /* Definition of the untrusted pointer type */ On ...
6 years, 3 months ago (2014-09-10 18:49:48 UTC) #9
jvoung (off chromium)
lgtm
6 years, 3 months ago (2014-09-11 01:17:38 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/546883003/120001
6 years, 3 months ago (2014-09-11 01:19:51 UTC) #12
commit-bot: I haz the power
6 years, 3 months ago (2014-09-11 01:37:07 UTC) #13
Message was sent while issue was closed.
Committed patchset #2 (id:120001) as 13728

Powered by Google App Engine
This is Rietveld 408576698