]> granicus.if.org Git - gc/commit
Fix 'mprotect remapping failed' abort on NetBSD with PaX enabled
authorIvan Maidanski <ivmai@mail.ru>
Thu, 20 Dec 2018 21:54:55 +0000 (00:54 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 29 Jan 2019 08:38:40 +0000 (11:38 +0300)
commit19fd8d58fd3d7524ea08a6fc204ef2a1ad746692
treeb16d54ee77c6ba9161ef3858be17292b0591f3c9
parent13a70b1964cd9a8f1fe14aacd27c054602ca52b0
Fix 'mprotect remapping failed' abort on NetBSD with PaX enabled
(a cherry-pick of commit 1b28cc4b from 'release-7_4')

Issue #255 (bdwgc).

Without this patch, GC_remap() works on NetBSD which has the PaX feature
only if PaX MPROTECT is off (sysctl -w security.pax.mprotect.enabled=0).

* os_dep.c [USE_MUNMAP && !MSWIN32 && !MSWINCE && NETBSD] (GC_remap):
Call mmap() instead of mprotect().
os_dep.c