mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
x86: Set header.feature_1 in TCB for always-on CET [BZ #27177]
Update dl_cet_check() to set header.feature_1 in TCB when both IBT and SHSTK are always on.
This commit is contained in:
@ -47,7 +47,10 @@ dl_cet_check (struct link_map *m, const char *program)
|
||||
/* No legacy object check if both IBT and SHSTK are always on. */
|
||||
if (enable_ibt_type == cet_always_on
|
||||
&& enable_shstk_type == cet_always_on)
|
||||
return;
|
||||
{
|
||||
THREAD_SETMEM (THREAD_SELF, header.feature_1, GL(dl_x86_feature_1));
|
||||
return;
|
||||
}
|
||||
|
||||
/* Check if IBT is enabled by kernel. */
|
||||
bool ibt_enabled
|
||||
|
Reference in New Issue
Block a user