public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug nptl/6973] New: NPTL wrongly includes guard area inside allocated stack
@ 2008-10-22 16:39 mtk dot manpages at gmail dot com
  0 siblings, 0 replies; only message in thread
From: mtk dot manpages at gmail dot com @ 2008-10-22 16:39 UTC (permalink / raw)
  To: glibc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1147 bytes --]

In the NPTL implementation, the guard area (as set by
pthread_attr_setguardsize()) is included in (i.e., deducted from) the stack
allocation.  Common sense says that it should be added to the allocation, and
indeed POSIX.1-2001 and POSIX.1-2008 are clear on this point; from the
specification 2008 pthread_attr_setguardsize():

"If a thread’s stack is created with guard protection, the implementation
allocates extra memory at the overflow end of the stack as a buffer against
stack overflow of the stack pointer."

Solaris adheres to POSIX.1 on this point.  NPTL should also.

-- 
           Summary: NPTL wrongly includes guard area inside allocated stack
           Product: glibc
           Version: 2.8
            Status: NEW
          Severity: normal
          Priority: P2
         Component: nptl
        AssignedTo: drepper at redhat dot com
        ReportedBy: mtk dot manpages at gmail dot com
                CC: glibc-bugs at sources dot redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=6973

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-10-22 16:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-22 16:39 [Bug nptl/6973] New: NPTL wrongly includes guard area inside allocated stack mtk dot manpages at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).