Shared memory blocks used by the font list should be impossible for content processes to map with write access
Categories
(Core :: Layout: Text and Fonts, enhancement, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox77 | --- | fixed |
People
(Reporter: jfkthame, Assigned: jfkthame)
References
Details
(Whiteboard: [layout:backlog:77])
Attachments
(3 files)
To make the font list more robust against a potential rogue content process, we'd like to "freeze" the shared memory blocks once support for this (bug 1479960) is available.
As the initial version of the shared font list code relies on incrementally updating the shared data, we'll need to refactor the allocation strategy a bit in order to freeze each piece of data as it's added.
Updated•6 years ago
|
Assignee | ||
Comment 1•6 years ago
|
||
Currently, when shmem blocks are shared to the content process, they're mapped there as read-only, but AFAIK there's nothing in principle that prevents a rogue content process re-mapping the block with write access. Once bug 1550900 is done, we should configure these blocks such that they cannot ever be made writable from the content process.
![]() |
||
Comment 2•5 years ago
|
||
I'm about to punt bug 1533462 which was targeted at M4 because we can't land without this. I'm guessing this should also be targeting a milestone given that.
Assignee | ||
Comment 3•5 years ago
|
||
Probably bug 1550900 should also have the same target, given that this is dependent on it.
Updated•5 years ago
|
Assignee | ||
Comment 4•5 years ago
|
||
Updated•5 years ago
|
Assignee | ||
Comment 5•5 years ago
|
||
Depends on D68778
Assignee | ||
Comment 6•5 years ago
|
||
Updated•5 years ago
|
Comment 8•5 years ago
|
||
Backed out 3 changesets (Bug 1550037) for causing bustages in SharedFontList-impl.h
Backout link: https://hg.mozilla.org/integration/autoland/rev/d850c01b531f5ec42d195cfb4ef92fcdb272c2d5
Failure log:
https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=296570245&repo=autoland&lineNumber=43785
Comment 10•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/005a8977f8fc
https://hg.mozilla.org/mozilla-central/rev/0e5c6a1e1bee
https://hg.mozilla.org/mozilla-central/rev/1394bc3c6261
Assignee | ||
Updated•5 years ago
|
Description
•