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

Issue 2876493002: Close NaCl IPC channel when the NaClDesc is released (Closed)

Created:
3 years, 7 months ago by tzik
Modified:
3 years, 6 months ago
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Close NaCl IPC channel when the NaClDesc is released NaClIPCAdapter has a ref count and a NaClDesc retains the reference to it, and an IPC::Channel has a raw pointer to the NaClIPCAdapter as a IPC::Listener without retaining a reference. When NaClDesc releases NaClIPCAdapter and it's being destroyed, it schedules a task to destroy the channel. However, there's a gap between the NaClIPCAdapter destruction and the channel destruction, and a chance for the channel to call OnChannelError on NaClIPCAdapter, that causes an UAF. After this CL, NaClDesc closes the channel before it releases NaClIPCAdapter. BUG=719942 TBR=dschuff@chromium.org Review-Url: https://codereview.chromium.org/2876493002 Cr-Commit-Position: refs/heads/master@{#476198} Committed: https://chromium.googlesource.com/chromium/src/+/3d31416f453ded47bde9a2e2598be74a4ee943c3

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -0 lines) Patch
M components/nacl/loader/nacl_ipc_adapter.cc View 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (15 generated)
tzik
PTAL
3 years, 7 months ago (2017-05-10 09:29:29 UTC) #6
Derek Schuff
looks OK to me, +bbudge
3 years, 7 months ago (2017-05-10 18:18:11 UTC) #10
tzik
bbudge: ping. Could you review this?
3 years, 7 months ago (2017-05-25 08:03:28 UTC) #11
bbudge
lgtm
3 years, 7 months ago (2017-05-25 15:25:55 UTC) #12
tzik
On 2017/05/25 15:25:55, bbudge wrote: > lgtm Thanks! dschuff: So, could you PTAL as an ...
3 years, 6 months ago (2017-05-29 06:18:31 UTC) #13
(google.com) Derek Schuff
lgtm
3 years, 6 months ago (2017-05-31 16:32:27 UTC) #16
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/2876493002/1
3 years, 6 months ago (2017-05-31 16:32:58 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/452041)
3 years, 6 months ago (2017-05-31 16:41:32 UTC) #19
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/2876493002/1
3 years, 6 months ago (2017-06-01 03:38:12 UTC) #22
commit-bot: I haz the power
3 years, 6 months ago (2017-06-01 05:13:25 UTC) #25
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/3d31416f453ded47bde9a2e2598b...

Powered by Google App Engine
This is Rietveld 408576698