Closed Bug 2049308 Opened 4 months ago Closed 3 months ago

Harden bailout and recover instruction code

Categories

(Core :: JavaScript Engine: JIT, task, P1)

task

Tracking

()

RESOLVED FIXED
154 Branch
Tracking Status
firefox-esr115 --- wontfix
firefox-esr140 --- wontfix
firefox152 --- wontfix
firefox153 + fixed
firefox154 + fixed

People

(Reporter: jandem, Assigned: jandem)

References

(Blocks 1 open bug)

Details

(Keywords: sec-audit, Whiteboard: [adv-main153-])

Attachments

(2 files)

48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review

Bug 2044606 is an example of a bailout/recover-instruction bug where release assertions would have helped. Bailout and recover instruction code is cold - this means it's hard to test well but it also means we could upgrade many assertions to release assertions without affecting performance.

Flags: needinfo?(jdemooij)
Attached file (secure) —
Assignee: nobody → jdemooij
Status: NEW → ASSIGNED
Flags: needinfo?(jdemooij)
Pushed by abutkovits@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/318501fda5ec https://hg.mozilla.org/integration/autoland/rev/84f4e7d72dce Revert "Bug 2049308 - Add some release assertions to the bailout code. r=mgaudet" for causing bustages in InstrProfilingValue.c.

Interesting, that looks like an LLVM PGO bug... I'll see if I can figure out which part is responsible.

Blocks: sm-jits
Severity: -- → N/A
Priority: -- → P1
Flags: needinfo?(jdemooij)
Group: javascript-core-security → core-security-release
Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 154 Branch
Flags: needinfo?(jdemooij)

Is this worth uplifting to Beta for the benefit of ESR153?

Flags: needinfo?(jdemooij)
Attached file (secure) —
Attachment #9607043 - Flags: approval-mozilla-beta?

firefox-beta Uplift Approval Request

  • User impact if declined/Reason for urgency: This patch adds some release assertions to help prevent security bugs. Would be nice to have on ESR153.
  • Code covered by automated testing?: yes
  • Fix verified in Nightly?: yes
  • Needs manual QE testing?: no
  • Steps to reproduce for manual QE testing:
  • Risk associated with taking this patch: low
  • Explanation of risk level: Has been on Nightly for a while. Changes some assertions to release assertions.
  • String changes made/needed?: N/A
  • Is Android affected?: yes

(In reply to Ryan VanderMeulen [:RyanVM] from comment #7)

Is this worth uplifting to Beta for the benefit of ESR153?

Yes; I've requested uplift.

Flags: needinfo?(jdemooij)
Attachment #9607043 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
QA Whiteboard: [sec] [uplift] [qa-triage-done-c154/b153]
Whiteboard: [adv-main153-]
Group: core-security-release
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: