aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2023-12-16 08:53:10 -0800
committerH.J. Lu <hjl.tools@gmail.com>2023-12-17 10:42:06 -0800
commit0b850186fd3177311f10dcb938b668cc750fa3be (patch)
tree58d33b29e48d6920b5dcd6c716cb4e1e7df728c0 /sysdeps
parent49b4de21dcdf364e0dcc57382a8dfa339b59accc (diff)
downloadglibc-0b850186fd3177311f10dcb938b668cc750fa3be.zip
glibc-0b850186fd3177311f10dcb938b668cc750fa3be.tar.gz
glibc-0b850186fd3177311f10dcb938b668cc750fa3be.tar.bz2
x86/cet: Check user_shstk in /proc/cpuinfo
Linux kernel reports CPU shadow stack feature in /proc/cpuinfo as user_shstk, instead of shstk.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/x86/tst-cpu-features-cpuinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/x86/tst-cpu-features-cpuinfo.c b/sysdeps/x86/tst-cpu-features-cpuinfo.c
index 18d6437..1d6c647 100644
--- 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);