Implement ASan redzones to detect intra-arena OOB access
Categories
(NSPR :: NSPR, enhancement)
Tracking
(firefox-esr115 wontfix, firefox-esr140 wontfix, firefox150 wontfix, firefox151 wontfix, firefox152 fixed)
People
(Reporter: mdauer, Assigned: mdauer)
References
Details
(Keywords: sec-other, Whiteboard: [adv-main152-])
Attachments
(2 external files)
NSPR already uses PL_MAKE_MEM_NOACCESS , PL_MAKE_MEM_UNDEFINED and PL_MAKE_MEM_DEFINED to manually (un)poision memory inside the arena. However, there are no redzones in between allocations inside an arena.
When building with ASan, the arena allocator should insert poisoned redzones between sub-allocations, so that overflows from one sub-allocation into the next are detected. The redzones and any associated overhead should compile away to nothing in non-ASan builds.
Updated•9 months ago
|
| Assignee | ||
Updated•8 months ago
|
| Assignee | ||
Comment 1•8 months ago
|
||
| Assignee | ||
Updated•7 months ago
|
Comment 2•7 months ago
|
||
https://hg-edge.mozilla.org/projects/nspr/rev/3fa8e4d8165765d5d7d053fd78882908baf62cfc
landed into both NSPR tip for 4.40 and NSPR 4.39 branch
Updated•7 months ago
|
Comment 3•7 months ago
|
||
11 days ago, mdauer placed a reminder on the bug using the whiteboard tag [reminder-test 2026-04-20] .
mdauer, please refer to the original comment to better understand the reason for the reminder.
| Assignee | ||
Comment 4•7 months ago
|
||
| Assignee | ||
Updated•7 months ago
|
Comment 5•7 months ago
|
||
@mdauer @djackson
The second patch did not yet land.
https://phabricator.services.mozilla.com/D297291
It's an NSS patch, but this is an NSPR tracking bug.
Do you want to move the revision to an NSS bug?
Updated•7 months ago
|
Pushed by nkulatova@mozilla.com:
https://hg.mozilla.org/projects/nss/rev/c655ebc6b38d
Add test for intra-arena ASan redzones, r=nss-reviewers,djackson
| Assignee | ||
Comment 7•7 months ago
|
||
Do you want to move the revision to an NSS bug?
Keeping it here should be fine?
Comment 8•7 months ago
|
||
(In reply to Maurice Dauer [:mdauer] from comment #7)
Do you want to move the revision to an NSS bug?
Keeping it here should be fine?
Fine with me, just noticed that the commit wouldn't be tracked in an NSS bug.
Updated•6 months ago
|
Updated•6 months ago
|
Updated•6 months ago
|
Updated•6 months ago
|
Updated•6 months ago
|
Updated•2 months ago
|
Description
•