x86: Copy IBT and SHSTK usable only if CET is enabled
commitea26ff03227d7cacef5de6036df57734373449b4
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 23 Jun 2021 21:27:58 +0000 (23 14:27 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 24 Jun 2021 00:35:47 +0000 (23 17:35 -0700)
tree2d0fe48737fe826586c8c2e0fca3fd914e726f3f
parenta775a7a3eb1e85b54af0b4ee5ff4dcf66772a1fb
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.
sysdeps/x86/cpu-features.c