From: Florian Weimer Date: Thu, 12 Jul 2018 13:01:43 +0000 (+0200) Subject: nptl: Use __mprotect consistently for _STACK_GROWS_UP X-Git-Tag: glibc-2.28~102 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=046bfed9dec0d24e7b217bb78e15d1640d572832;p=thirdparty%2Fglibc.git nptl: Use __mprotect consistently for _STACK_GROWS_UP --- diff --git a/ChangeLog b/ChangeLog index 3d2bcc6de1e..e9dd4aead8d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2018-07-12 Florian Weimer + + * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call + __mprotect, not mprotect. + 2018-07-11 Florian Weimer * io/Makefile (headers): Add bits/statx.h. diff --git a/nptl/allocatestack.c b/nptl/allocatestack.c index f9e053f9e5a..04e3f08465e 100644 --- a/nptl/allocatestack.c +++ b/nptl/allocatestack.c @@ -728,7 +728,7 @@ allocate_stack (const struct pthread_attr *attr, struct pthread **pdp, /* The guard size difference might be > 0, but once rounded to the nearest page the size difference might be zero. */ if (new_guard > old_guard - && mprotect (old_guard, new_guard - old_guard, prot) != 0) + && __mprotect (old_guard, new_guard - old_guard, prot) != 0) goto mprot_error; #endif