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

Issue 539683002: MinSFI: Add loader (Closed)

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

Description

Add MinSFI loader This patch implements a memory initialization routine as part of MinSFI's trusted runtime. The code reads the manifest of the sandbox it was compiled against, mmaps a sufficiently large memory region and jumps into the sandbox's entry function. There is no support for multiple simultaneously active sandboxes or multithreading. 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=13722

Patch Set 1 : #

Total comments: 28

Patch Set 2 : #

Patch Set 3 : Reverted signature of _start_minsfi (will be changed in next CL) #

Patch Set 4 : Active sandbox interface #

Total comments: 18

Patch Set 5 : #

Total comments: 2

Patch Set 6 : Tests invoked from buildbots #

Total comments: 8

Patch Set 7 : Fixed nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+671 lines, -5 lines) Patch
M SConstruct View 1 2 3 4 5 4 chunks +6 lines, -0 lines 0 comments Download
M buildbot/buildbot_pnacl.py View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M buildbot/buildbot_pnacl.sh View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M site_scons/site_tools/naclsdk.py View 1 2 3 5 chunks +20 lines, -0 lines 0 comments Download
A src/include/minsfi.h View 1 2 3 4 1 chunk +32 lines, -0 lines 0 comments Download
A src/include/minsfi_priv.h View 1 2 3 4 1 chunk +76 lines, -0 lines 0 comments Download
A + src/minsfi/trusted/build.scons View 1 2 3 1 chunk +8 lines, -3 lines 0 comments Download
A src/minsfi/trusted/entry.c View 1 2 3 1 chunk +65 lines, -0 lines 0 comments Download
A src/minsfi/trusted/loader.c View 1 2 3 4 1 chunk +159 lines, -0 lines 0 comments Download
A src/minsfi/trusted/state.c View 1 2 3 1 chunk +35 lines, -0 lines 0 comments Download
A tests/minsfi/nacl.scons View 1 2 3 4 5 6 1 chunk +69 lines, -0 lines 0 comments Download
A + tests/minsfi/sandbox_dummy.c View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
A tests/minsfi/test_initializer.c View 1 2 3 4 1 chunk +81 lines, -0 lines 0 comments Download
A tests/minsfi/test_memory_layout.c View 1 2 3 4 1 chunk +112 lines, -0 lines 0 comments Download

Messages

Total messages: 42 (29 generated)
dbrazdil
6 years, 3 months ago (2014-09-04 20:00:51 UTC) #12
jvoung (off chromium)
https://codereview.chromium.org/539683002/diff/200001/site_scons/site_tools/naclsdk.py File site_scons/site_tools/naclsdk.py (right): https://codereview.chromium.org/539683002/diff/200001/site_scons/site_tools/naclsdk.py#newcode185 site_scons/site_tools/naclsdk.py:185: llc_cpu = 'x86_64' Not necessarily for this CL, but ...
6 years, 3 months ago (2014-09-05 00:32:00 UTC) #13
dbrazdil
https://codereview.chromium.org/539683002/diff/200001/site_scons/site_tools/naclsdk.py File site_scons/site_tools/naclsdk.py (right): https://codereview.chromium.org/539683002/diff/200001/site_scons/site_tools/naclsdk.py#newcode185 site_scons/site_tools/naclsdk.py:185: llc_cpu = 'x86_64' On 2014/09/05 00:31:59, jvoung wrote: > ...
6 years, 3 months ago (2014-09-05 19:41:38 UTC) #19
dbrazdil
Added an interface for retrieving the active sandbox instance. It doesn't do anything special at ...
6 years, 3 months ago (2014-09-07 18:41:58 UTC) #29
jvoung (off chromium)
https://codereview.chromium.org/539683002/diff/540001/src/include/minsfi.h File src/include/minsfi.h (right): https://codereview.chromium.org/539683002/diff/540001/src/include/minsfi.h#newcode7 src/include/minsfi.h:7: #ifndef SRC_INCLUDE_MINSFI_H_ I think the full NaCl header guards ...
6 years, 3 months ago (2014-09-08 23:18:48 UTC) #30
dbrazdil
https://codereview.chromium.org/539683002/diff/540001/src/include/minsfi.h File src/include/minsfi.h (right): https://codereview.chromium.org/539683002/diff/540001/src/include/minsfi.h#newcode7 src/include/minsfi.h:7: #ifndef SRC_INCLUDE_MINSFI_H_ On 2014/09/08 23:18:47, jvoung wrote: > I ...
6 years, 3 months ago (2014-09-09 00:57:53 UTC) #31
jvoung (off chromium)
https://codereview.chromium.org/539683002/diff/560001/SConstruct File SConstruct (right): https://codereview.chromium.org/539683002/diff/560001/SConstruct#newcode333 SConstruct:333: BitFromArgument(env, 'minsfi', default=env.Bit('bitcode'), Wait... with minsfi=True whenever bitcode=1 means ...
6 years, 3 months ago (2014-09-09 01:32:50 UTC) #32
dbrazdil
https://codereview.chromium.org/539683002/diff/560001/SConstruct File SConstruct (right): https://codereview.chromium.org/539683002/diff/560001/SConstruct#newcode333 SConstruct:333: BitFromArgument(env, 'minsfi', default=env.Bit('bitcode'), On 2014/09/09 01:32:50, jvoung wrote: > ...
6 years, 3 months ago (2014-09-09 01:53:39 UTC) #33
dbrazdil
On 2014/09/09 01:53:39, dbrazdil wrote: > https://codereview.chromium.org/539683002/diff/560001/SConstruct > File SConstruct (right): > > https://codereview.chromium.org/539683002/diff/560001/SConstruct#newcode333 > ...
6 years, 3 months ago (2014-09-09 20:24:31 UTC) #37
jvoung (off chromium)
LGTM otherwise https://codereview.chromium.org/539683002/diff/640001/buildbot/buildbot_pnacl.py File buildbot/buildbot_pnacl.py (right): https://codereview.chromium.org/539683002/diff/640001/buildbot/buildbot_pnacl.py#newcode121 buildbot/buildbot_pnacl.py:121: args=flags_run + ['bitcode=1', 'minsfi=1', 'minsfi_tests']) I don't ...
6 years, 3 months ago (2014-09-09 21:15:45 UTC) #38
dbrazdil
https://codereview.chromium.org/539683002/diff/640001/buildbot/buildbot_pnacl.py File buildbot/buildbot_pnacl.py (right): https://codereview.chromium.org/539683002/diff/640001/buildbot/buildbot_pnacl.py#newcode121 buildbot/buildbot_pnacl.py:121: args=flags_run + ['bitcode=1', 'minsfi=1', 'minsfi_tests']) On 2014/09/09 21:15:45, jvoung ...
6 years, 3 months ago (2014-09-09 22:17:43 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://nativeclient-status.appspot.com/cq/dbrazdil@google.com/539683002/660001
6 years, 3 months ago (2014-09-09 23:23:20 UTC) #41
commit-bot: I haz the power
6 years, 3 months ago (2014-09-09 23:23:57 UTC) #42
Message was sent while issue was closed.
Committed patchset #7 (id:660001) as 13722

Powered by Google App Engine
This is Rietveld 408576698