From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: Ulrich Mueller <ulm@gentoo.org>
Cc: 18784@debbugs.gnu.org
Subject: bug#18784: Coultdn't compile emacs-24.4
Date: Mon, 16 Mar 2015 16:29:48 -0400 [thread overview]
Message-ID: <jwvtwxk6679.fsf-monnier+emacsbugs@gnu.org> (raw)
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")
> 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"
next prev parent reply other threads:[~2015-03-16 20:29 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-21 11:52 bug#18784: Coultdn't compile emacs-24.4 Gangræna Gorgeous
2014-10-21 15:16 ` Eli Zaretskii
2014-10-21 15:49 ` David Engster
2015-03-13 19:54 ` Glenn Morris
2015-03-13 20:43 ` Ulrich Mueller
2015-03-13 21:09 ` Ulrich Mueller
2015-03-13 23:25 ` Stefan Monnier
2015-03-16 9:16 ` Ulrich Mueller
2015-03-16 13:09 ` Stefan Monnier
2015-03-16 16:18 ` Eli Zaretskii
2015-03-16 18:19 ` Stefan Monnier
2015-03-16 18:29 ` Eli Zaretskii
2015-03-16 19:06 ` Stefan Monnier
2015-03-16 19:34 ` Eli Zaretskii
2015-03-16 20:04 ` Ulrich Mueller
2015-03-16 20:29 ` Stefan Monnier [this message]
2015-03-29 12:19 ` Ulrich Mueller
2015-04-03 11:45 ` Ulrich Mueller
2015-03-16 16:26 ` Ulrich Mueller
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvtwxk6679.fsf-monnier+emacsbugs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=18784@debbugs.gnu.org \
--cc=ulm@gentoo.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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.