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
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 | ||
Comment 1•3 years ago
|
||
| Assignee | ||
Comment 2•3 years ago
|
||
Depends on D178029
| Assignee | ||
Comment 3•3 years ago
|
||
Depends on D178030
| Assignee | ||
Comment 4•3 years 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•3 years ago
|
Updated•3 years ago
|
| Assignee | ||
Comment 6•3 years ago
|
||
Depends on D178029
Updated•3 years ago
|
| Assignee | ||
Comment 7•3 years ago
|
||
Depends on D181422
| Assignee | ||
Comment 8•3 years ago
|
||
We can land this after the soft code freeze.
Comment 10•3 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/0ad1e4859c59
https://hg.mozilla.org/mozilla-central/rev/6308011c6366
Description
•