This is the mail archive of the
mailing list for the elfutils project.
Re: [COMMITTED] libdwfl: Remove p_align sanity check from elf_from_memory.
- From: Mark Wielaard <mjw at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Fri, 19 Dec 2014 19:06:33 +0100
- Subject: Re: [COMMITTED] libdwfl: Remove p_align sanity check from elf_from_memory.
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.