]> git.ipfire.org Git - thirdparty/glibc.git/commit - nptl/ChangeLog.old
Account for the extra stack size when rlimit is small enough
authorSiddhesh Poyarekar <siddhesh@redhat.com>
Wed, 20 Jun 2012 07:33:13 +0000 (13:03 +0530)
committerSiddhesh Poyarekar <siddhesh@redhat.com>
Wed, 20 Jun 2012 09:38:22 +0000 (15:08 +0530)
commit18b5e737de22462ab6b3fc89f26c9ad480ebb843
tree1590e539c9a989c7807a048962c3b895f116a0f9
parenta2f34833b1042d5d8eeb263b4cf4caaea138c4ad
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.
nptl/ChangeLog
nptl/Makefile
nptl/pthread_getattr_np.c
nptl/tst-pthread-getattr.c [new file with mode: 0644]