Closed Bug 1047620 Opened 10 years ago Closed 10 years ago

Fix sandboxing for B2G --disable-jemalloc builds, which call mremap via libc.so!dlrealloc

Categories

(Core :: Security, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla34

People

(Reporter: jld, Assigned: jld)

References

Details

Attachments

(1 file)

Valgrind and Sanitizer builds disable jemalloc, meaning we get the system malloc; and on (some versions of?) Android, it optimizes large realloc()s by using mremap.  So that needs to be whitelisted.
Attack surface note: this applies only to builds used for (relatively) high-overhead memory debugging methods.
Attachment #8466435 - Flags: review?(gdestuynder)
Comment on attachment 8466435 [details] [diff] [review]
bug1047620-allow-mremap-hg0.diff

Review of attachment 8466435 [details] [diff] [review]:
-----------------------------------------------------------------

having attack surface note in bug++ :)
Attachment #8466435 - Flags: review?(gdestuynder) → review+
https://hg.mozilla.org/mozilla-central/rev/36cf6a98d663
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla34
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: