This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug nptl/12416] Dynamic linker incorrectly reduces the stack size when making it executable


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

Roland McGrath <roland at gnu dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |roland at gnu dot org

--- Comment #2 from Roland McGrath <roland at gnu dot org> 2011-01-19 18:53:23 UTC ---
Changing the page protections splits the mapping into two mappings.  There is
no other way it could be in the kernel.  The mapping is the granularity at
which page protections are managed.  The /proc/pid/maps output is arguably
wrong because after the split, only the lower mapping displays as [stack].  

But pthread_getattr_np doesn't pay attention to the [stack] magic name anyway,
it just looks at addresses.  So pthread_getattr_np needs to look at multiple
contiguous mappings after the one containing __libc_stack_end if the intent is
that its results are consistent after a protection change.

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


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