about summary refs log tree commit diff
path: root/sysdeps/htl/Versions
diff options
context:
space:
mode:
authorSergey Bugaev <bugaevc@gmail.com>2024-03-23 20:32:47 +0300
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2024-03-23 22:48:44 +0100
commita4273efa219480a7f2c9c8fa7bc8bb71c48c3604 (patch)
tree0c9a036ad60a28f33a1ee83b8b2d47998eb2f725 /sysdeps/htl/Versions
parentb467cfcaee34452df845c678dd2ba36ea2221855 (diff)
downloadglibc-a4273efa219480a7f2c9c8fa7bc8bb71c48c3604.tar.gz
glibc-a4273efa219480a7f2c9c8fa7bc8bb71c48c3604.tar.xz
glibc-a4273efa219480a7f2c9c8fa7bc8bb71c48c3604.zip
htl: Respect GL(dl_stack_flags) when allocating stacks
Previously, HTL would always allocate non-executable stacks.  This has
never been noticed, since GNU Mach on x86 ignores VM_PROT_EXECUTE and
makes all pages implicitly executable.  Since GNU Mach on AArch64
supports non-executable pages, HTL forgetting to pass VM_PROT_EXECUTE
immediately breaks any code that (unfortunately, still) relies on
executable stacks.

Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
Message-ID: <20240323173301.151066-7-bugaevc@gmail.com>
Diffstat (limited to 'sysdeps/htl/Versions')
-rw-r--r--sysdeps/htl/Versions4
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/htl/Versions b/sysdeps/htl/Versions
index 3a3b1e8b3d..7b5450d20e 100644
--- a/sysdeps/htl/Versions
+++ b/sysdeps/htl/Versions
@@ -12,4 +12,8 @@ libc {
     pthread_spin_destroy; pthread_spin_init; pthread_spin_lock;
     pthread_spin_trylock; pthread_spin_unlock;
   }
+
+  GLIBC_PRIVATE {
+    __vm_map;
+  }
 }