HomeFreeBSD

libc: implement rtld_get_stack_prot() for real

Description

libc: implement rtld_get_stack_prot() for real

which makes stack prot correct for non-main threads created by binaries
with statically linked libthr.

Cache result, but do not engage into the full double-checked locking,
since calculation of the return value is idempotent.

PR: 252549
Reported and reviewed by: emaste
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D28075

Details

Provenance
kibAuthored on Jan 10 2021, 3:05 AM
Differential Revision
D28075: libc: implement rtld_get_stack_prot() for real
Parents
rG2a4b22514635: jail: Simplify handling of prison_deref()
Branches
Unknown
Tags
Unknown