| From: |
| Paul Eggert <eggert-AT-cs.ucla.edu> |
| To: |
| Daniel Colascione <dancol-AT-dancol.org> |
| Subject: |
| Re: Preview: portable dumper |
| Date: |
| Tue, 29 Nov 2016 13:35:12 -0800 |
| Message-ID: |
| <9b6a0571-b2ae-a5dd-a643-3595e8f71cd6@cs.ucla.edu> |
| Cc: |
| emacs-devel-AT-gnu.org |
On 11/29/2016 01:19 PM, Daniel Colascione wrote:
> Even*with* a PIC Emacs (which I hope is the default, because ASLR
> greatly improves security), we can get these savings if
> mmap(BASE_ADDRESS_STORED_IN_DUMP, ...) succeeds and we can map the dump
> where we want. If we can't map the dump where we want, we'll just
> relocate it.
Although your other advantages sound good, this one sounds worrisome. If
Emacs maps the dump to the same place every time, we are giving up ASLR
for the dump itself, and won't that pose a potential security risk? If
so, perhaps it would be better to not mmap to the base address stored in
the dump (unless we can determine that ASLR is not in use, I suppose).