[COMMITTED] libdwfl: Remove p_align sanity check from elf_from_memory.

Mark Wielaard mjw at redhat.com
Fri Dec 19 18:06:33 UTC 2014

On Fri, Dec 19, 2014 at 06:30:22PM +0100, Jan Kratochvil wrote:
> On Fri, 19 Dec 2014 18:13:04 +0100, Mark Wielaard wrote:
> > But on some architectures the kernel inserts a vdso with
> > a completely bogus p_align for some PT_LOAD segments.
> It would be better to know what is "some" and what is "bogus".

Yes, sorry, I was handling tests on different arches at the time.
And this wasn't the only issue with vdso/elf_from_memory.
At least aarch64 puts 0xA as p_align value in the phdrs.
Normally the glibc dynamic linker would at least sanity check
the p_align value, but then always uses the pagealign anyway.
But the kernel seems to not care about phdr sanity because
the dynamic linker won't touch the vdso ELF image.



More information about the elfutils-devel mailing list