htl: Respect GL(dl_stack_flags) when allocating stacks
commita4273efa219480a7f2c9c8fa7bc8bb71c48c3604
authorSergey Bugaev <bugaevc@gmail.com>
Sat, 23 Mar 2024 17:32:47 +0000 (23 20:32 +0300)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 23 Mar 2024 21:48:44 +0000 (23 22:48 +0100)
tree0c9a036ad60a28f33a1ee83b8b2d47998eb2f725
parentb467cfcaee34452df845c678dd2ba36ea2221855
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>
sysdeps/htl/Versions
sysdeps/mach/htl/pt-stack-alloc.c