which makes stack prot correct for not main threads created by binaries with statically linked libthr.
Cache result, but do not engage into full double-checked locking, since calculation of the return value is idempotent.
PR: 252549
Differential D28075
libc: implement rtld_get_stack_prot() for real kib on Jan 10 2021, 3:12 AM. Authored by Tags None Referenced Files
Subscribers None
Details
which makes stack prot correct for not main threads created by binaries with statically linked libthr. Cache result, but do not engage into full double-checked locking, since calculation of the return value is idempotent. PR: 252549
Diff Detail
Event TimelineComment Actions Looks good to me. I wondered if we want to keep the calculated stack prot to avoid iterating over the phdrs for each created thread but the value seems limited, simplicity is probably better. |