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

Issue 11761025: When launching PNaCl helper nexes, explicitly disable IRT loading. (Closed)

Created:
7 years, 11 months ago by jvoung (off chromium)
Modified:
7 years, 11 months ago
Reviewers:
Mark Seaborn, jschuh, brettw
CC:
chromium-reviews, yusukes+watch_chromium.org, yzshen+watch_chromium.org, darin-cc_chromium.org, raymes+watch_chromium.org, piman+watch_chromium.org, native-client-reviews_googlegroups.com, ihf+watch_chromium.org
Visibility:
Public.

Description

When launching PNaCl helper nexes, explicitly disable IRT loading. This is done by setting the irt_fd to -1. However NaCl currently errors out when given -1, so this depends on a NaCl-side sel_ldr change which will understand that -1 means skip loading: https://codereview.chromium.org/11743028/ BUG= http://code.google.com/p/nativeclient/issues/detail?id=3241 TEST= manual (patch in NaCl side CL and run PNaCl w/ TOOLS_REVISION at 10509). Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=176389

Patch Set 1 #

Total comments: 10

Patch Set 2 : avoid sending #

Patch Set 3 : avoid sending #

Patch Set 4 : rearrange parameter order, etc. #

Total comments: 2

Patch Set 5 : move the comment back #

Patch Set 6 : rebase #

Patch Set 7 : bump ipc macro limit #

Patch Set 8 : rebase and revert ipc macro #

Patch Set 9 : don't forget to serialize #

Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -25 lines) Patch
M chrome/browser/nacl_host/nacl_process_host.h View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/nacl_host/nacl_process_host.cc View 1 2 3 4 5 6 7 4 chunks +11 lines, -6 lines 0 comments Download
M chrome/browser/renderer_host/chrome_render_message_filter.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/nacl_messages.h View 2 chunks +1 line, -1 line 0 comments Download
M chrome/common/nacl_types.h View 1 2 3 4 5 6 7 2 chunks +3 lines, -1 line 0 comments Download
M chrome/common/nacl_types.cc View 1 2 3 4 5 6 7 2 chunks +11 lines, -4 lines 0 comments Download
M chrome/common/render_messages.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/nacl/nacl_listener.cc View 1 1 chunk +15 lines, -10 lines 0 comments Download
M chrome/renderer/pepper/ppb_nacl_private_impl.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -1 line 0 comments Download
M ppapi/api/private/ppb_nacl_private.idl View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M ppapi/c/private/ppb_nacl_private.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -1 line 0 comments Download
M ppapi/native_client/src/trusted/plugin/nacl_entry_points.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/plugin.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/plugin.cc View 1 2 3 4 chunks +8 lines, -0 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/sel_ldr_launcher_chrome.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/sel_ldr_launcher_chrome.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -1 line 0 comments Download
M ppapi/native_client/src/trusted/plugin/service_runtime.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/service_runtime.cc View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Mark Seaborn
LGTM https://codereview.chromium.org/11761025/diff/1/chrome/nacl/nacl_listener.cc File chrome/nacl/nacl_listener.cc (right): https://codereview.chromium.org/11761025/diff/1/chrome/nacl/nacl_listener.cc#newcode253 chrome/nacl/nacl_listener.cc:253: args->irt_fd = -1; Maybe comment that the IRT ...
7 years, 11 months ago (2013-01-04 00:05:41 UTC) #1
jvoung (off chromium)
https://codereview.chromium.org/11761025/diff/1/chrome/nacl/nacl_listener.cc File chrome/nacl/nacl_listener.cc (right): https://codereview.chromium.org/11761025/diff/1/chrome/nacl/nacl_listener.cc#newcode253 chrome/nacl/nacl_listener.cc:253: args->irt_fd = -1; On 2013/01/04 00:05:41, Mark Seaborn wrote: ...
7 years, 11 months ago (2013-01-04 00:29:42 UTC) #2
jvoung (off chromium)
https://codereview.chromium.org/11761025/diff/1/chrome/renderer/pepper/ppb_nacl_private_impl.cc File chrome/renderer/pepper/ppb_nacl_private_impl.cc (right): https://codereview.chromium.org/11761025/diff/1/chrome/renderer/pepper/ppb_nacl_private_impl.cc#newcode108 chrome/renderer/pepper/ppb_nacl_private_impl.cc:108: PP_ToBool(uses_irt), On 2013/01/04 00:05:41, Mark Seaborn wrote: > You ...
7 years, 11 months ago (2013-01-04 17:09:23 UTC) #3
Mark Seaborn
LGTM https://codereview.chromium.org/11761025/diff/10004/chrome/browser/nacl_host/nacl_process_host.cc File chrome/browser/nacl_host/nacl_process_host.cc (right): https://codereview.chromium.org/11761025/diff/10004/chrome/browser/nacl_host/nacl_process_host.cc#newcode729 chrome/browser/nacl_host/nacl_process_host.cc:729: // Send over the IRT file handle. We ...
7 years, 11 months ago (2013-01-04 17:40:53 UTC) #4
jvoung (off chromium)
+brettw for ppapi and chrome/renderer/pepper OWNERS +jschuh for chrome/common/*_messages OWNERS https://codereview.chromium.org/11761025/diff/10004/chrome/browser/nacl_host/nacl_process_host.cc File chrome/browser/nacl_host/nacl_process_host.cc (right): https://codereview.chromium.org/11761025/diff/10004/chrome/browser/nacl_host/nacl_process_host.cc#newcode729 ...
7 years, 11 months ago (2013-01-04 17:59:26 UTC) #5
jschuh
ipc security lgtm
7 years, 11 months ago (2013-01-04 20:50:53 UTC) #6
jvoung (off chromium)
brettw: ping Looks like the number of parameters exceeded the amount for the current ipc ...
7 years, 11 months ago (2013-01-07 19:30:56 UTC) #7
brettw
Our rule for the IPC stuff is if you need more than what we have ...
7 years, 11 months ago (2013-01-07 20:16:33 UTC) #8
Mark Seaborn
On 7 January 2013 12:16, <brettw@chromium.org> wrote: > Our rule for the IPC stuff is ...
7 years, 11 months ago (2013-01-07 20:23:13 UTC) #9
Mark Seaborn
On 7 January 2013 12:16, <brettw@chromium.org> wrote: > Our rule for the IPC stuff is ...
7 years, 11 months ago (2013-01-07 20:23:13 UTC) #10
brettw
If it were me I would do the struct anyway. We'll almost surely be adding ...
7 years, 11 months ago (2013-01-07 20:47:29 UTC) #11
jvoung - send to chromium...
On 2013/01/07 20:47:29, brettw wrote: > If it were me I would do the struct ...
7 years, 11 months ago (2013-01-07 22:42:32 UTC) #12
brettw
The only downside is figuring out the macros to serialize the struct.
7 years, 11 months ago (2013-01-07 22:53:59 UTC) #13
jvoung (off chromium)
On 2013/01/07 22:53:59, brettw wrote: > The only downside is figuring out the macros to ...
7 years, 11 months ago (2013-01-08 22:26:11 UTC) #14
brettw
I'm not really sure what your problem is, can you elaborate?
7 years, 11 months ago (2013-01-09 07:02:48 UTC) #15
jvoung (off chromium)
7 years, 11 months ago (2013-01-11 01:20:10 UTC) #16
rebased on top of other CLs and reverted the IPC macro addition

Powered by Google App Engine
This is Rietveld 408576698