mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
nptl: Use __mprotect consistently for _STACK_GROWS_UP
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2018-07-12 Florian Weimer <fweimer@redhat.com>
|
||||||
|
|
||||||
|
* nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
|
||||||
|
__mprotect, not mprotect.
|
||||||
|
|
||||||
2018-07-11 Florian Weimer <fweimer@redhat.com>
|
2018-07-11 Florian Weimer <fweimer@redhat.com>
|
||||||
|
|
||||||
* io/Makefile (headers): Add bits/statx.h.
|
* io/Makefile (headers): Add bits/statx.h.
|
||||||
|
@ -728,7 +728,7 @@ allocate_stack (const struct pthread_attr *attr, struct pthread **pdp,
|
|||||||
/* The guard size difference might be > 0, but once rounded
|
/* The guard size difference might be > 0, but once rounded
|
||||||
to the nearest page the size difference might be zero. */
|
to the nearest page the size difference might be zero. */
|
||||||
if (new_guard > old_guard
|
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;
|
goto mprot_error;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user