"Throw Exception" tab crash @ OOM | small
Categories
(Core :: Audio/Video: Playback, defect, P3)
Tracking
()
People
(Reporter: mishra.dhiraj95, Unassigned)
References
Details
(Keywords: crash, csectype-dos)
Crash Data
Attachments
(4 files)
Comment 1•9 years ago
|
||
Comment 2•9 years ago
|
||
| Reporter | ||
Comment 3•9 years ago
|
||
| Reporter | ||
Updated•9 years ago
|
Comment 4•9 years ago
|
||
| Reporter | ||
Comment 5•9 years ago
|
||
Comment 6•9 years ago
|
||
| Reporter | ||
Comment 7•9 years ago
|
||
Comment 9•9 years ago
|
||
| Reporter | ||
Comment 10•9 years ago
|
||
Comment 11•9 years ago
|
||
| Reporter | ||
Comment 12•9 years ago
|
||
Comment 13•9 years ago
|
||
| Reporter | ||
Comment 14•9 years ago
|
||
Comment 15•9 years ago
|
||
| Reporter | ||
Comment 17•9 years ago
|
||
| Reporter | ||
Comment 18•9 years ago
|
||
Comment 19•9 years ago
|
||
| Reporter | ||
Comment 20•9 years ago
|
||
| Reporter | ||
Comment 21•9 years ago
|
||
Comment 22•9 years ago
|
||
| Reporter | ||
Comment 24•9 years ago
|
||
| Reporter | ||
Comment 25•9 years ago
|
||
Comment 26•9 years ago
|
||
Updated•9 years ago
|
| Reporter | ||
Comment 27•9 years ago
|
||
Updated•9 years ago
|
Comment 29•4 years ago
|
||
Redirect a needinfo that is pending on an inactive user to the triage owner.
:jimm, since the bug has high severity and recent activity, could you have a look please?
For more information, please visit auto_nag documentation.
| Reporter | ||
Comment 30•4 years ago
|
||
Hi, I am still able to reproduce this on 103.0.2 (64-bit) tested on macOS Monterey. Thanks!
Comment 31•4 years ago
|
||
Windows flagged this html file as a threat.
Comment 32•4 years ago
|
||
Comment 31 is a bit of a non sequitur: one specific anti-virus identifying a file as malicious has nothing to do with whether we fix a bug or not. For one thing, if this were to be used in the wild it would be loaded over the network and never seen by that scanner! For another, if scanners are identifying it then it's been seen in the wild and that's all the more reason to make sure Firefox users aren't going to be exploited. I suspect Windows Defender has identified the shellcode string used in the PoC (presumably copied from a known exploit), which is completely irrelevant to the Firefox crash we see here which is due to the exponentially doubling nop_sled.
This is WONTFIX because there's no good way to prevent all resource exhaustion attacks when you have an arbitrary scripting environment. Ideally it would be nice to throw exceptions at the scripts in the window (and we do in many cases), but in many cases of a page being unreasonable we're happy enough crashing the tab to put an end to the shenanigans. The page did it to itself.
Crashing the parent process and taking down the whole browser is much more annoying to users, so that kind of bug is higher priority.
The old crash report links have expired but I think the crash signature must have shifted. Now I see [@ OOM | large | NS_ABORT_OOM | xpc::ErrorReport::Init ]. It's crashing when trying to report an error (presumably a failure caused by OOM). The allocation size is 3,221,225,520 which is not surprising given the testcase, but I AM surprised the whole script is apparently being passed to the error function. And that it's consistently crashing there, and not sometimes (for example) at the point the PoC created the JS string that big.
bp-65667020-149a-4650-891b-81bb00220909
The top of the crashing thread for posterity (line numbers are from Fx 104.0.1)
0 NS_ABORT_OOM(unsigned long) xpcom/base/nsDebugImpl.cpp:674
1 xpc::ErrorReport::Init(JSErrorReport*, char const*, bool, unsigned long long) js/xpconnect/src/nsXPConnect.cpp:210
2 mozilla::dom::AutoEntryScript::~AutoEntryScript() dom/script/AutoEntryScript.cpp:96
3 mozilla::dom::ScriptLoader::ProcessRequest(JS::loader::ScriptLoadRequest*) dom/script/ScriptLoader.cpp:1859
4 mozilla::dom::ScriptElement::MaybeProcessScript() dom/script/ScriptElement.cpp:118
5 nsHtml5TreeOpExecutor::RunScript(nsIContent*) parser/html/nsHtml5TreeOpExecutor.cpp:942
6 nsHtml5TreeOpExecutor::FlushDocumentWrite() parser/html/nsHtml5TreeOpExecutor.cpp:838
7 nsHtml5Parser::Parse(nsTSubstring<char16_t> const&, void*, bool) parser/html/nsHtml5Parser.cpp:339
8 mozilla::dom::Document::WriteCommon(nsTSubstring<char16_t> const&, bool, mozilla::ErrorResult&) dom/base/Document.cpp:9993
Description
•