From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#33174: 27.0.50; Dump fails on GNU/Linux ppc64le Date: Tue, 13 Nov 2018 06:42:42 -0800 Organization: UCLA Computer Science Department Message-ID: <0de7486c-04d1-a13d-4490-b79c4b8f68e2@cs.ucla.edu> References: <39df62a1-58fb-0e5c-88a6-3eaae4e865d4@cs.ucla.edu> <9fbbce6a-ca72-e4e2-1456-49e146542896@cs.ucla.edu> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------7D69903DF402EC067CC56D94" X-Trace: blaine.gmane.org 1542120072 17833 195.159.176.226 (13 Nov 2018 14:41:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 13 Nov 2018 14:41:12 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 Cc: 33174-done@debbugs.gnu.org To: Thomas Fitzsimmons Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 13 15:41:08 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gMZsH-0004PW-Up for geb-bug-gnu-emacs@m.gmane.org; Tue, 13 Nov 2018 15:41:06 +0100 Original-Received: from localhost ([::1]:54311 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gMZuN-0004rq-Uf for geb-bug-gnu-emacs@m.gmane.org; Tue, 13 Nov 2018 09:43:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52877) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gMZuF-0004qU-0P for bug-gnu-emacs@gnu.org; Tue, 13 Nov 2018 09:43:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gMZuA-00006u-O8 for bug-gnu-emacs@gnu.org; Tue, 13 Nov 2018 09:43:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:44447) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gMZuA-00006m-JH for bug-gnu-emacs@gnu.org; Tue, 13 Nov 2018 09:43:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gMZuA-0000AZ-GI for bug-gnu-emacs@gnu.org; Tue, 13 Nov 2018 09:43:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 13 Nov 2018 14:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33174 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 33174-done@debbugs.gnu.org id=D33174.1542120173632 (code D ref 33174); Tue, 13 Nov 2018 14:43:02 +0000 Original-Received: (at 33174-done) by debbugs.gnu.org; 13 Nov 2018 14:42:53 +0000 Original-Received: from localhost ([127.0.0.1]:48705 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gMZu0-0000A8-Pf for submit@debbugs.gnu.org; Tue, 13 Nov 2018 09:42:52 -0500 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:42882) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gMZty-00009t-0x for 33174-done@debbugs.gnu.org; Tue, 13 Nov 2018 09:42:51 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 09A531600EF; Tue, 13 Nov 2018 06:42:44 -0800 (PST) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id zKt9ZZecUh2u; Tue, 13 Nov 2018 06:42:43 -0800 (PST) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 071581600F4; Tue, 13 Nov 2018 06:42:43 -0800 (PST) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Wab0OeenPFlb; Tue, 13 Nov 2018 06:42:42 -0800 (PST) Original-Received: from [192.168.1.9] (cpe-23-242-74-103.socal.res.rr.com [23.242.74.103]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id D17C61600EF; Tue, 13 Nov 2018 06:42:42 -0800 (PST) In-Reply-To: Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:152347 Archived-At: This is a multi-part message in MIME format. --------------7D69903DF402EC067CC56D94 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Thomas Fitzsimmons wrote: > It looks like the second patch still disables ASLR unconditionally on > PPC64. If you want to suggest experiments I can try on my system, maybe > I can attempt a fix so that ASLR can be disabled only during dumping on > PPC64 like on other archiectures. Or do you know that's an > impossibility for some reason? I don't recall the reason that ppc64 is different, but you can experiment by applying the attached patch. To help with the detective work you might look at the thread containing this email: https://sourceware.org/ml/libc-alpha/2016-07/msg00538.html --------------7D69903DF402EC067CC56D94 Content-Type: text/x-patch; name="ppc.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="ppc.diff" diff --git a/src/sysdep.c b/src/sysdep.c index ddcb594f66..71aa63a1c0 100644 --- a/src/sysdep.c +++ b/src/sysdep.c @@ -164,9 +164,6 @@ maybe_disable_address_randomization (bool dumping, int argc, char **argv) if (argc < 2 || strcmp (argv[1], aslr_disabled_option) != 0) { bool disable_aslr = dumping; -# ifdef __PPC64__ - disable_aslr = true; -# endif exec_personality = disable_aslr ? personality (0xffffffff) : -1; if (exec_personality & ADDR_NO_RANDOMIZE) exec_personality = -1; --------------7D69903DF402EC067CC56D94--