haiku/headers
Michael Lotz b94221f3b2 mmap: Use MAP_NORESERVE to request overcommit, not PROT_NONE.
This reverts hrev54120 and instead adds the commonly supported
MAP_NORESERVE flag to request overcommit.

Using PROT_NONE for overcommit is problematic as the protection of
individual pages can still be changed via mprotect to make them
accessible, but that won't change the commitment. An application
using such a pattern may then unexpectedly run into out of memory
conditions on random writes into the address space.

With MAP_NORESERVE the overcommit can explicitly be requested by
applications that want to reserve address space without producing
memory pressure.

Change-Id: Id213d2245c5e23103e8e0857f7902e0cd8a2c65d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2611
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2020-05-09 02:57:48 +00:00
..
build configure & build: Add basic support for building with MSYS. 2020-05-03 13:24:26 -04:00
compatibility Add missing include in bsd/sys/link_elf.h 2019-09-18 03:40:47 +00:00
config ARM64: Initial changes so we can compile GCC toolchain 2019-08-30 19:05:16 +00:00
cpp build fix. 2015-11-12 22:24:16 +01:00
glibc
libs agg: fix build. 2020-01-22 19:25:16 +01:00
os Remove MouseDownThread and its usages 2020-05-07 22:08:23 +00:00
posix mmap: Use MAP_NORESERVE to request overcommit, not PROT_NONE. 2020-05-09 02:57:48 +00:00
private kernel/vm: Implement swap adoption for cut_area middle case. 2020-05-08 21:56:56 +00:00
tools Fix #12799: Enable elf symbol patching for Haiku 2016-10-30 10:42:24 +01:00