aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/stdlib
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2017-12-10 14:11:03 +0100
committerCorinna Vinschen <corinna@vinschen.de>2017-12-10 14:14:24 +0100
commit67a657cb1d41e6ae90e9fdeba9e69fff09a2ea06 (patch)
tree1a89c4af79fa80ef2717f94607383a4663527b86 /newlib/libc/stdlib
parentc6f14b3c81f5a40317452625ef8d56c2612fe776 (diff)
downloadnewlib-67a657cb1d41e6ae90e9fdeba9e69fff09a2ea06.zip
newlib-67a657cb1d41e6ae90e9fdeba9e69fff09a2ea06.tar.gz
newlib-67a657cb1d41e6ae90e9fdeba9e69fff09a2ea06.tar.bz2
cygwin: mmap: fix a fork failure with private, anonymous mappings
Rounddown incoming addr on a page boundary. Without this, we may end up with a fork error for private, anonymous maps. The reason is, we use VirtualAlloc in this case which will potentially overcommit if addr is not on a page boundary. This isn't taken into account in bookkeeping, but fixup_mmaps_after_fork will eventually stumble over this when trying to reproduce the copy-on-write pages: VirtualQuery returns a region reaching beyond the supposedly allocated address range and from there it goes downhill. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'newlib/libc/stdlib')
0 files changed, 0 insertions, 0 deletions