]> git.ipfire.org Git - thirdparty/glibc.git/commit
htl: Let Mach place thread stacks
authorSergey Bugaev <bugaevc@gmail.com>
Sun, 25 Jun 2023 23:17:47 +0000 (02:17 +0300)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 2 Jul 2023 23:25:33 +0000 (01:25 +0200)
commit019b0bbc84e2048556ac1a6b6df3a61e45fc1e17
tree064317b6cf58b3a9777b80450a420fd55d7637a2
parentefdb85183aca7634d61a413c55d63e519d89d162
htl: Let Mach place thread stacks

Instead of trying to allocate a thread stack at a specific address,
looping over the address space, just set the ANYWHERE flag in
vm_allocate (). The previous behavior:

- defeats ASLR (for Mach versions that support ASLR),
- is particularly slow if the lower 4 GB of the address space are mapped
  inaccessible, as we're planning to do on 64-bit Hurd,
- is just silly.

Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
Message-Id: <20230625231751.404120-1-bugaevc@gmail.com>
sysdeps/mach/htl/pt-stack-alloc.c