Permit MAP_RENAME and MAP_NORESERVE for now. These flags should be removed, but at least

Chromium and OpenJDK use MAP_NORESERVE.
This commit is contained in:
John Baldwin 2014-09-16 17:21:06 +00:00
parent 58ab5b0a13
commit 8bafac5444

View File

@ -244,10 +244,9 @@ sys_mmap(td, uap)
flags |= MAP_ANON;
pos = 0;
}
/* XXX: MAP_RENAME, MAP_NORESERVE */
if ((flags & ~(MAP_SHARED | MAP_PRIVATE | MAP_FIXED | MAP_HASSEMAPHORE |
MAP_STACK | MAP_NOSYNC | MAP_ANON | MAP_EXCL | MAP_NOCORE |
MAP_PREFAULT_READ |
if ((flags & ~(MAP_SHARED | MAP_PRIVATE | MAP_FIXED | MAP_RENAME |
MAP_NORESERVE | MAP_HASSEMAPHORE | MAP_STACK | MAP_NOSYNC |
MAP_ANON | MAP_EXCL | MAP_NOCORE | MAP_PREFAULT_READ |
#ifdef MAP_32BIT
MAP_32BIT |
#endif