x86/cet: Don't assume that SHSTK implies IBT
commit442983319ba70de801fc856e8dd4748fba8f7f1b
authorH.J. Lu <hjl.tools@gmail.com>
Sat, 16 Dec 2023 16:53:12 +0000 (16 08:53 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 18 Dec 2023 15:04:18 +0000 (18 07:04 -0800)
tree0150e4448669869613112e336dc9e1ab9972f452
parent12ab77e893479a1f7d4666082a48efad79777bb9
x86/cet: Don't assume that SHSTK implies IBT

Since shadow stack (SHSTK) is enabled in the Linux kernel without
enabling indirect branch tracking (IBT), don't assume that SHSTK
implies IBT.  Use "CPU_FEATURE_ACTIVE (IBT)" to check if IBT is active
and "CPU_FEATURE_ACTIVE (SHSTK)" to check if SHSTK is active.
sysdeps/x86/Makefile
sysdeps/x86/tst-cet-legacy-10.c
sysdeps/x86/tst-cet-legacy-8.c