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

Issue 2487343004: Make sure scheduler shutdown prevents idle tasks from running (Closed)

Created:
4 years, 1 month ago by alex clarke (OOO till 29th)
Modified:
4 years, 1 month ago
Reviewers:
Sami, altimin
CC:
chromium-reviews, blink-reviews, scheduler-bugs_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make sure scheduler shutdown prevents idle tasks from running It looks like a pending delayed IdleHelper::EnableLongIdlePeriod task was able to sneak in between shutting the scheduler and blink down and deleting the message loop (which runs up to 100 tasks) resulting in a UAF when trying to run ThreadState::scheduleIdleLazySweep. This patch adds a hard shutdown to the idle helper. BUG=664081 Committed: https://crrev.com/00da829b00a5eb879e8f12e2ecf1b97c81dd8088 Cr-Commit-Position: refs/heads/master@{#431241}

Patch Set 1 #

Patch Set 2 : Added a test which fails without the patch. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -6 lines) Patch
M third_party/WebKit/Source/platform/scheduler/child/idle_helper.h View 2 chunks +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/child/idle_helper.cc View 1 11 chunks +30 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/child/idle_helper_unittest.cc View 1 4 chunks +38 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 14 (9 generated)
alex clarke (OOO till 29th)
4 years, 1 month ago (2016-11-10 12:39:16 UTC) #4
altimin
lgtm
4 years, 1 month ago (2016-11-10 12:47:17 UTC) #5
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/2487343004/20001
4 years, 1 month ago (2016-11-10 13:31:07 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-11-10 13:46:50 UTC) #12
commit-bot: I haz the power
4 years, 1 month ago (2016-11-10 13:48:41 UTC) #14
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/00da829b00a5eb879e8f12e2ecf1b97c81dd8088
Cr-Commit-Position: refs/heads/master@{#431241}

Powered by Google App Engine
This is Rietveld 408576698