projects
/
platform
/
upstream
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49b4de2
)
x86/cet: Check user_shstk in /proc/cpuinfo
author
H.J. Lu
<hjl.tools@gmail.com>
Sat, 16 Dec 2023 16:53:10 +0000
(08:53 -0800)
committer
H.J. Lu
<hjl.tools@gmail.com>
Sun, 17 Dec 2023 18:42:06 +0000
(10:42 -0800)
Linux kernel reports CPU shadow stack feature in /proc/cpuinfo as
user_shstk, instead of shstk.
sysdeps/x86/tst-cpu-features-cpuinfo.c
patch
|
blob
|
history
diff --git
a/sysdeps/x86/tst-cpu-features-cpuinfo.c
b/sysdeps/x86/tst-cpu-features-cpuinfo.c
index
18d6437
..
1d6c647
100644
(file)
--- a/
sysdeps/x86/tst-cpu-features-cpuinfo.c
+++ b/
sysdeps/x86/tst-cpu-features-cpuinfo.c
@@
-246,7
+246,7
@@
do_test (int argc, char **argv)
fails += CHECK_PROC (sgx, SGX);
fails += CHECK_PROC (sgx_lc, SGX_LC);
fails += CHECK_PROC (sha_ni, SHA);
- fails += CHECK_PROC (shstk, SHSTK);
+ fails += CHECK_PROC (
user_
shstk, SHSTK);
fails += CHECK_PROC (smap, SMAP);
fails += CHECK_PROC (smep, SMEP);
fails += CHECK_PROC (smx, SMX);