This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH v2] nptl: Invert the mmap/mprotect logic on allocated stacks (BZ#18988)
- From: Florian Weimer <fweimer at redhat dot com>
- To: Adhemerval Zanella <adhemerval dot zanella at linaro dot org>
- Cc: libc-alpha at sourceware dot org
- Date: Wed, 14 Jun 2017 11:46:26 +0200
- Subject: Re: [PATCH v2] nptl: Invert the mmap/mprotect logic on allocated stacks (BZ#18988)
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx09.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx09.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=fweimer at redhat dot com
- Dkim-filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 837F64E4D2
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 837F64E4D2
- References: <1486414193-11241-1-git-send-email-adhemerval.zanella@linaro.org>
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