public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug nptl/12404] New: pthread_getattr_np reports wrong value for main thread
@ 2011-01-19 16:42 kumpera at gmail dot com
  2011-01-19 16:52 ` [Bug nptl/12404] " drepper.fsp at gmail dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: kumpera at gmail dot com @ 2011-01-19 16:42 UTC (permalink / raw)
  To: glibc-bugs

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

           Summary: pthread_getattr_np reports wrong value for main thread
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: nptl
        AssignedTo: drepper.fsp@gmail.com
        ReportedBy: kumpera@gmail.com


If an application install a guard page on the main thread by mprotect'ng part
of it, pthread_getattr_np will return an invalid stack_size/stackaddr pair.

Part of the problem with this is that stackaddr + stack_size will point to an
unknown memory address and an application that depends on this information to
inspect the stack will suffer from undefined behavior.

The problem comes from the fact that the information from getrlimit
(RLIMIT_STACK) is not checked against the region found in /proc/self/maps.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug nptl/12404] pthread_getattr_np reports wrong value for main thread
  2011-01-19 16:42 [Bug nptl/12404] New: pthread_getattr_np reports wrong value for main thread kumpera at gmail dot com
@ 2011-01-19 16:52 ` drepper.fsp at gmail dot com
  2011-01-19 17:07 ` kumpera at gmail dot com
  2014-06-27 14:03 ` fweimer at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: drepper.fsp at gmail dot com @ 2011-01-19 16:52 UTC (permalink / raw)
  To: glibc-bugs

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

Ulrich Drepper <drepper.fsp at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING

--- Comment #1 from Ulrich Drepper <drepper.fsp at gmail dot com> 2011-01-19 16:42:01 UTC ---
Where is a test case so that one can actually understand what you're talking
about?

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug nptl/12404] pthread_getattr_np reports wrong value for main thread
  2011-01-19 16:42 [Bug nptl/12404] New: pthread_getattr_np reports wrong value for main thread kumpera at gmail dot com
  2011-01-19 16:52 ` [Bug nptl/12404] " drepper.fsp at gmail dot com
@ 2011-01-19 17:07 ` kumpera at gmail dot com
  2014-06-27 14:03 ` fweimer at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: kumpera at gmail dot com @ 2011-01-19 17:07 UTC (permalink / raw)
  To: glibc-bugs

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

Rodrigo Kumpera <kumpera at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |INVALID

--- Comment #2 from Rodrigo Kumpera <kumpera at gmail dot com> 2011-01-19 16:51:59 UTC ---
It turned out the problem is actually on other part of glibc. Sorry for the
inconvenience.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug nptl/12404] pthread_getattr_np reports wrong value for main thread
  2011-01-19 16:42 [Bug nptl/12404] New: pthread_getattr_np reports wrong value for main thread kumpera at gmail dot com
  2011-01-19 16:52 ` [Bug nptl/12404] " drepper.fsp at gmail dot com
  2011-01-19 17:07 ` kumpera at gmail dot com
@ 2014-06-27 14:03 ` fweimer at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: fweimer at redhat dot com @ 2014-06-27 14:03 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=12404

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|                            |security-

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-06-27 14:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-19 16:42 [Bug nptl/12404] New: pthread_getattr_np reports wrong value for main thread kumpera at gmail dot com
2011-01-19 16:52 ` [Bug nptl/12404] " drepper.fsp at gmail dot com
2011-01-19 17:07 ` kumpera at gmail dot com
2014-06-27 14:03 ` fweimer at redhat 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).