Closed Bug 1688517 Opened 4 years ago Closed 4 years ago

Crash [@ js::Nursery::enterZealMode]

Categories

(Core :: JavaScript: GC, defect, P1)

All
Windows 10
defect

Tracking

()

RESOLVED FIXED
87 Branch
Tracking Status
firefox86 --- fixed
firefox87 --- fixed

People

(Reporter: gkw, Assigned: jonco)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression, reporter-external, testcase)

Crash Data

Attachments

(3 files)

Attached file Testcase

See attached testcase.

The first bad revision is:
changeset:   https://hg.mozilla.org/mozilla-central/rev/43978ebfc7ac
user:        Jon Coppeard
date:        Wed Jan 20 10:04:29 2021 +0000
summary:     Bug 1686219 - Store chunk information at the start rather than the end of the chunk r=sfink

Run with --fuzzing-safe --differential-testing --no-threads --no-baseline --no-ion, compile with MAKE=mozmake 'LIBCLANG_PATH=c:\Users\<user>\.mozbuild\clang\bin' sh ./configure --host=x86_64-pc-mingw32 --target=x86_64-pc-mingw32 --enable-debug --enable-gczeal --enable-debug-symbols --disable-tests, tested on m-c rev 63534c66d7b8.

Not sure if this is s-s since it seems to require --differential-testing, I'd leave it to Jon/Steve. Also seems Windows-only.

Flags: sec-bounty?
Flags: needinfo?(jcoppeard)
OS: All → Windows 10
$ ~/.mozbuild/clang/bin/clang.exe --version
clang version 11.0.0
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: c:\Users\<user>\.mozbuild\clang\bin

Thanks, I can see what the problem is. This is specific to GC zeal, which means it's not present in release builds and not security sensitive.

Assignee: nobody → jcoppeard
Severity: -- → N/A
Flags: needinfo?(jcoppeard)
Priority: -- → P1

I missed changing this size calculation when moving the chunk metadata to the start of the chunk. This marks the whole chunk in use again if any of it could have been marked not it use.

Group: core-security → javascript-core-security
Group: javascript-core-security
Pushed by jcoppeard@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/bd17202230cd Fix marking nursery pages in use when entering generational zeal mode r=sfink
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 87 Branch
Flags: sec-bounty? → sec-bounty-

The patch landed in nightly and beta is affected.
:jonco, is this bug important enough to require an uplift?
If not please set status_beta to wontfix.

For more information, please visit auto_nag documentation.

Flags: needinfo?(jcoppeard)

(In reply to Release mgmt bot [:sylvestre / :calixte / :marco for bugbug] from comment #7)
Yes, let's uplift this.

Flags: needinfo?(jcoppeard)

(In reply to Jon Coppeard (:jonco) from comment #8)

(In reply to Release mgmt bot [:sylvestre / :calixte / :marco for bugbug] from comment #7)
Yes, let's uplift this.

Hi Jon, could you make an uplift request via our Bugzilla form please? Thanks

Flags: needinfo?(jcoppeard)

Comment on attachment 9198953 [details]
Bug 1688517 - Fix marking nursery pages in use when entering generational zeal mode r?sfink

Beta/Release Uplift Approval Request

  • User impact if declined: None, but there may be testing impact.
  • 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): This is a very simple change and affects code that is not present in release builds.
  • String changes made/needed:
Flags: needinfo?(jcoppeard)
Attachment #9198953 - Flags: approval-mozilla-beta?

Comment on attachment 9198953 [details]
Bug 1688517 - Fix marking nursery pages in use when entering generational zeal mode r?sfink

Approved for 86 beta 4, thanks.

Attachment #9198953 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: