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

Issue 279693002: Split NaCl SFI and non-SFI helpers into separate processes (Closed)

Created:
6 years, 7 months ago by mdempsky
Modified:
6 years, 7 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Split NaCl SFI and non-SFI helpers into separate processes With this change, NaCl SFI and non-SFI processes now run in disjoint PID namespaces, so the kernel should prevent sending signals from an SFI process to a non-SFI process, or vice versa. (The NaCl PID namespaces are still nested within the renderer's PID namespace though.) BUG=364945 NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=270244

Patch Set 1 #

Total comments: 4

Patch Set 2 : Respond to jln feedback #

Total comments: 3

Patch Set 3 : Only launch non-SFI helper process if needed #

Patch Set 4 : Oops, forgot to "git add" new files #

Total comments: 6

Patch Set 5 : Move AddNaClZygoteForkDelegates to components/nacl/zygote per feedback #

Patch Set 6 : Fix preprocessor logic (|| -> &&) and tweak a little bit #

Total comments: 2

Patch Set 7 : Copy kEnableNaClNonSfiMode switch to zygote processes #

Patch Set 8 : Refactor IsNonSFIModeEnabled() into nacl/common #

Total comments: 4

Patch Set 9 : Respond to mseaborn feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -29 lines) Patch
M chrome/app/chrome_main_delegate.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M components/nacl.gyp View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
A components/nacl/common/nacl_nonsfi_util.h View 1 2 3 4 5 6 7 8 1 chunk +18 lines, -0 lines 0 comments Download
A components/nacl/common/nacl_nonsfi_util.cc View 1 2 3 4 5 6 7 1 chunk +24 lines, -0 lines 0 comments Download
M components/nacl/renderer/ppb_nacl_private_impl.cc View 1 2 3 4 5 6 7 8 4 chunks +5 lines, -15 lines 0 comments Download
M components/nacl/zygote/nacl_fork_delegate_linux.h View 1 2 3 4 3 chunks +13 lines, -1 line 0 comments Download
M components/nacl/zygote/nacl_fork_delegate_linux.cc View 1 2 3 4 5 6 7 7 chunks +32 lines, -12 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
mdempsky
This CL builds on top of https://codereview.chromium.org/269413004/. For now, it just runs two instances of ...
6 years, 7 months ago (2014-05-09 05:39:42 UTC) #1
jln (very slow on Chromium)
This lgtm. It's pretty magic that it "just works" :) There are a few things ...
6 years, 7 months ago (2014-05-09 20:51:19 UTC) #2
mdempsky
On 2014/05/09 20:51:19, jln wrote: > This lgtm. It's pretty magic that it "just works" ...
6 years, 7 months ago (2014-05-09 21:34:11 UTC) #3
Mark Seaborn
https://codereview.chromium.org/279693002/diff/20001/chrome/app/chrome_main_delegate.cc File chrome/app/chrome_main_delegate.cc (right): https://codereview.chromium.org/279693002/diff/20001/chrome/app/chrome_main_delegate.cc#newcode862 chrome/app/chrome_main_delegate.cc:862: delegates->push_back(new NaClForkDelegate(true /* nonsfi_mode */)); This will launch an ...
6 years, 7 months ago (2014-05-09 22:44:47 UTC) #4
jln (very slow on Chromium)
https://codereview.chromium.org/279693002/diff/20001/chrome/app/chrome_main_delegate.cc File chrome/app/chrome_main_delegate.cc (right): https://codereview.chromium.org/279693002/diff/20001/chrome/app/chrome_main_delegate.cc#newcode862 chrome/app/chrome_main_delegate.cc:862: delegates->push_back(new NaClForkDelegate(true /* nonsfi_mode */)); On 2014/05/09 22:44:48, Mark ...
6 years, 7 months ago (2014-05-09 22:59:28 UTC) #5
mdempsky
https://codereview.chromium.org/279693002/diff/20001/chrome/app/chrome_main_delegate.cc File chrome/app/chrome_main_delegate.cc (right): https://codereview.chromium.org/279693002/diff/20001/chrome/app/chrome_main_delegate.cc#newcode862 chrome/app/chrome_main_delegate.cc:862: delegates->push_back(new NaClForkDelegate(true /* nonsfi_mode */)); On 2014/05/09 22:44:48, Mark ...
6 years, 7 months ago (2014-05-09 23:49:35 UTC) #6
Mark Seaborn
https://codereview.chromium.org/279693002/diff/60001/components/nacl/app/nacl_fork_delegates_linux.cc File components/nacl/app/nacl_fork_delegates_linux.cc (right): https://codereview.chromium.org/279693002/diff/60001/components/nacl/app/nacl_fork_delegates_linux.cc#newcode12 components/nacl/app/nacl_fork_delegates_linux.cc:12: void AddNaClZygoteForkDelegates( I think this belongs in components/nacl/zygote/nacl_fork_delegate_linux.cc. It ...
6 years, 7 months ago (2014-05-10 00:10:40 UTC) #7
jln (very slow on Chromium)
https://codereview.chromium.org/279693002/diff/60001/components/nacl/zygote/nacl_fork_delegate_linux.cc File components/nacl/zygote/nacl_fork_delegate_linux.cc (right): https://codereview.chromium.org/279693002/diff/60001/components/nacl/zygote/nacl_fork_delegate_linux.cc#newcode47 components/nacl/zygote/nacl_fork_delegate_linux.cc:47: #if defined(OS_CHROMEOS) || defined(ARCH_CPU_ARMEL) On 2014/05/10 00:10:40, Mark Seaborn ...
6 years, 7 months ago (2014-05-10 00:44:50 UTC) #8
mdempsky
https://codereview.chromium.org/279693002/diff/60001/components/nacl/app/nacl_fork_delegates_linux.cc File components/nacl/app/nacl_fork_delegates_linux.cc (right): https://codereview.chromium.org/279693002/diff/60001/components/nacl/app/nacl_fork_delegates_linux.cc#newcode12 components/nacl/app/nacl_fork_delegates_linux.cc:12: void AddNaClZygoteForkDelegates( On 2014/05/10 00:10:40, Mark Seaborn wrote: > ...
6 years, 7 months ago (2014-05-10 01:58:52 UTC) #9
mdempsky
https://codereview.chromium.org/279693002/diff/100001/components/nacl/zygote/nacl_fork_delegate_linux.cc File components/nacl/zygote/nacl_fork_delegate_linux.cc (right): https://codereview.chromium.org/279693002/diff/100001/components/nacl/zygote/nacl_fork_delegate_linux.cc#newcode55 components/nacl/zygote/nacl_fork_delegate_linux.cc:55: switches::kEnableNaClNonSfiMode); Argh, this switch isn't passed down to the ...
6 years, 7 months ago (2014-05-10 03:01:50 UTC) #10
mdempsky
https://codereview.chromium.org/279693002/diff/60001/components/nacl/zygote/nacl_fork_delegate_linux.cc File components/nacl/zygote/nacl_fork_delegate_linux.cc (right): https://codereview.chromium.org/279693002/diff/60001/components/nacl/zygote/nacl_fork_delegate_linux.cc#newcode47 components/nacl/zygote/nacl_fork_delegate_linux.cc:47: #if defined(OS_CHROMEOS) || defined(ARCH_CPU_ARMEL) On 2014/05/10 01:58:52, mdempsky wrote: ...
6 years, 7 months ago (2014-05-12 22:38:30 UTC) #11
Mark Seaborn
LGTM, thanks https://codereview.chromium.org/279693002/diff/140001/components/nacl/common/nacl_nonsfi_util.h File components/nacl/common/nacl_nonsfi_util.h (right): https://codereview.chromium.org/279693002/diff/140001/components/nacl/common/nacl_nonsfi_util.h#newcode10 components/nacl/common/nacl_nonsfi_util.h:10: // Returns true if non-SFI mode *can* ...
6 years, 7 months ago (2014-05-12 22:49:26 UTC) #12
mdempsky
https://codereview.chromium.org/279693002/diff/140001/components/nacl/common/nacl_nonsfi_util.h File components/nacl/common/nacl_nonsfi_util.h (right): https://codereview.chromium.org/279693002/diff/140001/components/nacl/common/nacl_nonsfi_util.h#newcode10 components/nacl/common/nacl_nonsfi_util.h:10: // Returns true if non-SFI mode *can* run for ...
6 years, 7 months ago (2014-05-12 22:54:24 UTC) #13
mdempsky
cpu: Please review tiny change to chrome/app/chrome_main_delegate.cc for OWNERS approval. Thanks!
6 years, 7 months ago (2014-05-12 22:55:44 UTC) #14
cpu_(ooo_6.6-7.5)
lgtm
6 years, 7 months ago (2014-05-13 19:49:53 UTC) #15
mdempsky
The CQ bit was checked by mdempsky@chromium.org
6 years, 7 months ago (2014-05-13 20:05:56 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mdempsky@chromium.org/279693002/160001
6 years, 7 months ago (2014-05-13 20:06:51 UTC) #17
mdempsky
The CQ bit was unchecked by mdempsky@chromium.org
6 years, 7 months ago (2014-05-13 23:20:29 UTC) #18
mdempsky
The CQ bit was checked by mdempsky@chromium.org
6 years, 7 months ago (2014-05-13 23:20:30 UTC) #19
mdempsky
On 2014/05/13 23:20:30, mdempsky wrote: > The CQ bit was checked by mailto:mdempsky@chromium.org Using NOTRY=true ...
6 years, 7 months ago (2014-05-13 23:21:17 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mdempsky@chromium.org/279693002/160001
6 years, 7 months ago (2014-05-13 23:25:33 UTC) #21
commit-bot: I haz the power
6 years, 7 months ago (2014-05-13 23:33:01 UTC) #22
Message was sent while issue was closed.
Change committed as 270244

Powered by Google App Engine
This is Rietveld 408576698