This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


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: [PATCH] Fix has_holes mprotect in dl-load.c


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."


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