From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Greg Troxel Newsgroups: gmane.lisp.guile.devel Subject: JIT and pax mprotect Date: Thu, 27 Aug 2020 15:28:39 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2359"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (berkeley-unix) To: guile-devel Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Thu Aug 27 21:39:34 2020 Return-path: Envelope-to: guile-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kBNkC-0000T2-7n for guile-devel@m.gmane-mx.org; Thu, 27 Aug 2020 21:39:32 +0200 Original-Received: from localhost ([::1]:34450 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kBNkB-0007p0-2P for guile-devel@m.gmane-mx.org; Thu, 27 Aug 2020 15:39:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35710) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kBNZk-0003eh-24 for guile-devel@gnu.org; Thu, 27 Aug 2020 15:28:44 -0400 Original-Received: from s1.lexort.com ([2605:2700:0:2:a800:ff:fe4b:be00]:49975) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kBNZi-0001CP-7q for guile-devel@gnu.org; Thu, 27 Aug 2020 15:28:43 -0400 Original-Received: by s1.lexort.com (Postfix, from userid 10853) id 9C5C94107FA; Thu, 27 Aug 2020 15:28:39 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lexort.com; s=mail; t=1598556519; bh=OhSqIMyfKx2oiiZrqlfCoGIjJFA3DaDNV9jEfCK5Et4=; h=From:To:Subject:Date; b=odEB/QasOZ4s3gjUGeLHeXTw1YMfVc7yUVXfnUTV4rGsHNGP0NvFR2E++sU+wBNE6 IikCb70l1MDa3jGiLRj5APY0JGbfREfARcYwY9/Rje/BP/OivQsrm+RCQ8Et5+JZTX rd7MiSx/XHFhAnSnHuvoB9V8pFGbg4/CjBip8tgI= OpenPGP: id=098ED60E Received-SPF: pass client-ip=2605:2700:0:2:a800:ff:fe4b:be00; envelope-from=gdt@lexort.com; helo=s1.lexort.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/27 14:40:56 X-ACL-Warn: Detected OS = ??? X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.io gmane.lisp.guile.devel:20581 Archived-At: --=-=-= Content-Type: text/plain 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). Thanks, Greg --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQS7wyAjWilQwVHG9Vsf2nroCY7WDgUCX0gJZwAKCRAf2nroCY7W DihXAJ4kQRGkQtpJXaKh8MS+BqDv/hXA/gCfePfJmjhHDGszrup+j3VqJ+HoLjs= =yVRe -----END PGP SIGNATURE----- --=-=-=--