forked from rpms/glibc
144f612406
Downstream only and disabled by default.
28 lines
1000 B
Diff
28 lines
1000 B
Diff
From c94d3234c48c9e8196144bfc150a8f7eee770986 Mon Sep 17 00:00:00 2001
|
|
From: "H.J. Lu" <hjl.tools@gmail.com>
|
|
Date: Wed, 1 Mar 2023 11:26:03 -0800
|
|
Subject: [PATCH v2 01/15] x86/cet: Check user_shstk in /proc/cpuinfo
|
|
|
|
Linux kernel reports CPU shadow stack feature in /proc/cpuinfo as
|
|
user_shstk, instead of shstk.
|
|
---
|
|
sysdeps/x86/tst-cpu-features-cpuinfo.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/sysdeps/x86/tst-cpu-features-cpuinfo.c b/sysdeps/x86/tst-cpu-features-cpuinfo.c
|
|
index 18d64375ca..1d6c647b70 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);
|
|
--
|
|
2.40.1
|
|
|