This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 2/2][BZ #12416] Use stack boundaries from /proc/PID/mapsto make stack executable
On 6/12/2012 10:08 PM, Siddhesh Poyarekar wrote:
> On Tue, 12 Jun 2012 13:20:42 -0400, KOSAKI wrote:
>> btw, I think non main thread stack size also violate same sentence in
>> posix. because of, nptl pthread_setstacksize() set "stack size +
>> guard-page size", but posix require pthread_attr_getstack() should
>> return only read/write pages.
>>
>
> Yes, Carlos is working on a fix for this:
>
> http://sourceware.org/bugzilla/show_bug.cgi?id=11787
Thanks for pointing out that there is a POSIX requirement for the pages to be RW.
That's further proof that all the stuff we currently place into the stack needs
to be counted independently.
Cheers,
Carlos.
--
Carlos O'Donell
Mentor Graphics / CodeSourcery
carlos_odonell@mentor.com
carlos@codesourcery.com
+1 (613) 963 1026