]> sourceware.org Git - glibc.git/commitdiff
nptl: Use __mprotect consistently for _STACK_GROWS_UP
authorFlorian Weimer <fweimer@redhat.com>
Thu, 12 Jul 2018 13:01:43 +0000 (15:01 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 12 Jul 2018 13:01:43 +0000 (15:01 +0200)
ChangeLog
nptl/allocatestack.c

index 3d2bcc6de1e1f70543fbd9bfe3004896e8690cf1..e9dd4aead8d10423e8b5c516314b624bb7004890 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
 
        * io/Makefile (headers): Add bits/statx.h.
index f9e053f9e5a5acb0e491ff8bfcdf562fd342d4c7..04e3f08465ed9982be98535ca6d81d6784d9eb4b 100644 (file)
@@ -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
 
This page took 0.094487 seconds and 5 git commands to generate.