PHC area should be aligned to and a multiple of the jemalloc chunk size
Categories
(Core :: Memory Allocator, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox117 | --- | fixed |
People
(Reporter: pbone, Assigned: pbone)
References
(Blocks 1 open bug)
Details
Attachments
(2 files, 3 obsolete files)
If jemalloc tries to free an invalid pointer but one that is NOT a PHC pointer the address calculations performed by jemalloc could cause jemalloc to dereference a PHC pointer, adding PHC stacks to a crash report that could be a red herring.
If we size & align the PHC area it could reduce the chance of jemalloc or JS GC's address calculations from causing a PHC pointer to be dereferenced.
It seems far fetched but we think this has happened at least once.
Assignee | ||
Updated•1 years ago
|
Assignee | ||
Comment 1•1 year ago
|
||
Assignee | ||
Comment 2•1 year ago
|
||
Depends on D178029
Assignee | ||
Comment 3•1 year ago
|
||
Depends on D178030
Assignee | ||
Comment 4•1 year ago
|
||
Hi Glandium,
I've posted these patches for review, but I want to ask: I'm passing the pages_map
and pages_umnap
functions as parameters, would you prefer templates?
Updated•1 year ago
|
Updated•1 year ago
|
Assignee | ||
Comment 6•1 year ago
|
||
Depends on D178029
Updated•1 year ago
|
Assignee | ||
Comment 7•1 year ago
|
||
Depends on D181422
Assignee | ||
Comment 8•1 year ago
|
||
We can land this after the soft code freeze.
Comment 10•1 year ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/0ad1e4859c59
https://hg.mozilla.org/mozilla-central/rev/6308011c6366
Description
•