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

Issue 216603002: Tell nacl_helper to use non SFI mode in HandleForkRequest (Closed)

Created:
6 years, 9 months ago by hamaji
Modified:
6 years, 8 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Tell nacl_helper to use non SFI mode in HandleForkRequest Before this patch, we were passing this info by the first IPC to nacl_helper (NaClProcessMsg_Start). This timing is too late for seccomp sandbox initialization. This patch introduces a new process type, nacl-loader-nonsfi. For now, nacl_helper says it can handle both nacl-loader and nacl-loader-nonsfi. Once we have splitted nacl_helper into two binaries, we will probably create two NaClForkDelegate instances and let each of them to focus on a single process type. Also removed uses_nonsfi_mode from NaClStartParams. This is unnecessary anymore. BUG=https://code.google.com/p/nativeclient/issues/detail?id=3734 TEST=out/Release/browser_tests --gtest_filter='NaCl*' and trybot R=jln@chromium.org, jochen@chromium.org, mseaborn@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=261279

Patch Set 1 #

Total comments: 14

Patch Set 2 : #

Total comments: 11

Patch Set 3 : #

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Total comments: 4

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -33 lines) Patch
M chrome/app/chrome_main_delegate.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M components/nacl/browser/nacl_process_host.cc View 1 2 4 chunks +18 lines, -15 lines 0 comments Download
M components/nacl/common/nacl_messages.h View 1 chunk +0 lines, -1 line 0 comments Download
M components/nacl/common/nacl_switches.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/nacl/common/nacl_switches.cc View 1 1 chunk +6 lines, -1 line 0 comments Download
M components/nacl/common/nacl_types.h View 1 chunk +0 lines, -1 line 0 comments Download
M components/nacl/common/nacl_types.cc View 1 chunk +1 line, -2 lines 0 comments Download
M components/nacl/loader/nacl_helper_linux.cc View 1 7 chunks +15 lines, -5 lines 0 comments Download
M components/nacl/loader/nacl_listener.h View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M components/nacl/loader/nacl_listener.cc View 1 2 3 4 5 4 chunks +6 lines, -2 lines 0 comments Download
M components/nacl/zygote/nacl_fork_delegate_linux.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M components/nacl/zygote/nacl_fork_delegate_linux.cc View 1 2 3 chunks +9 lines, -2 lines 0 comments Download
M content/public/common/zygote_fork_delegate_linux.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M content/zygote/zygote_linux.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 50 (0 generated)
hamaji
6 years, 9 months ago (2014-03-28 10:45:05 UTC) #1
Mark Seaborn
https://codereview.chromium.org/216603002/diff/1/components/nacl/browser/nacl_process_host.cc File components/nacl/browser/nacl_process_host.cc (right): https://codereview.chromium.org/216603002/diff/1/components/nacl/browser/nacl_process_host.cc#newcode596 components/nacl/browser/nacl_process_host.cc:596: switches::kNaClNonSfiLoaderProcess : Have you checked all the places that ...
6 years, 9 months ago (2014-03-28 15:38:42 UTC) #2
Mark Seaborn
+jln for my previous comment about nacl_fork_delegate_linux.cc.
6 years, 9 months ago (2014-03-28 15:47:45 UTC) #3
hamaji
https://codereview.chromium.org/216603002/diff/1/components/nacl/browser/nacl_process_host.cc File components/nacl/browser/nacl_process_host.cc (right): https://codereview.chromium.org/216603002/diff/1/components/nacl/browser/nacl_process_host.cc#newcode596 components/nacl/browser/nacl_process_host.cc:596: switches::kNaClNonSfiLoaderProcess : On 2014/03/28 15:38:42, Mark Seaborn wrote: > ...
6 years, 8 months ago (2014-03-30 03:31:35 UTC) #4
Mark Seaborn
> This patch introduces a new process type, nacl-nonsfi-loader. Nit: can you update the commit ...
6 years, 8 months ago (2014-03-31 17:19:59 UTC) #5
hidehiko
FYI: https://codereview.chromium.org/216603002/diff/20001/components/nacl/browser/nacl_process_host.cc File components/nacl/browser/nacl_process_host.cc (right): https://codereview.chromium.org/216603002/diff/20001/components/nacl/browser/nacl_process_host.cc#newcode611 components/nacl/browser/nacl_process_host.cc:611: switches::kNaClLoaderNonSfiProcess : nit: indent?
6 years, 8 months ago (2014-03-31 18:56:17 UTC) #6
Mark Seaborn
https://codereview.chromium.org/216603002/diff/20001/components/nacl/browser/nacl_process_host.cc File components/nacl/browser/nacl_process_host.cc (right): https://codereview.chromium.org/216603002/diff/20001/components/nacl/browser/nacl_process_host.cc#newcode611 components/nacl/browser/nacl_process_host.cc:611: switches::kNaClLoaderNonSfiProcess : On 2014/03/31 18:56:17, hidehiko wrote: > nit: ...
6 years, 8 months ago (2014-03-31 19:35:56 UTC) #7
hamaji
https://codereview.chromium.org/216603002/diff/20001/components/nacl/browser/nacl_process_host.cc File components/nacl/browser/nacl_process_host.cc (right): https://codereview.chromium.org/216603002/diff/20001/components/nacl/browser/nacl_process_host.cc#newcode611 components/nacl/browser/nacl_process_host.cc:611: switches::kNaClLoaderNonSfiProcess : On 2014/03/31 19:35:56, Mark Seaborn wrote: > ...
6 years, 8 months ago (2014-04-01 06:53:09 UTC) #8
hamaji
Adding jochen@ for content/ and chrome/ approval.
6 years, 8 months ago (2014-04-01 06:56:25 UTC) #9
jochen (gone - plz use gerrit)
lgtm
6 years, 8 months ago (2014-04-01 11:28:18 UTC) #10
hamaji
The CQ bit was checked by hamaji@chromium.org
6 years, 8 months ago (2014-04-01 11:58:22 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hamaji@chromium.org/216603002/40001
6 years, 8 months ago (2014-04-01 11:58:25 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-01 12:36:56 UTC) #13
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=58779
6 years, 8 months ago (2014-04-01 12:36:57 UTC) #14
hamaji
On 2014/04/01 12:36:57, I haz the power (commit-bot) wrote: > Retried try job too often ...
6 years, 8 months ago (2014-04-01 15:20:47 UTC) #15
hamaji
Handled a Mark's comment in https://codereview.chromium.org/218633011/ Now uses_nonsfi_mode_ is always available. On Mac and Windows, ...
6 years, 8 months ago (2014-04-01 15:40:18 UTC) #16
jln (very slow on Chromium)
That's a much better model, thanks! Also components/nacl/common/nacl_messages.h lgtm
6 years, 8 months ago (2014-04-01 21:04:16 UTC) #17
Mark Seaborn
The CQ bit was checked by mseaborn@chromium.org
6 years, 8 months ago (2014-04-01 21:21:14 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hamaji@chromium.org/216603002/60001
6 years, 8 months ago (2014-04-01 22:08:08 UTC) #19
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-01 22:18:39 UTC) #20
commit-bot: I haz the power
Internal error: failed to checkout. Please try again.
6 years, 8 months ago (2014-04-01 22:18:41 UTC) #21
Mark Seaborn
The CQ bit was checked by mseaborn@chromium.org
6 years, 8 months ago (2014-04-01 23:36:00 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hamaji@chromium.org/216603002/60001
6 years, 8 months ago (2014-04-01 23:36:28 UTC) #23
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-02 00:19:54 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on win_chromium_compile_dbg
6 years, 8 months ago (2014-04-02 00:19:55 UTC) #25
Mark Seaborn
https://codereview.chromium.org/216603002/diff/60001/components/nacl/loader/nacl_listener.cc File components/nacl/loader/nacl_listener.cc (left): https://codereview.chromium.org/216603002/diff/60001/components/nacl/loader/nacl_listener.cc#oldcode289 components/nacl/loader/nacl_listener.cc:289: #if defined(OS_LINUX) You can't remove these #ifs. This code ...
6 years, 8 months ago (2014-04-02 00:22:22 UTC) #26
hamaji
https://codereview.chromium.org/216603002/diff/60001/components/nacl/loader/nacl_listener.cc File components/nacl/loader/nacl_listener.cc (left): https://codereview.chromium.org/216603002/diff/60001/components/nacl/loader/nacl_listener.cc#oldcode289 components/nacl/loader/nacl_listener.cc:289: #if defined(OS_LINUX) On 2014/04/02 00:22:22, Mark Seaborn wrote: > ...
6 years, 8 months ago (2014-04-02 03:20:43 UTC) #27
hamaji
The CQ bit was checked by hamaji@chromium.org
6 years, 8 months ago (2014-04-02 03:20:48 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hamaji@chromium.org/216603002/80001
6 years, 8 months ago (2014-04-02 03:20:50 UTC) #29
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-02 04:28:03 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on win_chromium_compile_dbg
6 years, 8 months ago (2014-04-02 04:28:03 UTC) #31
Mark Seaborn
https://codereview.chromium.org/216603002/diff/80001/components/nacl/loader/nacl_listener.cc File components/nacl/loader/nacl_listener.cc (left): https://codereview.chromium.org/216603002/diff/80001/components/nacl/loader/nacl_listener.cc#oldcode423 components/nacl/loader/nacl_listener.cc:423: #if defined(OS_LINUX) You can't remove this #if/#endif either. https://codereview.chromium.org/216603002/diff/80001/components/nacl/loader/nacl_listener.cc ...
6 years, 8 months ago (2014-04-02 05:45:15 UTC) #32
hamaji
I might be too relying on the commit queue :( https://codereview.chromium.org/216603002/diff/80001/components/nacl/loader/nacl_listener.cc File components/nacl/loader/nacl_listener.cc (left): https://codereview.chromium.org/216603002/diff/80001/components/nacl/loader/nacl_listener.cc#oldcode423 ...
6 years, 8 months ago (2014-04-02 08:38:39 UTC) #33
hamaji
The CQ bit was checked by hamaji@chromium.org
6 years, 8 months ago (2014-04-02 08:38:51 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hamaji@chromium.org/216603002/90001
6 years, 8 months ago (2014-04-02 08:41:03 UTC) #35
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-02 16:31:06 UTC) #36
commit-bot: I haz the power
Retried try job too often on android_aosp for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_aosp&number=60366
6 years, 8 months ago (2014-04-02 16:31:07 UTC) #37
hamaji
The CQ bit was checked by hamaji@chromium.org
6 years, 8 months ago (2014-04-02 16:39:53 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hamaji@chromium.org/216603002/90001
6 years, 8 months ago (2014-04-02 16:40:22 UTC) #39
hamaji
The CQ bit was unchecked by hamaji@chromium.org
6 years, 8 months ago (2014-04-02 16:41:26 UTC) #40
hamaji
I thought this is failing due to a flakiness, but this could be a real ...
6 years, 8 months ago (2014-04-02 16:44:55 UTC) #41
hamaji
Hmm not sure how this can break one win builder. I'd cq again.
6 years, 8 months ago (2014-04-02 16:54:07 UTC) #42
hamaji
The CQ bit was checked by hamaji@chromium.org
6 years, 8 months ago (2014-04-02 16:54:14 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hamaji@chromium.org/216603002/90001
6 years, 8 months ago (2014-04-02 16:54:45 UTC) #44
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-02 23:36:58 UTC) #45
commit-bot: I haz the power
Retried try job too often on android_aosp for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_aosp&number=60623
6 years, 8 months ago (2014-04-02 23:36:58 UTC) #46
hamaji
The CQ bit was checked by hamaji@chromium.org
6 years, 8 months ago (2014-04-03 02:29:34 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hamaji@chromium.org/216603002/90001
6 years, 8 months ago (2014-04-03 02:35:15 UTC) #48
hamaji
Committed patchset #6 manually as r261279 (presubmit successful).
6 years, 8 months ago (2014-04-03 04:42:05 UTC) #49
hamaji
6 years, 8 months ago (2014-04-03 04:44:19 UTC) #50
Message was sent while issue was closed.
On 2014/04/03 04:42:05, hamaji wrote:
> Committed patchset #6 manually as r261279 (presubmit successful).

So, android_aosp is not working right now. Other chrome devs around me also said
it's annoying. I don't know why cq does not retry win_swarm_triggered. I'll
watch the tree for a while.

Powered by Google App Engine
This is Rietveld 408576698