Closed
Bug 988925
Opened 11 years ago
Closed 11 years ago
Assertion failure: producer_ != nullptr, at jit/MIR.h:117
Categories
(Core :: JavaScript Engine: JIT, defect)
Tracking
()
VERIFIED
FIXED
mozilla32
Tracking | Status | |
---|---|---|
firefox30 | --- | unaffected |
firefox31 | + | fixed |
firefox32 | + | fixed |
firefox-esr24 | --- | unaffected |
People
(Reporter: decoder, Assigned: sunfish)
References
Details
(4 keywords, Whiteboard: [jsbugmon:update])
Attachments
(2 files, 1 obsolete file)
649 bytes,
text/plain
|
Details | |
2.76 KB,
patch
|
mjrosenb
:
review+
abillings
:
approval-mozilla-aurora+
abillings
:
sec-approval+
RyanVM
:
checkin+
|
Details | Diff | Splinter Review |
The following testcase asserts on mozilla-central revision 441f5fd256e2 (run with --fuzzing-safe --ion-eager):
function x() {
var i=0;
var j=0;
for (i = 3; i<= 100000; i+=00 )
for (j = 2.e0 ; j < 1000; j+=2)
var g = newGlobal();
} x();
Reporter | ||
Comment 1•11 years ago
|
||
Reporter | ||
Updated•11 years ago
|
status-firefox31:
--- → affected
Whiteboard: [jsbugmon:update,bisect]
Reporter | ||
Updated•11 years ago
|
Whiteboard: [jsbugmon:update,bisect] → [jsbugmon:update]
Reporter | ||
Comment 2•11 years ago
|
||
JSBugMon: Bisection requested, result:
=== Tinderbox Build Bisection Results by autoBisect ===
The "good" changeset has the timestamp "20140320090350" and the hash "61e72c13e60b".
The "bad" changeset has the timestamp "20140320090852" and the hash "3762c3e540cd".
Likely regression window: https://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=61e72c13e60b&tochange=3762c3e540cd
Assignee | ||
Comment 3•11 years ago
|
||
It appears to be due to 3762c3e540cd. I'll investigate.
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → sunfish
Updated•11 years ago
|
Group: core-security
Assignee | ||
Comment 4•11 years ago
|
||
ValueNumberer::simplify replaces one MDefinition with another, the value numbers of all the original MDefinition's users (transitively) become stale. Remove values from the values table when they are marked for a revisit.
Attachment #8408686 -
Flags: review?(jdemooij)
Assignee | ||
Comment 5•11 years ago
|
||
Conservatively marking sec-critical since in a build without assertions, it's not theoretically impossible that freed memory could be read.
Keywords: sec-critical
Comment 6•11 years ago
|
||
Comment on attachment 8408686 [details] [diff] [review]
update-valuenumbering.patch
Review of attachment 8408686 [details] [diff] [review]:
-----------------------------------------------------------------
This looks fine, forwarding to Marty since he also fixed a GVN bug recently.
Attachment #8408686 -
Flags: review?(jdemooij) → review?(mrosenberg)
Updated•11 years ago
|
status-firefox30:
--- → unaffected
status-firefox-esr24:
--- → unaffected
Comment 7•11 years ago
|
||
Comment on attachment 8408686 [details] [diff] [review]
update-valuenumbering.patch
So it looks good, but I'm afraid that this will cause us to take longer to reach a fixed point. Would it be possible to only do this when a new replacement has happened? Or does the fact that it is transitive mean that simple checks won't cut it?
Attachment #8408686 -
Flags: review?(mrosenberg)
Updated•11 years ago
|
Group: javascript-core-security
Updated•11 years ago
|
status-firefox32:
--- → affected
![]() |
||
Updated•11 years ago
|
Blocks: 981894
Keywords: regression
Assignee | ||
Comment 9•11 years ago
|
||
My plan to fix this it to revert 3762c3e540cd. It's a simple and minor patch.
FWIW, I also plan to fix this on trunk with a much larger series of patches in bug 1004363.
Flags: needinfo?(sunfish)
Assignee | ||
Comment 10•11 years ago
|
||
This patch just reverts changeset 3762c3e540cd, which fixes the given testcases.
Because this patch is sec-critical and the bug is present in mozilla-aurora, I'll request sec-approval before committing.
Attachment #8408686 -
Attachment is obsolete: true
Attachment #8418776 -
Flags: review?(mrosenberg)
Updated•11 years ago
|
Attachment #8418776 -
Flags: review?(mrosenberg) → review+
Assignee | ||
Comment 11•11 years ago
|
||
Comment on attachment 8418776 [details] [diff] [review]
revert-phi-change.patch
[Security approval request comment]
How easily could an exploit be constructed based on the patch?
It depends on how hard it is to manipulate this bug into an actual use-before-free. I suspect it's tricky to do.
Do comments in the patch, the check-in comment, or tests included in the patch paint a bulls-eye on the security problem?
No.
Which older supported branches are affected by this flaw?
mozilla-aurora
If not all supported branches, which bug introduced the flaw?
Bug 981894.
Do you have backports for the affected branches? If not, how different, hard to create, and risky will they be?
I can easily make backports.
How likely is this patch to cause regressions; how much testing does it need?
Very unlikely. It's a revert.
Attachment #8418776 -
Flags: sec-approval?
Comment 12•11 years ago
|
||
Comment on attachment 8418776 [details] [diff] [review]
revert-phi-change.patch
sec-approval+.
Let's get an Aurora patch nominated and approved as well.
Attachment #8418776 -
Flags: sec-approval? → sec-approval+
Updated•11 years ago
|
tracking-firefox31:
--- → +
tracking-firefox32:
--- → +
Assignee | ||
Comment 13•11 years ago
|
||
Comment on attachment 8418776 [details] [diff] [review]
revert-phi-change.patch
The same patch applies on mozilla-aurora.
[Approval Request Comment]
Bug caused by (feature/regressing bug #): 981894
User impact if declined: Security bug
Testing completed (on m-c, etc.): It's a revert back to code tested on m-c.
Risk to taking this patch (and alternatives if risky): Low; it's a revert.
String or IDL/UUID changes made by this patch: none
Attachment #8418776 -
Flags: approval-mozilla-aurora?
Updated•11 years ago
|
Attachment #8418776 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment 14•11 years ago
|
||
So this only needs to land on Aurora per comment 9? Or should we take this on trunk for now as well?
Assignee | ||
Updated•11 years ago
|
Attachment #8418776 -
Flags: checkin?
Assignee | ||
Comment 15•11 years ago
|
||
(In reply to Ryan VanderMeulen [:RyanVM UTC-4] from comment #14)
> So this only needs to land on Aurora per comment 9? Or should we take this
> on trunk for now as well?
We want this on trunk as well as Aurora.
Comment 16•11 years ago
|
||
Comment on attachment 8418776 [details] [diff] [review]
revert-phi-change.patch
https://hg.mozilla.org/integration/mozilla-inbound/rev/d12f02a49c22
https://hg.mozilla.org/releases/mozilla-aurora/rev/2e7bbb297f03
Attachment #8418776 -
Flags: checkin? → checkin+
Updated•11 years ago
|
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla32
Reporter | ||
Updated•11 years ago
|
Status: RESOLVED → VERIFIED
Reporter | ||
Comment 18•11 years ago
|
||
JSBugMon: This bug has been automatically verified fixed.
Updated•11 years ago
|
Group: javascript-core-security
Updated•10 years ago
|
Group: core-security → core-security-release
Updated•9 years ago
|
Group: core-security-release
You need to log in
before you can comment on or make changes to this bug.
Description
•