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

Issue 2054303002: Kill child processes on bad Mojo messages (Closed)

Created:
4 years, 6 months ago by Ken Rockot(use gerrit already)
Modified:
4 years, 6 months ago
Reviewers:
Ilya Sherman, jam
CC:
asvitkine+watch_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, jam, jochen+watch_chromium.org, mkwst+moarreviews-renderer_chromium.org, mkwst+moarreviews-shell_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, Peter Beverloo
Base URL:
https://chromium.googlesource.com/chromium/src.git@bad-message
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Kill child processes on bad Mojo messages Hooks RenderProcessHostImpl and BrowserChildProcessHostImpl up to the new EDK API for process error notifications. If any Mojo bindings receive a malformed message directly from a child process, this will result in the child's termination. BUG=607293 Committed: https://crrev.com/229fb28e6c8dc41792ea517a401529c14214ea3c Cr-Commit-Position: refs/heads/master@{#400085}

Patch Set 1 : . #

Patch Set 2 : . #

Total comments: 9

Patch Set 3 : . #

Total comments: 2

Patch Set 4 : . #

Patch Set 5 : rebase #

Patch Set 6 : rebase #

Patch Set 7 : rebase #

Patch Set 8 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+197 lines, -3 lines) Patch
M content/browser/bad_message.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/browser_child_process_host_impl.h View 1 2 3 chunks +10 lines, -0 lines 0 comments Download
M content/browser/browser_child_process_host_impl.cc View 1 2 4 chunks +33 lines, -1 line 0 comments Download
M content/browser/child_process_launcher.h View 1 2 3 3 chunks +8 lines, -0 lines 0 comments Download
M content/browser/child_process_launcher.cc View 2 chunks +4 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_process_host_browsertest.cc View 1 2 5 chunks +39 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.h View 1 2 2 chunks +6 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 2 chunks +25 lines, -1 line 0 comments Download
M content/public/renderer/content_renderer_client.h View 2 chunks +5 lines, -0 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M content/shell/renderer/shell_content_renderer_client.h View 1 chunk +2 lines, -0 lines 0 comments Download
M content/shell/renderer/shell_content_renderer_client.cc View 3 chunks +60 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 24 (12 generated)
Ken Rockot(use gerrit already)
4 years, 6 months ago (2016-06-10 23:02:53 UTC) #2
jam
https://codereview.chromium.org/2054303002/diff/40001/content/browser/browser_child_process_host_impl.cc File content/browser/browser_child_process_host_impl.cc (right): https://codereview.chromium.org/2054303002/diff/40001/content/browser/browser_child_process_host_impl.cc#newcode244 content/browser/browser_child_process_host_impl.cc:244: mojo::edk::ProcessErrorCallback(), why not do it here as well? in ...
4 years, 6 months ago (2016-06-13 18:30:39 UTC) #4
Ken Rockot(use gerrit already)
https://codereview.chromium.org/2054303002/diff/40001/content/browser/browser_child_process_host_impl.cc File content/browser/browser_child_process_host_impl.cc (right): https://codereview.chromium.org/2054303002/diff/40001/content/browser/browser_child_process_host_impl.cc#newcode244 content/browser/browser_child_process_host_impl.cc:244: mojo::edk::ProcessErrorCallback(), On 2016/06/13 at 18:30:39, jam wrote: > why ...
4 years, 6 months ago (2016-06-13 22:36:40 UTC) #7
Ken Rockot(use gerrit already)
+isherman@ please take a look at histograms
4 years, 6 months ago (2016-06-13 22:37:05 UTC) #9
jam
lgtm https://codereview.chromium.org/2054303002/diff/40001/content/browser/browser_child_process_host_impl.cc File content/browser/browser_child_process_host_impl.cc (right): https://codereview.chromium.org/2054303002/diff/40001/content/browser/browser_child_process_host_impl.cc#newcode244 content/browser/browser_child_process_host_impl.cc:244: mojo::edk::ProcessErrorCallback(), On 2016/06/13 22:36:40, Ken Rockot wrote: > ...
4 years, 6 months ago (2016-06-13 23:27:13 UTC) #10
Ilya Sherman
histograms.xml lgtm
4 years, 6 months ago (2016-06-13 23:28:22 UTC) #11
Ken Rockot(use gerrit already)
https://codereview.chromium.org/2054303002/diff/100001/content/browser/child_process_launcher.cc File content/browser/child_process_launcher.cc (right): https://codereview.chromium.org/2054303002/diff/100001/content/browser/child_process_launcher.cc#newcode563 content/browser/child_process_launcher.cc:563: mojo::edk::ChildProcessLaunched(process_.Handle(), On 2016/06/13 at 23:27:12, jam wrote: > nit: ...
4 years, 6 months ago (2016-06-14 00:28:02 UTC) #13
commit-bot: I haz the power
This CL has an open dependency (Issue 2064903002 Patch 1). Please resolve the dependency and ...
4 years, 6 months ago (2016-06-14 00:28:46 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2054303002/190001
4 years, 6 months ago (2016-06-16 04:15:04 UTC) #20
commit-bot: I haz the power
Committed patchset #8 (id:190001)
4 years, 6 months ago (2016-06-16 04:46:29 UTC) #21
commit-bot: I haz the power
CQ bit was unchecked
4 years, 6 months ago (2016-06-16 04:46:33 UTC) #22
commit-bot: I haz the power
4 years, 6 months ago (2016-06-16 04:48:37 UTC) #24
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/229fb28e6c8dc41792ea517a401529c14214ea3c
Cr-Commit-Position: refs/heads/master@{#400085}

Powered by Google App Engine
This is Rietveld 408576698