Assertion failure: s_.payload_.why_ == why, at dist/include/js/Value.h:689 with arguments
Categories
(Core :: JavaScript Engine, defect, P1)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr60 | --- | unaffected |
| firefox64 | --- | unaffected |
| firefox65 | + | verified |
| firefox66 | + | verified |
People
(Reporter: decoder, Unassigned, NeedInfo)
References
Details
(4 keywords, Whiteboard: [jsbugmon:update])
Attachments
(1 file)
|
1.92 KB,
patch
|
jandem
:
review+
RyanVM
:
approval-mozilla-beta+
abillings
:
sec-approval+
|
Details | Diff | Splinter Review |
Comment 1•7 years ago
|
||
Updated•7 years ago
|
Updated•7 years ago
|
Comment 2•7 years ago
|
||
Updated•7 years ago
|
Comment 3•7 years ago
|
||
Comment 4•7 years ago
|
||
Comment 5•7 years ago
|
||
Comment 6•7 years ago
|
||
Updated•7 years ago
|
Comment 7•7 years ago
|
||
Comment on attachment 9034186 [details] [diff] [review]
Check implicitly used flags when flagging phis for removed uses.
Review of attachment 9034186 [details] [diff] [review]:
Sorry for the delay :/
Let's try to fix this in 65 so we don't ship the regression.
::: js/src/jit/IonAnalysis.cpp
@@ +221,3 @@
// between the |block| and its successor |succ|. MDefinition* def = phi->getOperand(predIndex); if (def->isUseRemoved()) {
Do we also need to check isImplicitlyUsed here?
Comment 8•7 years ago
|
||
(In reply to Jan de Mooij [:jandem] from comment #7)
Comment on attachment 9034186 [details] [diff] [review]
Check implicitly used flags when flagging phis for removed uses.Review of attachment 9034186 [details] [diff] [review]:
Sorry for the delay :/
Let's try to fix this in 65 so we don't ship the regression.
::: js/src/jit/IonAnalysis.cpp
@@ +221,3 @@// between the |block| and its successor |succ|. MDefinition* def = phi->getOperand(predIndex); if (def->isUseRemoved()) {Do we also need to check isImplicitlyUsed here?
Good catch!
I do not think it is mandatory, it would just reduce the amount of work by skipping the rest of the loop.
Comment 9•7 years ago
|
||
Comment on attachment 9034186 [details] [diff] [review]
Check implicitly used flags when flagging phis for removed uses.
[Security Approval Request]
How easily could an exploit be constructed based on the patch?: I do not know if it can be exploited, as I would expect blew up on some assertions later on.
However, I think it would likely cause crashes in the wild, even without deliberate intent to exploit this crashes.
Do comments in the patch, the check-in comment, or tests included in the patch paint a bulls-eye on the security problem?: Unknown
Which older supported branches are affected by this flaw?: fx65
If not all supported branches, which bug introduced the flaw?: Bug 1489142
Do you have backports for the affected branches?: Yes
If not, how different, hard to create, and risky will they be?: This is the same patch.
How likely is this patch to cause regressions; how much testing does it need?: It needs to pass the test suite, plus the test from this bug.
Comment 10•7 years ago
|
||
Comment on attachment 9034186 [details] [diff] [review]
Check implicitly used flags when flagging phis for removed uses.
sec-approval+. Please nominate a beta patch to go in as well as soon as you can.
Updated•7 years ago
|
Comment 11•7 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/a861fff5d00c71af2719e40b6cc512f5af5bc598
As already noted, this grafts cleanly to Beta as-is. Please nominate it for Beta approval when you get a chance.
Comment 12•7 years ago
|
||
(In reply to Nicolas B. Pierron [:nbp] from comment #8)
(In reply to Jan de Mooij [:jandem] from comment #7)
::: js/src/jit/IonAnalysis.cpp
@@ +221,3 @@// between the |block| and its successor |succ|. MDefinition* def = phi->getOperand(predIndex); if (def->isUseRemoved()) {Do we also need to check isImplicitlyUsed here?
Good catch!
I do not think it is mandatory, it would just reduce the amount of work by skipping the rest of the loop.
I will open a follow-up bug as the patch landed without this modification. :/
No big deal.
Comment 13•7 years ago
|
||
Comment on attachment 9034186 [details] [diff] [review]
Check implicitly used flags when flagging phis for removed uses.
[Beta/Release Uplift Approval Request]
Feature/Bug causing the regression: Bug 1489142
User impact if declined: Potentially some crashes in the wild. (not sure if they could be made exploitable, my uncertain guess would be no)
Is this code covered by automated tests?: Yes
Has the fix been verified in Nightly?: Yes
Needs manual test from QE?: No
If yes, steps to reproduce:
List of other uplifts needed: None
Risk to taking this patch: Low
Why is the change risky/not risky? (and alternatives if risky): The change is not risky as it prevents code from being removed incorrectly, and thus replaced by optimized-out magic value.
String changes made/needed: N/A
Comment 14•7 years ago
|
||
Comment 15•7 years ago
|
||
Comment on attachment 9034186 [details] [diff] [review]
Check implicitly used flags when flagging phis for removed uses.
[Triage Comment]
Fixes some maybe-exploitable crashes. Approved for 65.0b10.
Comment 16•7 years ago
|
||
| uplift | ||
Updated•7 years ago
|
Comment 17•7 years ago
|
||
Comment 18•7 years ago
|
||
Ni? my-self for landing the test case later.
Updated•7 years ago
|
Comment 19•7 years ago
|
||
Updated•6 years ago
|
Description
•