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

Issue 2349143003: cc: Avoid ResourceProvider nullptr deref (Closed)

Created:
4 years, 3 months ago by no sievers
Modified:
4 years, 3 months ago
Reviewers:
danakj, sunnyps, enne (OOO)
CC:
chromium-reviews, cc-bugs_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Avoid ResourceProvider nullptr deref When ReleaseCompositorFrameSink() was called explicitly we delete |resource_provider_|, but we might still have a BeginMainFrame occur and processing UIResourceRequests will try deref it. BUG=643721 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel Committed: https://crrev.com/68dc75d78f547eeb4c80a9ff8ced7e1bdb62b485 Cr-Commit-Position: refs/heads/master@{#420742}

Patch Set 1 #

Total comments: 2

Patch Set 2 : doh #

Total comments: 2

Patch Set 3 : not for review: fix crash #

Patch Set 4 : not for review: fix crash #

Patch Set 5 : not for review: fix crash #

Patch Set 6 : not for review: fix crash #

Patch Set 7 : not for review: fix crash #

Patch Set 8 : not for review: fix crash #

Total comments: 4

Patch Set 9 : not for review: fix crash #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -5 lines) Patch
M cc/trees/layer_tree_host_impl.h View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 6 7 8 6 chunks +15 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_context.cc View 1 2 3 4 5 6 7 1 chunk +10 lines, -3 lines 0 comments Download

Messages

Total messages: 35 (16 generated)
danakj
https://codereview.chromium.org/2349143003/diff/1/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/2349143003/diff/1/cc/trees/layer_tree_host_impl.cc#newcode3711 cc/trees/layer_tree_host_impl.cc:3711: MarkUIResourceNotEvicted(uid); I think you wanna mark evicted (instead of ...
4 years, 3 months ago (2016-09-20 01:17:35 UTC) #3
no sievers
well i guess i'll land this after all... https://codereview.chromium.org/2349143003/diff/1/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/2349143003/diff/1/cc/trees/layer_tree_host_impl.cc#newcode3711 cc/trees/layer_tree_host_impl.cc:3711: MarkUIResourceNotEvicted(uid); ...
4 years, 3 months ago (2016-09-20 22:20:35 UTC) #5
sunnyps
Just FYI I'm trying to prevent the BeginMainFrame (or any scheduler action) from happening as ...
4 years, 3 months ago (2016-09-20 23:01:55 UTC) #7
no sievers
On 2016/09/20 23:01:55, sunnyps wrote: > Just FYI I'm trying to prevent the BeginMainFrame (or ...
4 years, 3 months ago (2016-09-20 23:23:39 UTC) #8
sunnyps
hmmm, actually my CL won't fix this issue - here the BeginMainFrame task is posted ...
4 years, 3 months ago (2016-09-21 00:08:41 UTC) #9
sunnyps
https://codereview.chromium.org/2349143003/diff/20001/cc/trees/layer_tree_host_impl.h File cc/trees/layer_tree_host_impl.h (right): https://codereview.chromium.org/2349143003/diff/20001/cc/trees/layer_tree_host_impl.h#newcode840 cc/trees/layer_tree_host_impl.h:840: bool has_valid_compositor_frame_sink_; On 2016/09/21 00:08:41, sunnyps wrote: > Can ...
4 years, 3 months ago (2016-09-21 00:15:33 UTC) #10
sunnyps
+enne@ who knows more about this Just to make sure we're on the same page ...
4 years, 3 months ago (2016-09-21 21:59:14 UTC) #17
danakj
On Wed, Sep 21, 2016 at 2:59 PM, <sunnyps@chromium.org> wrote: > +enne@ who knows more ...
4 years, 3 months ago (2016-09-21 22:15:05 UTC) #18
enne (OOO)
I think the simplest solution here is to just revert that change from #2 and ...
4 years, 3 months ago (2016-09-22 18:17:44 UTC) #19
danakj
On Thu, Sep 22, 2016 at 11:17 AM, enne@chromium.org via codereview.chromium.org <reply@chromiumcodereview-hr.appspotmail.com> wrote: > I ...
4 years, 3 months ago (2016-09-22 20:07:01 UTC) #20
sunnyps
On 2016/09/22 20:07:01, danakj wrote: > On Thu, Sep 22, 2016 at 11:17 AM, mailto:enne@chromium.org ...
4 years, 3 months ago (2016-09-22 20:41:31 UTC) #21
danakj
On Thu, Sep 22, 2016 at 1:41 PM, <sunnyps@chromium.org> wrote: > On 2016/09/22 20:07:01, danakj ...
4 years, 3 months ago (2016-09-22 22:44:48 UTC) #22
danakj
LGTM https://codereview.chromium.org/2349143003/diff/160001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/2349143003/diff/160001/cc/trees/layer_tree_host_impl.cc#newcode2311 cc/trees/layer_tree_host_impl.cc:2311: has_valid_compositor_frame_sink_ = true; nit: put this right beside ...
4 years, 3 months ago (2016-09-23 21:24:10 UTC) #23
no sievers
https://codereview.chromium.org/2349143003/diff/160001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/2349143003/diff/160001/cc/trees/layer_tree_host_impl.cc#newcode2311 cc/trees/layer_tree_host_impl.cc:2311: has_valid_compositor_frame_sink_ = true; On 2016/09/23 21:24:10, danakj wrote: > ...
4 years, 3 months ago (2016-09-23 21:27:31 UTC) #24
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/2349143003/180001
4 years, 3 months ago (2016-09-23 21:28:30 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/74463)
4 years, 3 months ago (2016-09-23 21:41:31 UTC) #29
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/2349143003/180001
4 years, 3 months ago (2016-09-23 21:46:36 UTC) #31
commit-bot: I haz the power
Failed to apply the patch. On branch working_branch Your branch is up-to-date with 'origin/refs/pending/heads/master'. nothing ...
4 years, 3 months ago (2016-09-23 22:33:53 UTC) #33
commit-bot: I haz the power
4 years, 3 months ago (2016-09-23 22:34:02 UTC) #35
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/68dc75d78f547eeb4c80a9ff8ced7e1bdb62b485
Cr-Commit-Position: refs/heads/master@{#420742}

Powered by Google App Engine
This is Rietveld 408576698