Closed Bug 2013011 Opened 1 month ago Closed 1 month ago

AddressSanitizer: stack-overflow [@ MemcmpInterceptorCommon]

Categories

(Core :: Layout, defect)

x86_64
Linux
defect

Tracking

()

VERIFIED FIXED
149 Branch
Tracking Status
firefox-esr140 --- unaffected
firefox147 --- unaffected
firefox148 --- unaffected
firefox149 --- verified

People

(Reporter: jkratzer, Assigned: emilio)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: pernosco, regression, testcase, Whiteboard: [bugmon:bisected,confirmed], [wptsync upstream])

Crash Data

Attachments

(3 files)

Testcase found while fuzzing mozilla-central rev 08a9de1f821f (built with: --enable-address-sanitizer --enable-fuzzing).

Testcase can be reproduced using the following commands:

$ pip install fuzzfetch grizzly-framework pipx --upgrade
$ python -m pipx ensurepath
$ fuzzfetch --build 08a9de1f821f --asan --fuzzing  -n firefox
$ grizzly-replay-bugzilla ./firefox/firefox <bugid>
Attached file Testcase

Verified bug as reproducible on mozilla-central 20260128094816-08a9de1f821f.
The bug appears to have been introduced in the following build range:

Start: 1a2bb6c3bf5d1545d6c2d8b36bc4867fa0363de5 (20260119110606)
End: 6bf16ff5cae339919373fddcf20a04121adb24fd (20260119122634)
Pushlog: https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=1a2bb6c3bf5d1545d6c2d8b36bc4867fa0363de5&tochange=6bf16ff5cae339919373fddcf20a04121adb24fd

Keywords: regression
Whiteboard: [bugmon:confirm] → [bugmon:bisected,confirmed]
Crash Signature: [@ stackoverflow | mozilla::dom::Element::QueryInterface ]

This bug has been marked as a regression. Setting status flag for Nightly to affected.

Testcase is using anchor positioning (bottom: anchor-size(--anchor-name_0);) and popover (cite.showPopover(...))

And the backtrace shows infinite recursion in FindScrollCompensatedAnchorShift.

That function was added by bug 1950251 which is in the regression range; flagging as regression from that. emilio, could you take a look when you get a chance?

Flags: needinfo?(emilio)
Regressed by: 1950251

(Tentatively triaging as S3, given that stack-exhaustion doesn't have security implications and given that we haven't yet hit this in the wild.)

Severity: -- → S3

Set release status flags based on info from the regressing bug 1950251

Keywords: pernosco-wanted

(Drive-by)

cite.showPopover({"source": cite})

Hm, at a glance, spec doesn't handle setting itself as the source.

Successfully recorded a pernosco session. A link to the pernosco session will be added here shortly.

A pernosco session for this bug can be found here.

Flags: needinfo?(emilio)

The invoker can be anywhere in the dom, have to confirm that it's an
acceptable anchor. I think pseudo elements should always pass this
check but worth doing regardless.

This also fixes bug 2013896, while at it, gotta add a test for that, if
this doesn't cause any progression.

Assignee: nobody → emilio
Status: NEW → ASSIGNED
Pushed by ealvarez@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/93dfeeec2fac https://hg.mozilla.org/integration/autoland/rev/8e3abd8074e7 Check implicit anchor validity. r=layout-anchor-positioning-reviewers,layout-reviewers,dshin
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/57621 for changes under testing/web-platform/tests
Whiteboard: [bugmon:bisected,confirmed] → [bugmon:bisected,confirmed], [wptsync upstream]
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 149 Branch
Upstream PR merged by moz-wptsync-bot

Verified bug as fixed on rev mozilla-central 20260207085912-a644f3faa9ba.
Removing bugmon keyword as no further action possible. Please review the bug and re-add the keyword for further analysis.

Status: RESOLVED → VERIFIED
Keywords: bugmon
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: