[PATCH v2] nptl: Invert the mmap/mprotect logic on allocated stacks (BZ#18988)

Florian Weimer fweimer@redhat.com
Wed Jun 14 09:46:00 GMT 2017


On 02/06/2017 09:49 PM, Adhemerval Zanella wrote:
> 	[BZ #18988]
> 	* benchtests/thread_create-inputs: New file.
> 	* benchtests/thread_create-source.c: Likewise.
> 	* support/xpthread_attr_setguardsize.c: Likewise.
> 	* support/Makefile (libsupport-routines): Add
> 	xpthread_attr_setguardsize object.
> 	* support/xthread.h: Add xpthread_attr_setguardsize prototype.
> 	* benchtests/Makefile (bench-pthread): Add thread_create.
> 	* nptl/allocatestack.c (allocate_stack): Call mmap with PROT_NONE and
> 	then mprotect the required area.

Looks good to me.

Thanks,
Florian



More information about the Libc-alpha mailing list