Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
virtual memory quarantine #261
Comments
thestinger
added
the
Type: enhancement
label
May 14, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thestinger commentedMay 14, 2016
•
edited
Edited 1 time
-
thestinger
edited May 25, 2016
Either in the kernel or as a layer in libc. This would likely only be practical on 64-bit.
Instead of unmapping, drop the pages (
MADV_DONTNEED), set the memory protection toPROT_NONEand hold on to it in a quarantine. There can be a limit on the number of page spans along with a limit on the total quarantined virtual memory. It would make sense to bypass the quarantine for extremely large spans rather than dropping most of it.