GNU bug report logs -
#34180
27.0.50; argv[0] used incorrectly to find the .pdmp
Previous Next
Reported by: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
Date: Wed, 23 Jan 2019 16:09:02 UTC
Severity: important
Tags: security
Found in version 27.0.50
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #66 received at 34180 <at> debbugs.gnu.org (full text, mbox):
On 10/12/21 5:27 AM, Mattias EngdegÄrd wrote:
> I don't think Paul meant that we necessarily have to use the embedded dump in-place. It could just as well be the source of a memory copy to its runtime location; everything would then work just like today except that the dump file is embedded into the executable.
Copying the dump on startup will hurt performance --- the dump is meant
to be used directly from a disk-backed file.
I'm also not entirely clear on how you're planning on avoiding the usual
problems with executable modification --- relinking the executable can
change all the locations of the symbols in the binary, and if symbol
locations change, any previously-generated dump becomes invalid.
Even if on *some* platforms *today* we can replace an embedded dump
image in an already-built executable without re-linking the thing,
there's no guarantee that we can continue doing that. (For example ---
imagine a future platform that signs all binaries during the build
process.) Modifying binaries is always a platform-specific thing and
doing it for Emacs risks forward compatibility. Usin a separate dump
file relies only on public APIs guaranteed to work forever.
This bug report was last modified 3 years and 220 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.