[PATCH] Fix has_holes mprotect in dl-load.c

Andreas Schwab schwab@suse.de
Tue Jul 6 22:42:00 GMT 2004


Jakub Jelinek <jakub@redhat.com> writes:

> Hi!
>
> l_text_end is not set at this point yet and even if it would,
> if first PT_LOAD segment is not executable, it would still be 0.
> Doing mprotect (0, up to few MB, PROT_NONE) is bad and
> mprotecting l->l_laddr + c->mapend is really what is needed.

See <http://sources.redhat.com/ml/libc-hacker/2004-05/msg00033.html>.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



More information about the Libc-hacker mailing list