* JIT and pax mprotect
@ 2020-08-27 19:28 Greg Troxel
0 siblings, 0 replies; only message in thread
From: Greg Troxel @ 2020-08-27 19:28 UTC (permalink / raw)
[-- Attachment #1: Type: text/plain, Size: 899 bytes --]
In trying to build 3.0.2 on NetBSD 8, I get a permission denied failure
in JIT, because of PaX MPROTECT. Disabling that (in the individual
file, or globally) allows things to work. This is a security feature
that prevents making writable mappings executable.
I would expect this to run into the same problem on GNU/Linux systems.
Has anyone run into that, and is there an accomodation for this? A
quick egrep -R of the sources doesn't turn up anything.
I am guessing that basically the link line for guile should be doing:
if OS in (NetBSD, ?):
paxctl +m libguile/.libs/guile
pkgsrc's build recipe does this for the final binary, but guile is built
and then used during the build step.
(Also, it might be nice to have a nicer exit than a core dump in the
presence of mprotect, but that's not that important.)
(Will update to 3.0.3, but probably that is the same).
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 194 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-08-27 19:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-27 19:28 JIT and pax mprotect Greg Troxel
unofficial mirror of email@example.com
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://yhetil.org/guile-devel/0 guile-devel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 guile-devel guile-devel/ https://yhetil.org/guile-devel \
Example config snippet for mirrors.
Newsgroups are available over NNTP:
AGPL code for this site: git clone http://ou63pmih66umazou.onion/public-inbox.git