From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Philippe Vaucher Newsgroups: gmane.emacs.bugs Subject: bug#23529: Request for fixing randomize_va_space build issues Date: Mon, 12 Sep 2016 16:10:47 +0200 Message-ID: References: <02c57124-ef39-bc30-89ba-998986d070fc@cs.ucla.edu> <834m5tapuu.fsf@gnu.org> <83twdsalbk.fsf@gnu.org> <83r38vaiyh.fsf@gnu.org> <83eg4vab5o.fsf@gnu.org> <831t0va8br.fsf@gnu.org> <478e7c97-9339-5072-f9c1-ec67a45113aa@cs.ucla.edu> <83h99p8wbh.fsf@gnu.org> <0f0bb7ef-a588-93c3-5d27-c7329c667ed8@cs.ucla.edu> <83d1kd8qb7.fsf@gnu.org> <838tv18mnj.fsf@gnu.org> <83eg4sap3t.fsf@gnu.org> <3fe2aff8-d34e-afa3-a2bf-6e42394d7be6@cs.ucla.edu> <83wpik8f18.fsf@gnu.org> <34fb7c59-cf4a-fddf-98e7-fd4c25c3f395@cs.ucla.edu> <83k2ek83b7.fsf@gnu.org> <24612cc1-cb72-511f-7d52-bb62101906ae@cs.ucla.edu> <83fup6bguo.fsf@gnu.org> <83poo9alyc.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1473689672 26960 195.159.176.226 (12 Sep 2016 14:14:32 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 12 Sep 2016 14:14:32 +0000 (UTC) Cc: Philipp Stephani , Paul Eggert , 23529@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 12 16:14:27 2016 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 1bjS03-0005fd-83 for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Sep 2016 16:14:19 +0200 Original-Received: from localhost ([::1]:43114 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjS01-0005iG-9t for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Sep 2016 10:14:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53259) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjRxu-0003wg-Lc for bug-gnu-emacs@gnu.org; Mon, 12 Sep 2016 10:12:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bjRxq-0004vF-Qb for bug-gnu-emacs@gnu.org; Mon, 12 Sep 2016 10:12:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60048) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjRxq-0004v1-ND for bug-gnu-emacs@gnu.org; Mon, 12 Sep 2016 10:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bjRxq-0002vZ-Bt for bug-gnu-emacs@gnu.org; Mon, 12 Sep 2016 10:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Philippe Vaucher Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 12 Sep 2016 14:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23529 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23529-submit@debbugs.gnu.org id=B23529.147368949511222 (code B ref 23529); Mon, 12 Sep 2016 14:12:02 +0000 Original-Received: (at 23529) by debbugs.gnu.org; 12 Sep 2016 14:11:35 +0000 Original-Received: from localhost ([127.0.0.1]:57760 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bjRxL-0002ur-VR for submit@debbugs.gnu.org; Mon, 12 Sep 2016 10:11:35 -0400 Original-Received: from mail-vk0-f46.google.com ([209.85.213.46]:34693) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bjRxF-0002uZ-Qg for 23529@debbugs.gnu.org; Mon, 12 Sep 2016 10:11:30 -0400 Original-Received: by mail-vk0-f46.google.com with SMTP id v189so135716294vkv.1 for <23529@debbugs.gnu.org>; Mon, 12 Sep 2016 07:11:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=q6i5gcxQEFFHMQ+sFNHxedI3B1zrZPc3zhTWzAksdgw=; b=pVjuRvlo7qoaedTwiVQOQYq01sEyJ5FScBFS6eR5RBL8dxGnvBMvYxMX7zLjAuJD2p hMlQ2V+iO25cCs7LRDATKb3GKQ9y8A3l/BBg7UOn0qrV8bJPh4mdAmBDuhdyNtCvL1u7 JnCdYc3UlQvVMNlj6h/81C2puKc09BiF5l3iRSfakFiB5BJj5/FWIPW1GZVpcDP4OTEJ 5Fl+TrB25k+K59vv8u3dAVsT7PmBj8NF0USIVHizr/w14kYj1rYBGowbX7MDDay50nGi pIuP8Glhqya9KRABPinRk/zgle6NDR//RGoMDTEU49cLhGUE3sUH5BCf9fNLf477WosJ hHIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=q6i5gcxQEFFHMQ+sFNHxedI3B1zrZPc3zhTWzAksdgw=; b=Er07LjoDGCXwJljMfi5MIYOWzi9eqcgdXzhw4d1fhVnTllKRuHLNI8GqJnU2j1lWKy jOVn4uQJBjN8Xw+NBgPd1lIY6W1r6s3FPb22Vtg/fiUAeBHmMHdRuWWBwlRk+mvQoNR3 lc/AsReWALJhvQlhikHRd+Cu0YyeAUOgkGR0HqhRlgpaVZeqfXbnsM3pgkBYcTSYoWLa 16EFLl+ItkvLz6mrud+jmyUiaPfVlEujA/obVthdN+GSwnmlVC1oZIzq7bBxsWMwPoC5 nYTDfz41B/XNhButYinPBUmoGubzReVuqheoLr7wpg/CRgY673uG6gPLDaIpf+6bsZGL usXw== X-Gm-Message-State: AE9vXwNDIDbLBBPbrAClD3RcG+NnHu8mtuc1MVdjFIdF3DOTefcEUl8OGnV6h8H9e++d48tj4Uv51ADiBcIfHA== X-Received: by 10.31.107.73 with SMTP id g70mr11269752vkc.20.1473689478581; Mon, 12 Sep 2016 07:11:18 -0700 (PDT) Original-Received: by 10.103.44.18 with HTTP; Mon, 12 Sep 2016 07:10:47 -0700 (PDT) In-Reply-To: <83poo9alyc.fsf@gnu.org> 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:123218 Archived-At: On Mon, Sep 12, 2016 at 4:30 AM, Eli Zaretskii wrote: >> From: Philippe Vaucher >> Date: Sun, 11 Sep 2016 21:32:51 +0200 >> Cc: Paul Eggert , Philipp Stephani , 23529@debbugs.gnu.org >> >> >> What about disabling randomization for the temacs run? >> >> >> >> That is yet another low-level thing to configure, and to get right in new ports. >> > >> > We already have that in Emacs, don't we? >> >> That is exactly why I made the bug report 23529! >> >> Because Emacs does stuffs at build time that requires "high" >> privileges (like the personality() syscall), one cannot build Emacs in >> various restricted environments. >> >> Disabling randomization is exactly what we should get rid of, at least >> at build time. > > Isn't it the other way around: the first priority is to enable > randomization and all the other modern techniques for running the > dumped Emacs? Now you confuse me... let's start over: I'm saying that we should try to make Emacs build fine wether there is address randomization or not . There should not be "disable ASLR" hacks when building/dumping, like there currently is. Basically, Emacs should not require higher privileges than GCC, which is currently not the case with all the personality() syscalls & friends. Now, maybe I missunderstood you when you said "What about disabling randomization for the temacs run?". I understood that as "Why don't we disable ASLR when temacs run?", which is exactly why Emacs has problem building in restricted environments. Philippe