[PATCH 2/2] libdwfl: elf_from_remote_memory only trust shdrs of last file-only segment.

Jan Kratochvil jan.kratochvil at redhat.com
Thu Mar 6 21:19:36 UTC 2014


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


More information about the elfutils-devel mailing list