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

Issue 2684213002: Protect RefCount manipulation of InterfaceEndpoint with MultiplexRouter lock (Closed)

Created:
3 years, 10 months ago by tzik
Modified:
3 years, 10 months ago
Reviewers:
yzshen1
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Protect RefCount manipulation of InterfaceEndpoint with MultiplexRouter lock mojo::internal::InterfaceEndpoint has non-thread-safe ref count. Most of the ref count manipulations are protected by MultiplexRouter::lock_, but one in InterfaceEndpoint::OnHandleReady is not protected. That may cause data race on the ref count. Review-Url: https://codereview.chromium.org/2684213002 Cr-Commit-Position: refs/heads/master@{#449470} Committed: https://chromium.googlesource.com/chromium/src/+/47ee91d0dc7bfc1afed32d6ce1d7c5311859d1d2

Patch Set 1 #

Patch Set 2 : fix #

Patch Set 3 : +AutoUnlock #

Total comments: 2

Patch Set 4 : -MayAutoUnlock #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -12 lines) Patch
M mojo/public/cpp/bindings/lib/multiplex_router.cc View 1 3 1 chunk +9 lines, -12 lines 0 comments Download

Messages

Total messages: 21 (16 generated)
tzik
PTAL
3 years, 10 months ago (2017-02-09 10:46:04 UTC) #10
yzshen1
Thanks for finding out this issue! :) I also checked that ipc_mojo_bootstrap.cc (the other AssociatedGroupController ...
3 years, 10 months ago (2017-02-09 17:16:51 UTC) #14
tzik
https://codereview.chromium.org/2684213002/diff/40001/mojo/public/cpp/bindings/lib/multiplex_router.cc File mojo/public/cpp/bindings/lib/multiplex_router.cc (right): https://codereview.chromium.org/2684213002/diff/40001/mojo/public/cpp/bindings/lib/multiplex_router.cc#newcode197 mojo/public/cpp/bindings/lib/multiplex_router.cc:197: MayAutoUnlock unlocker(router_->lock_.get()); On 2017/02/09 17:16:50, yzshen1 wrote: > |sync_watcher_| ...
3 years, 10 months ago (2017-02-09 22:41:22 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2684213002/60001
3 years, 10 months ago (2017-02-09 22:41:59 UTC) #18
commit-bot: I haz the power
3 years, 10 months ago (2017-02-09 23:52:02 UTC) #21
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/47ee91d0dc7bfc1afed32d6ce1d7...

Powered by Google App Engine
This is Rietveld 408576698