This is the mail archive of the
mailing list for the elfutils project.
Re: [PATCH 2/2] libdwfl: elf_from_remote_memory only trust shdrs of last file-only segment.
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Thu, 06 Mar 2014 22:19:36 +0100
- Subject: Re: [PATCH 2/2] libdwfl: elf_from_remote_memory only trust shdrs of last file-only segment.
On Mon, 03 Mar 2014 15:31:28 +0100, Mark Wielaard wrote:
> If the last PT_LOAD segment that contains the whole shdrs also extends
> the segment in memory beyond the end of file the program might be reusing
> the memory space that we expect the shdrs to be in. Don't trust the shdrs
> are valid in that case.
Could there be a reproducer for it?
The "deleted executable eu-stack" works for me even without this patch
(for both sleep and firefox).
It is not obvious to me in which case this exception is needed.