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

Issue 196033004: Oilpan: Fix worker thread termination use-after-free found by the asan build. (Closed)

Created:
6 years, 9 months ago by Mads Ager (chromium)
Modified:
6 years, 9 months ago
CC:
blink-reviews, falken, horo+watch_chromium.org, kinuko+watch
Visibility:
Public.

Description

Oilpan: Fix worker thread termination use-after-free found by the asan build. R=haraken@chromium.org, oilpan-reviews@chromium.org, vegorov@chromium.org BUG=

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -2 lines) Patch
M Source/core/workers/WorkerThread.cpp View 1 chunk +9 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Mads Ager (chromium)
6 years, 9 months ago (2014-03-14 14:23:09 UTC) #1
haraken
LGTM as a short-term fix, but I'm not confident that this is a right fix ...
6 years, 9 months ago (2014-03-14 15:15:36 UTC) #2
sof
On 2014/03/14 15:15:36, haraken wrote: > LGTM as a short-term fix, but I'm not confident ...
6 years, 9 months ago (2014-03-14 15:54:56 UTC) #3
haraken
> Don't forget about https://codereview.chromium.org/194923007/ oh, sorry, I missed that CL. Let me take a ...
6 years, 9 months ago (2014-03-14 15:56:18 UTC) #4
sof
On 2014/03/14 15:56:18, haraken wrote: > > Don't forget about https://codereview.chromium.org/194923007/ > > oh, sorry, ...
6 years, 9 months ago (2014-03-14 16:34:25 UTC) #5
sof
On 2014/03/14 16:34:25, sof wrote: > On 2014/03/14 15:56:18, haraken wrote: > > > Don't ...
6 years, 9 months ago (2014-03-16 14:24:25 UTC) #6
Mads Ager (chromium)
The CQ bit was checked by ager@chromium.org
6 years, 9 months ago (2014-03-17 06:24:07 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ager@chromium.org/196033004/1
6 years, 9 months ago (2014-03-17 06:24:13 UTC) #8
Mads Ager (chromium)
The CQ bit was unchecked by ager@chromium.org
6 years, 9 months ago (2014-03-17 06:30:07 UTC) #9
Mads Ager (chromium)
Thanks Sigbjørn! This made almost all worker tests fail with the asan build. I'll rerun ...
6 years, 9 months ago (2014-03-17 06:48:55 UTC) #10
sof
On 2014/03/17 06:48:55, Mads Ager (chromium) wrote: > Thanks Sigbjørn! This made almost all worker ...
6 years, 9 months ago (2014-03-17 08:15:09 UTC) #11
Mads Ager (chromium)
6 years, 9 months ago (2014-03-17 08:25:16 UTC) #12
Message was sent while issue was closed.
On 2014/03/17 08:15:09, sof wrote:
> On 2014/03/17 06:48:55, Mads Ager (chromium) wrote:
> > Thanks Sigbjørn! This made almost all worker tests fail with the asan build.
> > I'll rerun my asan build with your patch later today and verify that it
> doesn't
> > show up something else. I'll abandon this change in favor of the bigger
> cleanup
> > in your change. Thanks for doing that!
> 
> I'm a bit surprised why most worker tests fail (=> need to read up on ASan :)
),
> but sounds like it will pass a solid verdict on whether the real problem has
> been addressed.

ASAN poisons memory that has been freed and traps on access to memory that has
been freed. It also delays reuse of memory so that memory can stay poisoned for
a long time. The assignment to m_workerGlobalScope after the proxy has been
notified is a use after free if the main thread gets to destroy the worker
thread object before the assignment. It manages to do that in a lot of the
worker thread tests on shutdown and ASAN catches the use-after-free. :)

Powered by Google App Engine
This is Rietveld 408576698