about summary refs log tree commit diff
path: root/string
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@redhat.com>2012-06-20 13:03:13 +0530
committerSiddhesh Poyarekar <siddhesh@redhat.com>2012-06-20 15:08:22 +0530
commit18b5e737de22462ab6b3fc89f26c9ad480ebb843 (patch)
tree1590e539c9a989c7807a048962c3b895f116a0f9 /string
parenta2f34833b1042d5d8eeb263b4cf4caaea138c4ad (diff)
downloadglibc-18b5e737de22462ab6b3fc89f26c9ad480ebb843.tar.gz
glibc-18b5e737de22462ab6b3fc89f26c9ad480ebb843.tar.xz
glibc-18b5e737de22462ab6b3fc89f26c9ad480ebb843.zip
Account for the extra stack size when rlimit is small enough
When rlimit is small enough to be used as the stacksize to be returned
in pthread_getattr_np, cases where a stack is made executable due to a
DSO load get stack size that is larger than what the kernel
allows. This is because in such a case the stack size does not account
for the pages that have auxv and program arguments.

Additionally, the stacksize for the process derived from this should
be truncated to align to page size to avoid going beyond rlimit.
Diffstat (limited to 'string')
0 files changed, 0 insertions, 0 deletions