Closed
Bug 1314318
Opened 9 years ago
Closed 7 years ago
Shutdown crash in mozilla::dom::indexedDB::PBackgroundIndexedDBUtilsChild::DestroySubtree
Categories
(Core :: Graphics, defect)
Tracking
()
People
(Reporter: marcia, Unassigned)
References
Details
(Keywords: crash, csectype-uaf, sec-moderate)
Crash Data
This bug was filed from the Socorro interface and is
report bp-1116729b-c7c9-4dfe-9258-fe7c22161101.
=============================================================
Seen while looking at beta 11 crashes: http://bit.ly/2f9uGfA
Present in Beta 6 but crashes increased in Beta 11.
Comment 1•9 years ago
|
||
(100.0% in signature vs 00.37% overall) address = 0xffffffffe5e5e5f1
(100.0% in signature vs 02.31% overall) shutdown_progress = xpcom-shutdown
(100.0% in signature vs 37.56% overall) reason = EXCEPTION_ACCESS_VIOLATION_READ
This might be a use-after-free bug, given the address.
Group: dom-core-security, core-security
Comment 2•9 years ago
|
||
The entire set of correlations is:
(100.0% in signature vs 00.37% overall) address = 0xffffffffe5e5e5f1
(100.0% in signature vs 02.31% overall) shutdown_progress = xpcom-shutdown
(100.0% in signature vs 37.56% overall) reason = EXCEPTION_ACCESS_VIOLATION_READ
(98.13% in signature vs 49.79% overall) build_id = 20161027110534
(70.09% in signature vs 20.62% overall) "DXVA2D3D9+" in app_notes = true
(71.03% in signature vs 24.41% overall) "DXVA2D3D9?" in app_notes = true
(57.01% in signature vs 13.71% overall) adapter_vendor_id = NVIDIA Corporation
Given the DXVA2D3D9 correlation, it looks related to video-playing. The URLs support this hypotesis.
Most stack traces contain `mozilla::layers::PImageBridgeChild::DestroySubtree` before `mozilla::dom::indexedDB::PBackgroundIndexedDBUtilsChild::DestroySubtree`.
The most occurring stack trace (~94%) is:
mozilla::dom::indexedDB::PBackgroundIndexedDBUtilsChild::DestroySubtree | mozilla::layers::PImageBridgeChild::DestroySubtree | mozilla::layers::PImageBridgeChild::OnChannelClose | mozilla::layers::ImageBridgeShutdownStep2 | RunnableFunction<T>::Run | MessageLoop::RunTask | MessageLoop::DeferOrRunPendingTask | MessageLoop::DoWork
Group: media-core-security
Component: DOM: IndexedDB → Audio/Video
Hi Jean-Yves, Jesup, could you please take a look at the crash reports on this one? Due to the UAF nature, we may need to consider this a high priority bug and potentially release blocking for 50. Can you please help find an alternate owner?
Flags: needinfo?(rjesup)
Flags: needinfo?(jyavenard)
Comment 4•9 years ago
|
||
This signature basically appeared with 50 Beta 6 (before 50 Beta 6 there was just one crash with 50 Beta 2).
https://crash-stats.mozilla.com/search/?signature=%3Dmozilla%3A%3Adom%3A%3AindexedDB%3A%3APBackgroundIndexedDBUtilsChild%3A%3ADestroySubtree&product=Firefox&date=%3E%3D2016-10-01T18%3A06%3A52.000Z&date=%3C2016-11-01T18%3A06%3A52.000Z&_sort=-date&_facets=signature&_facets=url&_facets=user_comments&_facets=version&_facets=proto_signature&_columns=date&_columns=signature&_columns=product&_columns=version&_columns=build_id&_columns=platform#facet-version
Between Beta 6 and Beta 9 we don't have reliable results because of a bug in Socorro (we might have reliable results in a while, I'll comment back when we do), with Beta 10 we do have reliable results and 0 crashes.
Comment 5•9 years ago
|
||
138 crashes in 50b11 :-(
UAF Crash when shutting down compositor. Mainthread is in gfxPlatform::ShutdownLayersIPC(), all in windows.
Interesting that there are no crashes in 51 or 52, so looking to uplifts may be useful. The one crash before b6 though may mean it's been in there longer, and beta in general has much higher usage, so things can be missed by aurora/nightly.
NI to Milan, since this is compositor shutdown. Perhaps shutdown while plying a video.
Component: Audio/Video → Graphics
Flags: needinfo?(rjesup)
Flags: needinfo?(milan)
Flags: needinfo?(ajones)
Summary: Crash in mozilla::dom::indexedDB::PBackgroundIndexedDBUtilsChild::DestroySubtree → Shutdown crash in mozilla::dom::indexedDB::PBackgroundIndexedDBUtilsChild::DestroySubtree
Comment 6•9 years ago
|
||
Other stacks are in mozilla::layers::ImageBridgeChild::ShutDown(). I don't see any indication in that stack that video is playing at shutdown, though it might have been before shutdown started.
https://crash-stats.mozilla.com/report/index/9629b01e-faa9-4bf9-901c-e9b5f2161101#allthreads
Since it already existed in b2 and b6, it doesn't necessarily make sense to focus on b11, but if I was looking at the b10 to b11 log [1], bug 1312958 could be something to look at given the mention of shutdown and UAF?
[1] https://hg.mozilla.org/releases/mozilla-beta/pushloghtml?fromchange=FIREFOX_50_0b10_RELEASE&tochange=FIREFOX_50_0b11_RELEASE
Flags: needinfo?(milan)
Comment 8•9 years ago
|
||
I was wrong in my comment, one crash was actually in 50.0a2, not 50.0b2: https://crash-stats.mozilla.com/report/index/6d9bb7a5-382e-455a-ab93-5b6e02160906.
It's with a different address, 0xffffffffffffffff, but similar stack trace.
Comment 9•9 years ago
|
||
I'm starting to think that this is just a signature change.
Look at this search (all crashes whose stack trace contains PImageBridgeChild::DestroySubtree):
https://crash-stats.mozilla.com/search/?proto_signature=~PImageBridgeChild%3A%3ADestroySubtree&address=~e5&product=Firefox&date=%3E%3D2016-10-26T14%3A22%3A00.000Z&date=%3C2016-11-02T14%3A22%3A00.000Z&_sort=-date&_facets=signature&_facets=version&_facets=proto_signature&_columns=date&_columns=signature&_columns=product&_columns=version&_columns=build_id&_columns=platform#facet-proto_signature
If they're all the same crash, this affects Firefox release as well.
Comment 14•9 years ago
|
||
This goes back to 48.
Crash Signature: [@ mozilla::dom::indexedDB::PBackgroundIndexedDBUtilsChild::DestroySubtree] → [@ mozilla::dom::indexedDB::PBackgroundIndexedDBUtilsChild::DestroySubtree]
[@ mozilla::layers::PCompositableChild::DestroySubtree]
[@ mozilla::dom::indexedDB::PBackgroundIDBFactoryRequestParent::DestroySubtree]
[@ mozilla::layers::PLayerParent::Destro…
status-firefox49:
--- → affected
Comment 15•9 years ago
|
||
Mainly affects Windows, but there also one crash on Linux: https://crash-stats.mozilla.com/report/index/f0b52044-3456-4e5a-b99f-f1abf2161015.
OS: Windows 10 → All
Version: 50 Branch → 48 Branch
Comment 16•9 years ago
|
||
It might have been fixed in 51, since we have 0 crashes with 51.0a2 for now (we've had crashes in the past with 48.0a2, 49.0a2 and 50.0a2).
Comment 17•9 years ago
|
||
Yes, I agree these are signature changes (PGO perhaps); all seem to go back to sImageBridgeChildSingleton->Close();
Comment 18•9 years ago
|
||
Wider search using proto_signature to look for ImageBridgeShutdownStep2
Shows no crashes in 51 or 52 Be nice to know what the fix was for 50! Looking at buildids might help
https://crash-stats.mozilla.com/search/?proto_signature=~ImageBridgeShutdownStep2&product=Firefox&date=%3E%3D2016-10-02T23%3A42%3A03.000Z&date=%3C2016-11-02T23%3A42%3A03.000Z&_sort=-date&_facets=signature&_facets=version&_facets=proto_signature&_columns=date&_columns=signature&_columns=product&_columns=version&_columns=build_id&_columns=platform#facet-version
Comment 19•9 years ago
|
||
If you exclude the e5 from the search, there are 8 crashes in 51.0a1 with non-e5 signatures (0xfffffffff etc). The final buildid in those was 8/23. That might be a clue what caused it to go away (or morph).
https://crash-stats.mozilla.com/search/?proto_signature=~ImageBridgeShutdownStep2&version=51.0a1&product=Firefox&date=%3E%3D2016-05-02T23%3A44%3A24.000Z&date=%3C2016-11-02T23%3A44%3A24.000Z&_sort=-date&_facets=signature&_facets=version&_facets=proto_signature&_columns=date&_columns=signature&_columns=product&_columns=version&_columns=build_id&_columns=platform#crash-reports
Updated•9 years ago
|
Keywords: csectype-uaf,
sec-moderate
Chris - I'll let you deal with this in my absence.
Flags: needinfo?(ajones) → needinfo?(cpearce)
Updated•9 years ago
|
Flags: needinfo?(jyavenard)
Updated•9 years ago
|
Group: core-security → gfx-core-security
Comment 21•9 years ago
|
||
Stack traces with `mozilla::layers::CompositorBridgeChild::DeallocPTextureChild` also look similar.
Crash Signature: mozilla::net::PChannelDiverterChild::DestroySubtree]
[@ mozilla::layers::PImageContainerChild::DestroySubtree]
[@ mozilla::layers::PImageContainerParent::DestroySubtree]
[@ mozilla::net::PTransportProviderParent::DestroySubtree] → mozilla::net::PChannelDiverterChild::DestroySubtree]
[@ mozilla::layers::PImageContainerChild::DestroySubtree]
[@ mozilla::layers::PImageContainerParent::DestroySubtree]
[@ mozilla::net::PTransportProviderParent::DestroySubtree]
[@ mozilla::layers::C…
Updated•9 years ago
|
Updated•9 years ago
|
Crash Signature: mozilla::layers::CompositorBridgeChild::DeallocPTextureChild] → mozilla::layers::CompositorBridgeChild::DeallocPTextureChild]
[@ mozilla::dom::icc::PIccRequestChild::DestroySubtree]
| Reporter | ||
Comment 23•9 years ago
|
||
Currently #7 top browser crash on 50.1.0 - adding keyword.
Keywords: topcrash
Comment 24•9 years ago
|
||
Comment 25•8 years ago
|
||
Too late for firefox 52, mass-wontfix.
Comment 26•8 years ago
|
||
no longer topcrash; updated flags
status-firefox54:
--- → ?
status-firefox55:
--- → ?
status-firefox-esr52:
--- → affected
Keywords: topcrash
Updated•8 years ago
|
Flags: needinfo?(cpearce)
Comment 27•7 years ago
|
||
I'm not seeing any recent versions in these crashes.
Group: media-core-security, gfx-core-security, dom-core-security → core-security-release
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WORKSFORME
Updated•6 years ago
|
Group: core-security-release
You need to log in
before you can comment on or make changes to this bug.
Description
•