x86: Add IBT/SHSTK bits to cpu-features
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 14 Aug 2017 12:54:25 +0000 (05:54 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 14 Aug 2017 12:54:38 +0000 (05:54 -0700)
commit73322d5ff6ad71c65f875095c4801771cff9ab2d
tree6dfe6b618b2501adfed46076a4d06cc3b4b0b5e0
parentdbc303ef76503793b4744004984d248346602479
x86: Add IBT/SHSTK bits to cpu-features

Add IBT/SHSTK bits to cpu-features for Shadow Stack in Intel Control-flow
Enforcement Technology (CET) instructions:

https://software.intel.com/sites/default/files/managed/4d/2a/control-flow-enforcement-technology-preview.pdf

* sysdeps/x86/cpu-features.h (bit_cpu_BIT): New.
(bit_cpu_SHSTK): Likewise.
(index_cpu_IBT): Likewise.
(index_cpu_SHSTK): Likewise.
(reg_IBT): Likewise.
(reg_SHSTK): Likewise.
* sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
Handle index_cpu_IBT and index_cpu_SHSTK.
ChangeLog
sysdeps/x86/cpu-features.h
sysdeps/x86/cpu-tunables.c