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: [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.

Cheers,

Mark

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