This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug dynamic-link/11696] Some legal ELF files may generate SIGSEGV because of loader.
- From: "carlos at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Thu, 21 Jan 2016 17:13:48 +0000
- Subject: [Bug dynamic-link/11696] Some legal ELF files may generate SIGSEGV because of loader.
- Auto-submitted: auto-generated
- References: <bug-11696-131 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=11696
Carlos O'Donell <carlos at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |WAITING
CC| |carlos at redhat dot com
--- Comment #2 from Carlos O'Donell <carlos at redhat dot com> ---
The reality is that glibc's ld.so handles DSOs as produced by binutils/gold,
not by any arbitrary ELF producer. Therefore if there are changes in expected
ELF layout that ld.so doesn't consider we might get a crash. For example there
are ambiguous semantics in many cases that ld.so just doesn't handle, namely
because ELF is just a container standard, and other toolchains may produce
slightly different layouts. For example it's perfectly valid to have more than
2 PT_LOAD segments, but in practice glibc doesn't handle that because
binutils/gold only produce 2 such segments (or one).
I'm marking this bug waiting until a we have more details about which producers
generate such ELF files and justification for alterting ld.so to handle them.
It is not sufficient to say "ld.so should handle all valid ELF files" because
there are many valid ELF files that logically don't make sense for programs or
DSOs.
--
You are receiving this mail because:
You are on the CC list for the bug.