[PATCH][BZ #13601] Retry read in ld.so if the entire ELF header is not read in

Siddhesh Poyarekar siddhesh@redhat.com
Fri Oct 19 14:47:00 GMT 2012


Hi,

We currently assume that the operation to read in the DSO in
open_verify always reads in the entire ELF header.  This assumption is
wrong since the read syscall is free to return smaller chunks of data
and we ought to continue reading if that happens.  Attached patch does
exactly that.  I have verified that there are no regressions resulting
from this patch on x86_64 F-16, but I don't have a way to verify that
the split read works.  OK to commit?

Regards,
Siddhesh

ChangeLog:

	* elf/dl-load.c (open_verify): Retry read if the entire ELF
	header is not read in.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr13601.patch
Type: text/x-patch
Size: 946 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20121019/5c7056cb/attachment.bin>


More information about the Libc-alpha mailing list