Skip to content
Commit ff3cb03f authored by Stefan Liebler's avatar Stefan Liebler
Browse files

Fix __minimal_malloc segfaults in __mmap due to stack-protector



Starting with commit b05fae4d
"elf: Use the minimal malloc on tunables_strdup",
I get lots of segfaults in static tests on s390x when also using, e.g.:
export GLIBC_TUNABLES="glibc.elision.enable=1"

tunables_strdup callls __minimal_malloc which tries to call __mmap
due to insufficient space left. __mmap itself first setups a new
stack frame and segfaults when copying the stack-protector canary
from thread-pointer. The latter one is not yet setup.

Thus this patch also turns off stack-protection for mmap.
Reviewed-by: default avatarSiddhesh Poyarekar <siddhesh@sourceware.org>
parent ae23fa3e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment