diff --git a/src/system/libroot/posix/sys/mman.cpp b/src/system/libroot/posix/sys/mman.cpp index bcbaee9ed5..8de57a3dd7 100644 --- a/src/system/libroot/posix/sys/mman.cpp +++ b/src/system/libroot/posix/sys/mman.cpp @@ -131,6 +131,8 @@ mmap(void* address, size_t length, int protection, int flags, int fd, areaProtection |= B_WRITE_AREA; if ((protection & PROT_EXEC) != 0) areaProtection |= B_EXECUTE_AREA; + if (protection == PROT_NONE) + areaProtection = B_OVERCOMMITTING_AREA; // create a name for this area based on calling image void* addr = __builtin_return_address(0);