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

Issue 1917333002: IPC: Fix attachment brokering race condition. (Closed)

Created:
4 years, 7 months ago by erikchen
Modified:
4 years, 7 months ago
Reviewers:
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@2704
Target Ref:
refs/pending/branch-heads/2704
Project:
chromium
Visibility:
Public.

Description

IPC: Fix attachment brokering race condition. A channel must be registered as a broker communication channel before it is connected. When possible, invert the sequence of the call to connect a channel, and the call to register the channel as a broker. In some cases, the channel constructor and the channel initializer had to be separated, so that the registration could happen in between. This requirement is now enforced by a CHECK, which verifies that a channel cannot be registered after it is connected. BUG=598088 Review URL: https://codereview.chromium.org/1903663004 Cr-Commit-Position: refs/heads/master@{#389618} (cherry picked from commit 9097190cafdecfb1b5796b65c83af92e861ccaf8) Committed: https://chromium.googlesource.com/chromium/src/+/a132709b08846c8ac75bead8d97a0fec2cb30ace

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+137 lines, -50 lines) Patch
M components/nacl/loader/nacl_listener.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 3 chunks +18 lines, -10 lines 0 comments Download
M content/child/child_thread_impl.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M content/common/child_process_host_impl.cc View 1 chunk +7 lines, -2 lines 0 comments Download
M ipc/attachment_broker_mac_unittest.cc View 5 chunks +19 lines, -5 lines 0 comments Download
M ipc/attachment_broker_privileged_win_unittest.cc View 2 chunks +13 lines, -1 line 0 comments Download
M ipc/ipc_channel.h View 2 chunks +13 lines, -0 lines 0 comments Download
M ipc/ipc_channel_common.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M ipc/ipc_channel_nacl.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M ipc/ipc_channel_posix.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M ipc/ipc_channel_proxy.h View 2 chunks +5 lines, -3 lines 0 comments Download
M ipc/ipc_channel_proxy.cc View 1 chunk +1 line, -0 lines 0 comments Download
M ipc/ipc_channel_win.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M ipc/ipc_endpoint.h View 1 chunk +1 line, -1 line 0 comments Download
M ipc/ipc_test_base.h View 1 chunk +4 lines, -0 lines 0 comments Download
M ipc/mojo/ipc_channel_mojo.cc View 1 chunk +1 line, -0 lines 0 comments Download
M remoting/host/desktop_process.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M remoting/host/desktop_session_agent.cc View 3 chunks +9 lines, -0 lines 0 comments Download
M remoting/host/ipc_util.h View 1 chunk +1 line, -0 lines 0 comments Download
M remoting/host/ipc_util_posix.cc View 2 chunks +9 lines, -4 lines 0 comments Download
M remoting/host/ipc_util_win.cc View 2 chunks +7 lines, -3 lines 0 comments Download
M remoting/host/remoting_me2me_host.cc View 1 chunk +3 lines, -5 lines 0 comments Download
M remoting/host/win/unprivileged_process_delegate.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M remoting/host/win/wts_session_process_delegate.cc View 2 chunks +6 lines, -6 lines 0 comments Download

Messages

Total messages: 2 (1 generated)
erikchen
4 years, 7 months ago (2016-04-26 23:31:10 UTC) #2
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
a132709b08846c8ac75bead8d97a0fec2cb30ace.

Powered by Google App Engine
This is Rietveld 408576698