about summary refs log tree commit diff
path: root/nptl/sem_close.c
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@redhat.com>2012-05-26 09:48:25 +0530
committerSiddhesh Poyarekar <siddhesh@redhat.com>2012-05-26 09:48:26 +0530
commit9c6ea9facbba4d430807bd21fa82892d713b1ecd (patch)
treefc116e5e30c8ea5cada22f53d6914fbc33eb586e /nptl/sem_close.c
parenta82392228a31bb94b8dc4c35a37b04611d19891f (diff)
downloadglibc-9c6ea9facbba4d430807bd21fa82892d713b1ecd.tar.gz
glibc-9c6ea9facbba4d430807bd21fa82892d713b1ecd.tar.xz
glibc-9c6ea9facbba4d430807bd21fa82892d713b1ecd.zip
Fix stack size and address inconsistency due to executable stack
When a stack is marked executable due to loading a DSO that requires
an executable stack, the logic tends to leave out a portion of stack
after the first frame, thus causing a difference in the value returned
by pthread_getattr_np before and after the stack is marked
executable. It ought to be possible to fix this by marking the rest of
the stack as executable too, but in the interest of marking as less of
the stack as executable as possible, the path this fix takes is to
make pthread_getattr_np also look at the first frame as the underflow
end of the stack and compute size and stack top accordingly.

The above happens only for the main process stack. NPTL thread stacks
are not affected by this change.
Diffstat (limited to 'nptl/sem_close.c')
0 files changed, 0 insertions, 0 deletions