From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#18784: Coultdn't compile emacs-24.4 Date: Mon, 16 Mar 2015 16:29:48 -0400 Message-ID: References: <21763.19437.782573.339655@a1i15.kph.uni-mainz.de> <21763.21024.236293.665089@a1i15.kph.uni-mainz.de> <21766.40821.679834.521362@a1i15.kph.uni-mainz.de> <837fug29wr.fsf@gnu.org> <83sid4zthb.fsf@gnu.org> <83pp88zqgl.fsf@gnu.org> <21767.14136.316805.481531@a1i15.kph.uni-mainz.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1426537830 30405 80.91.229.3 (16 Mar 2015 20:30:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 Mar 2015 20:30:30 +0000 (UTC) Cc: 18784@debbugs.gnu.org To: Ulrich Mueller Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 16 21:30:20 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YXbeU-0003z7-Hy for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Mar 2015 21:30:18 +0100 Original-Received: from localhost ([::1]:51544 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXbeT-0002Kn-TI for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Mar 2015 16:30:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51384) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXbeK-0002KH-Ol for bug-gnu-emacs@gnu.org; Mon, 16 Mar 2015 16:30:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YXbeG-00033a-RO for bug-gnu-emacs@gnu.org; Mon, 16 Mar 2015 16:30:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50396) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXbeG-00032w-Og for bug-gnu-emacs@gnu.org; Mon, 16 Mar 2015 16:30:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YXbeF-0001cb-MK for bug-gnu-emacs@gnu.org; Mon, 16 Mar 2015 16:30:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Mar 2015 20:30:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18784 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18784-submit@debbugs.gnu.org id=B18784.14265377936133 (code B ref 18784); Mon, 16 Mar 2015 20:30:03 +0000 Original-Received: (at 18784) by debbugs.gnu.org; 16 Mar 2015 20:29:53 +0000 Original-Received: from localhost ([127.0.0.1]:48964 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YXbe5-0001aq-Gu for submit@debbugs.gnu.org; Mon, 16 Mar 2015 16:29:53 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:49274) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YXbe3-0001ai-Hj for 18784@debbugs.gnu.org; Mon, 16 Mar 2015 16:29:51 -0400 Original-Received: from ceviche.home (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id t2GKTmWD021119; Mon, 16 Mar 2015 16:29:49 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id B290A6615C; Mon, 16 Mar 2015 16:29:48 -0400 (EDT) In-Reply-To: <21767.14136.316805.481531@a1i15.kph.uni-mainz.de> (Ulrich Mueller's message of "Mon, 16 Mar 2015 21:04:08 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV5247=0 X-NAI-Spam-Version: 2.3.0.9393 : core <5247> : inlines <2424> : streams <1406563> : uri <1882104> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:100565 Archived-At: > There is a long history of Emacs catching up with kernel hardening > in this area. It started with setting ADDR_NO_RANDOMIZE via Linux > personality(2), then setting the NORANDEXEC flag with paxctl(1) or > setfattr(1). Now it seems that we need -nopie in addition. But what does "-nopie" mean? IIUC it means "do not generate PIE code", so it is a "double-level workaround": not only it doesn't directly fix the problem we have with randomization but it doesn't directly disable randomization either. If OTOH "-nopie" means "indicate that the code should not be relocated even if it looks like it's position independent", then it's only a "single-level workaround", like the ADDR_NO_RANDOMIZE and friends. > My impression is that these are all workarounds that don't address the > real issue. AFAIK the only way to address directly the underlying issue is to use a portable dumper. Until then we'll have to consider address randomization as plain bugs that we need to fix with things like ADDR_NO_RANDOMIZE. Stefan "who doesn't really believe in such hardening"