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

Issue 283313002: Ensure that any IPC sent from a child process that couldn't be deserialized causes that p… (Closed)

Created:
6 years, 7 months ago by jam
Modified:
6 years, 7 months ago
CC:
chromium-reviews, creis+watch_chromium.org, jar (doing other things), tfarina, nasko+codewatch_chromium.org, darin-cc_chromium.org, arv+watch_chromium.org, asvitkine+watch_chromium.org, piman+watch_chromium.org, native-client-reviews_googlegroups.com
Visibility:
Public.

Description

Ensure that any IPC sent from a child process that couldn't be deserialized causes that process to be killed. Today we do this only for a subset of IPCs and not all process types. R=jar@chromium.org, tsepez@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=270839

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : sync #

Total comments: 5

Patch Set 4 : remove const_cast #

Patch Set 5 : switch to histograms #

Unified diffs Side-by-side diffs Delta from patch set Stats (+263 lines, -28 lines) Patch
M content/browser/browser_child_process_host_impl.h View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M content/browser/browser_child_process_host_impl.cc View 1 2 3 4 2 chunks +12 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 chunks +14 lines, -13 lines 0 comments Download
M content/browser/worker_host/worker_process_host.cc View 1 2 2 chunks +1 line, -9 lines 0 comments Download
M content/common/child_process_host_impl.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/common/child_process_host_impl.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M ipc/ipc_channel_proxy.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ipc/ipc_channel_proxy.cc View 1 2 3 chunks +12 lines, -0 lines 0 comments Download
M ipc/ipc_channel_reader.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M ipc/ipc_listener.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M ipc/ipc_message.h View 1 2 3 2 chunks +12 lines, -1 line 0 comments Download
M ipc/ipc_message.cc View 1 2 2 chunks +6 lines, -5 lines 0 comments Download
M ipc/ipc_message_macros.h View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 2 chunks +186 lines, -0 lines 0 comments Download
M ui/views/controls/webview/webview.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
jam
6 years, 7 months ago (2014-05-15 14:42:18 UTC) #1
jam
+jar for tools/metrics/actions
6 years, 7 months ago (2014-05-15 19:47:36 UTC) #2
jar (doing other things)
Did you consider using an enumerated histograms? UMA_HISTOGRAM_ENUMERATION( "histogram.name", sample, MAX_ENUMERATION_VALUE + 1) Usually you ...
6 years, 7 months ago (2014-05-15 19:54:21 UTC) #3
Tom Sepez
https://codereview.chromium.org/283313002/diff/90001/content/browser/browser_child_process_host_impl.cc File content/browser/browser_child_process_host_impl.cc (right): https://codereview.chromium.org/283313002/diff/90001/content/browser/browser_child_process_host_impl.cc#newcode260 content/browser/browser_child_process_host_impl.cc:260: // The English name of a process type sometimes ...
6 years, 7 months ago (2014-05-15 19:57:41 UTC) #4
jam
On 2014/05/15 19:54:21, jar wrote: > Did you consider using an enumerated histograms? > UMA_HISTOGRAM_ENUMERATION( ...
6 years, 7 months ago (2014-05-15 21:14:28 UTC) #5
jam
https://codereview.chromium.org/283313002/diff/90001/content/browser/browser_child_process_host_impl.cc File content/browser/browser_child_process_host_impl.cc (right): https://codereview.chromium.org/283313002/diff/90001/content/browser/browser_child_process_host_impl.cc#newcode260 content/browser/browser_child_process_host_impl.cc:260: // The English name of a process type sometimes ...
6 years, 7 months ago (2014-05-15 21:19:33 UTC) #6
Tom Sepez
LGTM
6 years, 7 months ago (2014-05-15 21:21:51 UTC) #7
jar (doing other things)
6 years, 7 months ago (2014-05-15 23:03:54 UTC) #8
histograms.xml LGTM

Powered by Google App Engine
This is Rietveld 408576698