This is an archive of the discontinued LLVM Phabricator instance.

Add ReservedAddressRange to sanitizer_common.h.
AbandonedPublic

Authored by flowerhack on Sep 26 2017, 11:46 AM.

Details

Summary

We'd like to refactor the MmapNoAccess/MmapFixedOrDie APIs to be
a bit more sensible. In particular, these are better represented
as first reserving a specifically-utilized address space, and then
mapping subsections of that space at will.

This will make the Fuchsia implementation of these functions more flexible.

As a first step, this commit creates the class to be used by the
new API, but all functions still call into the old API.

Diff Detail

Event Timeline

flowerhack created this revision.Sep 26 2017, 11:46 AM
flowerhack abandoned this revision.Sep 26 2017, 1:35 PM

discussed some changes offline w/ cryptoad@; going to submit a new approach soon