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

Issue 140573003: Connect PPAPI IPC channels for non-SFI mode. (Closed)

Created:
6 years, 10 months ago by hidehiko
Modified:
6 years, 10 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, hamaji, mazda, rmcilroy
Visibility:
Public.

Description

Connect PPAPI IPC channels for non-SFI mode. By this CL, plugin starts to talk with hosts via IPC. For that purpose, ppapi_proxy is linked to nacl_helper (temporarily). This increase the size of nacl_helper, but when we split nacl_helper for non-sfi mode, it'll be resolved. In SFI mode, this CL shouldn't affect the concept of IPC channel connection between the plugin and the hosts. We still use NaClIPCAdapter to wrap the IPC channel, and NaClDesc for the plugin-side IPC file descriptors. In non-SFI mode, we neither intercept nor rewrite the message using NaClIPCAdapter, and the channels are connected between the plugin and the hosts directly. Note: plugin_main_nacl.cc is renamed to plugin_main.cc, because files with _nacl.cc suffix are automatically excluded from the sources of non-untrusted libs. This increases the size of nacl_helper (temporarily) intentionally. GYP_DEFINES="target_arch=ia32 remove_webcore_debug_symbols=1 linux_strip_symbols=1" GYP_GENERATORS="ninja" gclient runhooks Before: text data bss dec hex filename 1469882 15576 108644 1594102 1852f6 out/Release/nacl_helper After: text data bss dec hex filename 5641443 124636 126980 5893059 59ebc3 out/Release/nacl_helper GYP_DEFINES="target_arch=x64 remove_webcore_debug_symbols=1 linux_strip_symbols=1" GYP_GENERATORS="ninja" gclient runhooks Before: text data bss dec hex filename 2063530 27910 213872 2305312 232d20 out/Release/nacl_helper After: text data bss dec hex filename 6304467 234424 247984 6786875 678f3b out/Release/nacl_helper BUG=https://code.google.com/p/nativeclient/issues/detail?id=3734 TEST=Ran trybot. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=252503 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=252556

Patch Set 1 : #

Total comments: 28

Patch Set 2 : Rebase and address review comments. #

Total comments: 8

Patch Set 3 : #

Total comments: 13

Patch Set 4 : #

Total comments: 34

Patch Set 5 : #

Total comments: 43

Patch Set 6 : Rebase #

Patch Set 7 : #

Patch Set 8 : Rebase #

Patch Set 9 : Fix build error #

Unified diffs Side-by-side diffs Delta from patch set Stats (+233 lines, -365 lines) Patch
M components/nacl.gyp View 1 2 3 4 5 6 7 8 3 chunks +5 lines, -0 lines 0 comments Download
M components/nacl/loader/DEPS View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M components/nacl/loader/nacl_listener.cc View 1 2 3 4 5 6 2 chunks +44 lines, -8 lines 0 comments Download
A components/nacl/loader/nonsfi/DEPS View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M components/nacl/loader/nonsfi/irt_interfaces.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -0 lines 0 comments Download
M components/nacl/loader/nonsfi/irt_interfaces.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
A components/nacl/loader/nonsfi/irt_ppapi.cc View 1 2 3 4 5 6 1 chunk +44 lines, -0 lines 0 comments Download
M components/nacl/loader/nonsfi/nonsfi_main.cc View 1 2 3 4 5 6 3 chunks +46 lines, -15 lines 0 comments Download
M ipc/ipc_channel.h View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/ppruntime.h View 1 2 3 4 1 chunk +0 lines, -3 lines 0 comments Download
M ppapi/ppapi_proxy.gypi View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M ppapi/proxy/irt_ppapi.c View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
A ppapi/proxy/plugin_main_irt.h View 1 2 3 4 5 6 1 chunk +31 lines, -0 lines 0 comments Download
A + ppapi/proxy/plugin_main_irt.cc View 1 2 3 4 5 6 7 9 chunks +45 lines, -10 lines 0 comments Download
D ppapi/proxy/plugin_main_nacl.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -327 lines 0 comments Download

Messages

Total messages: 55 (0 generated)
Mark Seaborn
https://codereview.chromium.org/140573003/diff/30001/components/nacl/loader/nacl_listener.cc File components/nacl/loader/nacl_listener.cc (right): https://codereview.chromium.org/140573003/diff/30001/components/nacl/loader/nacl_listener.cc#newcode272 components/nacl/loader/nacl_listener.cc:272: if (params.enable_nonsfi_mode) { You should be able to use ...
6 years, 10 months ago (2014-02-07 23:54:10 UTC) #1
Mark Seaborn
One other thing: When this is committed, it will increase the size of nacl_helper, because ...
6 years, 10 months ago (2014-02-08 02:39:59 UTC) #2
hidehiko
Thank you for your comment. First of all, sorry for the confusion with [WIP] CLs. ...
6 years, 10 months ago (2014-02-10 08:18:33 UTC) #3
Mark Seaborn
On 10 February 2014 00:18, <hidehiko@chromium.org> wrote: > Reviewers: Mark Seaborn, > > Message: > ...
6 years, 10 months ago (2014-02-10 18:16:55 UTC) #4
Mark Seaborn
https://codereview.chromium.org/140573003/diff/30001/components/nacl/loader/nacl_listener.cc File components/nacl/loader/nacl_listener.cc (right): https://codereview.chromium.org/140573003/diff/30001/components/nacl/loader/nacl_listener.cc#newcode272 components/nacl/loader/nacl_listener.cc:272: if (params.enable_nonsfi_mode) { On 2014/02/10 08:18:34, hidehiko wrote: > ...
6 years, 10 months ago (2014-02-10 18:57:34 UTC) #5
Mark Seaborn
On 10 February 2014 10:57, <mseaborn@chromium.org> wrote: > > Currently, Dispatchers creates the IPC::SyncChannel, and ...
6 years, 10 months ago (2014-02-11 00:56:16 UTC) #6
hidehiko
Hi, thank you for your review. (I have a bit trouble on my local env, ...
6 years, 10 months ago (2014-02-11 19:30:20 UTC) #7
hidehiko
PTAL? I think it's time to move to the code review, from the brief discussion ...
6 years, 10 months ago (2014-02-12 15:00:06 UTC) #8
hidehiko
Oops, sorry, I forgot to send replies... https://codereview.chromium.org/140573003/diff/30001/ppapi/proxy/plugin_main.cc File ppapi/proxy/plugin_main.cc (right): https://codereview.chromium.org/140573003/diff/30001/ppapi/proxy/plugin_main.cc#newcode4 ppapi/proxy/plugin_main.cc:4: On 2014/02/10 ...
6 years, 10 months ago (2014-02-12 15:00:38 UTC) #9
Mark Seaborn
On 12 February 2014 07:00, <hidehiko@chromium.org> wrote: > On 2014/02/10 18:57:35, Mark Seaborn wrote: > ...
6 years, 10 months ago (2014-02-13 06:11:25 UTC) #10
Mark Seaborn
Some incomplete, minor comments below. Today I tried out the patch. I ran a small ...
6 years, 10 months ago (2014-02-13 06:18:24 UTC) #11
hidehiko
Thank you for your review. > * Is this a problem with existing NaCl (SFI ...
6 years, 10 months ago (2014-02-13 10:18:05 UTC) #12
dmichael (off chromium)
https://codereview.chromium.org/140573003/diff/530001/components/nacl/loader/nonsfi/nonsfi_main.cc File components/nacl/loader/nonsfi/nonsfi_main.cc (right): https://codereview.chromium.org/140573003/diff/530001/components/nacl/loader/nonsfi/nonsfi_main.cc#newcode22 components/nacl/loader/nonsfi/nonsfi_main.cc:22: #include "ppapi/native_client/src/shared/ppapi_proxy/ppruntime.h" I don't really want us to add ...
6 years, 10 months ago (2014-02-13 19:00:34 UTC) #13
dmichael (off chromium)
By the way, please add one of us (dmichael or teravest) at the time you ...
6 years, 10 months ago (2014-02-13 19:05:09 UTC) #14
Mark Seaborn
https://codereview.chromium.org/140573003/diff/530001/ppapi/native_client/src/shared/ppapi_proxy/ppruntime.h File ppapi/native_client/src/shared/ppapi_proxy/ppruntime.h (right): https://codereview.chromium.org/140573003/diff/530001/ppapi/native_client/src/shared/ppapi_proxy/ppruntime.h#newcode34 ppapi/native_client/src/shared/ppapi_proxy/ppruntime.h:34: namespace proxy { On 2014/02/13 19:00:34, dmichael wrote: > ...
6 years, 10 months ago (2014-02-14 01:55:36 UTC) #15
Mark Seaborn
[On the AddFilter() question:] On 13 February 2014 02:18, <hidehiko@chromium.org> wrote: > Questions: > - ...
6 years, 10 months ago (2014-02-14 02:01:31 UTC) #16
hidehiko
Hi, thank you for your review! Dave, I'll ask you to review future CLs, too. ...
6 years, 10 months ago (2014-02-14 10:49:05 UTC) #17
dmichael (off chromium)
ppapi lgtm, thanks!
6 years, 10 months ago (2014-02-14 18:48:26 UTC) #18
Mark Seaborn
https://codereview.chromium.org/140573003/diff/730001/components/nacl/loader/nacl_listener.cc File components/nacl/loader/nacl_listener.cc (right): https://codereview.chromium.org/140573003/diff/730001/components/nacl/loader/nacl_listener.cc#newcode287 components/nacl/loader/nacl_listener.cc:287: // the plugin side, because the IPC::Listener needs to ...
6 years, 10 months ago (2014-02-15 03:00:51 UTC) #19
hidehiko
Thank you for your review! PTAL? Note that, in order to fix the compile errors ...
6 years, 10 months ago (2014-02-19 13:05:02 UTC) #20
Mark Seaborn
Can you measure the size increase in nacl_helper this change introduces, please, and put the ...
6 years, 10 months ago (2014-02-19 17:00:29 UTC) #21
Mark Seaborn
https://codereview.chromium.org/140573003/diff/1210015/ppapi/proxy/plugin_main_irt.h File ppapi/proxy/plugin_main_irt.h (right): https://codereview.chromium.org/140573003/diff/1210015/ppapi/proxy/plugin_main_irt.h#newcode9 ppapi/proxy/plugin_main_irt.h:9: #include "ppapi/proxy/ppapi_proxy_export.h" On 2014/02/19 17:00:30, Mark Seaborn wrote: > ...
6 years, 10 months ago (2014-02-19 17:07:54 UTC) #22
Mark Seaborn
+jam: Can you do an OWNERS review for the change in ipc/ please?
6 years, 10 months ago (2014-02-19 17:10:48 UTC) #23
dmichael (off chromium)
jam is on paternity leave. cpu@, are you a good reviewer for this ipc change?
6 years, 10 months ago (2014-02-19 18:08:20 UTC) #24
jln (very slow on Chromium)
Exposing SocketPair() from ipc/ lgtm. One possible change would be to add more opaque encapsulation ...
6 years, 10 months ago (2014-02-19 22:40:09 UTC) #25
cpu_(ooo_6.6-7.5)
Not comfortable exposing that function there. Removed myself and added brettw for IPC review.
6 years, 10 months ago (2014-02-19 23:01:31 UTC) #26
hidehiko
Thank you for reviews! PTAL? Thank you for alternate reviewer suggestion, cpu@. But Brett seems ...
6 years, 10 months ago (2014-02-20 18:49:59 UTC) #27
Tom Sepez
+jam@ for layering on the IPC side.
6 years, 10 months ago (2014-02-20 18:56:52 UTC) #28
Mark Seaborn
On 20 February 2014 10:56, <tsepez@chromium.org> wrote: > +jam@ for layering on the IPC side. ...
6 years, 10 months ago (2014-02-20 19:00:01 UTC) #29
Tom Sepez
On 2014/02/20 19:00:01, Mark Seaborn wrote: > On 20 February 2014 10:56, <mailto:tsepez@chromium.org> wrote: > ...
6 years, 10 months ago (2014-02-20 19:02:25 UTC) #30
hidehiko
Again, thank you for reviews! Sending this to CQ. - hidehiko On 2014/02/20 19:02:25, Tom ...
6 years, 10 months ago (2014-02-20 19:45:26 UTC) #31
hidehiko
The CQ bit was checked by hidehiko@chromium.org
6 years, 10 months ago (2014-02-20 19:45:41 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hidehiko@chromium.org/140573003/1480001
6 years, 10 months ago (2014-02-20 19:48:42 UTC) #33
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-20 19:48:46 UTC) #34
commit-bot: I haz the power
Failed to apply patch for ppapi/proxy/plugin_main_irt.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; A ppapi/proxy/plugin_main_irt.cc ...
6 years, 10 months ago (2014-02-20 19:48:47 UTC) #35
hidehiko
The CQ bit was checked by hidehiko@chromium.org
6 years, 10 months ago (2014-02-20 19:57:13 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hidehiko@chromium.org/140573003/1600001
6 years, 10 months ago (2014-02-20 19:57:55 UTC) #37
Mark Seaborn
The CQ bit was unchecked by mseaborn@chromium.org
6 years, 10 months ago (2014-02-20 20:23:26 UTC) #38
Mark Seaborn
I unticked the commit box because I think you missed my earlier request: On 2014/02/19 ...
6 years, 10 months ago (2014-02-20 20:25:24 UTC) #39
Mark Seaborn
CC'ing rmcilroy (perf sheriff for Thursday/Friday): This change is likely to increase the size of ...
6 years, 10 months ago (2014-02-21 00:43:10 UTC) #40
Mark Seaborn
I checked the size increase on x86-64 Linux: Before: out/Release/nacl_helper is 2539384 bytes (unstripped) $ ...
6 years, 10 months ago (2014-02-21 02:08:12 UTC) #41
hidehiko
Sorry for my mistake, and thank you, Mark, for catching this. I measured on ia32 ...
6 years, 10 months ago (2014-02-21 03:53:27 UTC) #42
hidehiko
The CQ bit was checked by hidehiko@chromium.org
6 years, 10 months ago (2014-02-21 03:53:37 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hidehiko@chromium.org/140573003/1600001
6 years, 10 months ago (2014-02-21 03:53:57 UTC) #44
commit-bot: I haz the power
Change committed as 252503
6 years, 10 months ago (2014-02-21 05:35:26 UTC) #45
loislo
On 2014/02/21 05:35:26, I haz the power (commit-bot) wrote: > Change committed as 252503 compilation ...
6 years, 10 months ago (2014-02-21 06:27:45 UTC) #46
loislo
On 2014/02/21 06:27:45, loislo wrote: > On 2014/02/21 05:35:26, I haz the power (commit-bot) wrote: ...
6 years, 10 months ago (2014-02-21 06:28:11 UTC) #47
hidehiko
It seems this breaks the linux build due to the implicit confliction with submitted CLs. ...
6 years, 10 months ago (2014-02-21 06:37:06 UTC) #48
hidehiko
The CQ bit was checked by hidehiko@chromium.org
6 years, 10 months ago (2014-02-21 06:37:17 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hidehiko@chromium.org/140573003/1860001
6 years, 10 months ago (2014-02-21 06:37:24 UTC) #50
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-21 08:43:15 UTC) #51
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=267654
6 years, 10 months ago (2014-02-21 08:43:16 UTC) #52
hidehiko
The CQ bit was checked by hidehiko@chromium.org
6 years, 10 months ago (2014-02-21 08:57:26 UTC) #53
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hidehiko@chromium.org/140573003/1860001
6 years, 10 months ago (2014-02-21 08:57:37 UTC) #54
commit-bot: I haz the power
6 years, 10 months ago (2014-02-21 15:05:26 UTC) #55
Message was sent while issue was closed.
Change committed as 252556

Powered by Google App Engine
This is Rietveld 408576698