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

Issue 1985773002: [mojo-edk] Fix race in port closure (Closed)

Created:
4 years, 7 months ago by Ken Rockot(use gerrit already)
Modified:
4 years, 7 months ago
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@nohax
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[mojo-edk] Fix race in port closure When we close a port we first collect any new ports hanging around in its message queue. These ports have been accepted on the node but not yet read by the embedder, and they need to be closed to avoid leakage. Previously we collected the ports, then released the port/ports lock, then erased the closing port. That left a window where a new message could be accepted by the port on another thread and leak its ports. This CL simply erases the closing port while still holding locks, thus avoiding said race. TBR=amistry@chromium.org BUG= Committed: https://crrev.com/bcdfd1be996817834a250fbf8595035fd48185ea Cr-Commit-Position: refs/heads/master@{#393896}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M mojo/edk/system/ports/node.cc View 1 chunk +2 lines, -2 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 5 (2 generated)
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1985773002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1985773002/1
4 years, 7 months ago (2016-05-16 18:28:24 UTC) #2
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 7 months ago (2016-05-16 19:23:18 UTC) #3
commit-bot: I haz the power
4 years, 7 months ago (2016-05-16 19:25:03 UTC) #5
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/bcdfd1be996817834a250fbf8595035fd48185ea
Cr-Commit-Position: refs/heads/master@{#393896}

Powered by Google App Engine
This is Rietveld 408576698