This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Thanks,
Jan

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]