]> git.ipfire.org Git - thirdparty/glibc.git/commit
x86: Copy IBT and SHSTK usable only if CET is enabled
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 23 Jun 2021 21:27:58 +0000 (14:27 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 1 Feb 2022 13:59:12 +0000 (05:59 -0800)
commit5cb6edb6cd193d4b0462c718f4b6071f8b84ff90
tree539ac17ea0e3a880bc5b542cd77d2a2b8fdd2f9f
parent3e2a15c666e40e5ee740e5079c56d83469280323
x86: Copy IBT and SHSTK usable only if CET is enabled

IBT and SHSTK usable bits are copied from CPUID feature bits and later
cleared if kernel doesn't support CET.  Copy IBT and SHSTK usable only
if CET is enabled so that they aren't set on CET capable processors
with non-CET enabled glibc.

(cherry picked from commit ea26ff03227d7cacef5de6036df57734373449b4)
sysdeps/x86/cpu-features.c