From: Thomas Klausner <tk@giga.or.at>
To: 29940@debbugs.gnu.org
Subject: bug#29940: Acknowledgement (guile-2.2.3 does not work pax mprotect)
Date: Mon, 8 Jan 2018 23:52:27 +0100 [thread overview]
Message-ID: <20180108225227.3rhewyjmictlldnm@danbala> (raw)
In-Reply-To: <20180108104222.a5g7fnjbvqspesmm@danbala>
[-- Attachment #1: Type: text/plain, Size: 199 bytes --]
Jörg Sonnenberger just committed the attached patch to pkgsrc, which
fixes the problem for me as well, with the commit message:
"Use correct mmap permissions for later PROT_WRITE mprotect."
Thomas
[-- Attachment #2: patch-libguile_loader.c --]
[-- Type: text/plain, Size: 458 bytes --]
$NetBSD: patch-libguile_loader.c,v 1.1 2018/01/08 22:37:08 joerg Exp $
--- libguile/loader.c.orig 2018-01-08 16:21:04.790894906 +0000
+++ libguile/loader.c
@@ -484,7 +484,7 @@ map_file_contents (int fd, size_t len, i
char *data;
#ifdef HAVE_SYS_MMAN_H
- data = mmap (NULL, len, PROT_READ, MAP_PRIVATE, fd, 0);
+ data = mmap (NULL, len, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0);
if (data == MAP_FAILED)
SCM_SYSERROR;
*is_read_only = 1;
prev parent reply other threads:[~2018-01-08 22:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-02 9:10 bug#29940: guile-2.2.3 does not work pax mprotect Thomas Klausner
[not found] ` <sfid-+20180102-101108-+008.55-1@spamfilter.osbf.lua>
[not found] ` <handler.29940.B.151488425022993.ack@debbugs.gnu.org>
2018-01-08 10:42 ` bug#29940: Acknowledgement (guile-2.2.3 does not work pax mprotect) Thomas Klausner
2018-01-08 22:52 ` Thomas Klausner [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180108225227.3rhewyjmictlldnm@danbala \
--to=tk@giga.or.at \
--cc=29940@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).