diff options
author | Siddhesh Poyarekar <siddhesh@redhat.com> | 2012-05-26 09:48:25 +0530 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@redhat.com> | 2012-05-26 09:48:26 +0530 |
commit | 9c6ea9facbba4d430807bd21fa82892d713b1ecd (patch) | |
tree | fc116e5e30c8ea5cada22f53d6914fbc33eb586e /math/bug-nexttoward.c | |
parent | a82392228a31bb94b8dc4c35a37b04611d19891f (diff) | |
download | glibc-9c6ea9facbba4d430807bd21fa82892d713b1ecd.zip glibc-9c6ea9facbba4d430807bd21fa82892d713b1ecd.tar.gz glibc-9c6ea9facbba4d430807bd21fa82892d713b1ecd.tar.bz2 |
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 'math/bug-nexttoward.c')
0 files changed, 0 insertions, 0 deletions