This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc 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]

[Bug dynamic-link/11696] Some legal ELF files may generate SIGSEGV because of loader.


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.

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