glibc/sysdeps/x86
H.J. Lu 0d1abcab55 x86/cet: Don't set CET active by default
Not all CET enabled applications and libraries have been properly tested
in CET enabled environments.  Some CET enabled applications or libraries
will crash or misbehave when CET is enabled.  Don't set CET active by
default so that all applications and libraries will run normally regardless
of whether CET is active or not.  Shadow stack can be enabled by

$ export GLIBC_TUNABLES=glibc.cpu.hwcaps=SHSTK

at run-time if shadow stack can be enabled by kernel.

NB: This commit can be reverted if it is OK to enable CET by default for
all applications and libraries.

(cherry picked from commit 55d63e7312)
2025-08-19 15:39:23 -07:00
..
bits x86/cet: Check feature_1 in TCB for active IBT and SHSTK 2025-08-19 15:39:23 -07:00
fpu Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
htl Fix a few more typos I missed in previous round -- BZ 25337 2023-06-02 23:46:32 +00:00
include x86/cet: Enable shadow stack during startup 2025-08-19 15:39:23 -07:00
nptl Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
sys/platform x86/cet: Check feature_1 in TCB for active IBT and SHSTK 2025-08-19 15:39:23 -07:00
Makeconfig
Makefile x86/cet: Check CPU_FEATURE_ACTIVE in permissive mode 2025-08-19 15:39:23 -07:00
Versions
__longjmp_cancel.S Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
abi-note.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
atomic-machine.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
cacheinfo.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
cacheinfo.h Remove --enable-tunables configure option 2023-03-29 14:33:06 -03:00
cet-control.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
check-cet.awk Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
configure configure: Use autoconf 2.71 2023-07-17 10:08:10 -04:00
configure.ac x86_64: State assembler is being tested on sysdeps/x86/configure 2022-12-06 13:47:47 -03:00
cpu-features-offsets.sym x86/cet: Enable shadow stack during startup 2025-08-19 15:39:23 -07:00
cpu-features.c x86/cet: Don't set CET active by default 2025-08-19 15:39:23 -07:00
cpu-tunables.c x86/cet: Don't set CET active by default 2025-08-19 15:39:23 -07:00
dl-cacheinfo.h x86: Check the lower byte of EAX of CPUID leaf 2 [BZ #30643] 2025-01-09 07:31:17 -08:00
dl-cet.c x86/cet: Enable shadow stack during startup 2025-08-19 15:39:23 -07:00
dl-diagnostics-cpu.c x86: Make the divisor in setting `non_temporal_threshold` cpu specific 2023-06-12 11:33:39 -05:00
dl-get-cpu-features.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
dl-hwcap.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
dl-hwcap2.h x86: Set FSGSBASE to active if enabled by kernel 2023-04-03 11:36:48 -07:00
dl-isa-level.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
dl-lookupcfg.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
dl-minsigstacksize.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
dl-new-hash.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
dl-procinfo.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
dl-procinfo.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
dl-procruntime.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
dl-prop.h Fix misspellings in sysdeps/ -- BZ 25337 2023-05-30 23:02:29 +00:00
dl-tunables.list Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
elf-initfini.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
elide.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
float128-abi.h
fpu_control.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
get-cpuid-feature-leaf.c x86/cet: Check feature_1 in TCB for active IBT and SHSTK 2025-08-19 15:39:23 -07:00
get-isa-level.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
hp-timing.h Fix misspellings in sysdeps/ -- BZ 25337 2023-05-30 23:02:29 +00:00
init-arch.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
isa-ifunc-macros.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
isa-level.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
isa-level.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
jmp_buf-ssp.sym
ldbl2mpn.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
ldsodefs.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
libc-start.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
libc-start.h x86/cet: Enable shadow stack during startup 2025-08-19 15:39:23 -07:00
link_map.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
linkmap.h
longjmp.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
readelflib.c x86: Make dl-cache.h and readelflib.c not Linux-specific 2023-06-26 10:04:31 -03:00
sysdep.h x86-64: Save APX registers in ld.so trampoline 2025-08-19 07:37:54 -07:00
tininess.h
tst-cet-legacy-1.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-cet-legacy-1a.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-cet-legacy-2.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-cet-legacy-2a.c
tst-cet-legacy-3.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-cet-legacy-4.c x86/cet: Check CPU_FEATURE_ACTIVE in permissive mode 2025-08-19 15:39:23 -07:00
tst-cet-legacy-4a.c
tst-cet-legacy-4b.c
tst-cet-legacy-4c.c
tst-cet-legacy-5.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-cet-legacy-5a.c
tst-cet-legacy-5b.c
tst-cet-legacy-6.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-cet-legacy-6a.c
tst-cet-legacy-6b.c
tst-cet-legacy-7.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-cet-legacy-8.c x86/cet: Don't assume that SHSTK implies IBT 2025-08-19 15:39:23 -07:00
tst-cet-legacy-9-static.c
tst-cet-legacy-9.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-cet-legacy-10-static.c
tst-cet-legacy-10.c x86/cet: Don't assume that SHSTK implies IBT 2025-08-19 15:39:23 -07:00
tst-cet-legacy-10a-static.c x86/cet: Check CPU_FEATURE_ACTIVE when CET is disabled 2025-08-19 15:39:23 -07:00
tst-cet-legacy-10a.c x86/cet: Check CPU_FEATURE_ACTIVE when CET is disabled 2025-08-19 15:39:23 -07:00
tst-cet-legacy-mod-1.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-cet-legacy-mod-2.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-cet-legacy-mod-4.c
tst-cet-legacy-mod-5.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-cet-legacy-mod-5a.c
tst-cet-legacy-mod-5b.c
tst-cet-legacy-mod-5c.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-cet-legacy-mod-6.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-cet-legacy-mod-6a.c
tst-cet-legacy-mod-6b.c
tst-cet-legacy-mod-6c.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-cet-legacy-mod-6d.c
tst-cpu-features-cpuinfo-static.c
tst-cpu-features-cpuinfo.c x86/cet: Check user_shstk in /proc/cpuinfo 2025-08-19 15:39:23 -07:00
tst-cpu-features-supports-static.c
tst-cpu-features-supports.c i386: Disable Intel Xeon Phi tests for GCC 15 and above (BZ 31782) 2024-05-28 09:33:22 -07:00
tst-get-cpu-features-static.c
tst-get-cpu-features.c <sys/platform/x86.h>: Add APX support 2023-07-27 08:42:32 -07:00
tst-ifunc-isa-1-static.c
tst-ifunc-isa-1.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-ifunc-isa-2-static.c
tst-ifunc-isa-2.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-ifunc-isa.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-isa-level-1.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-isa-level-mod-1-baseline.c
tst-isa-level-mod-1-v2.c
tst-isa-level-mod-1-v3.c
tst-isa-level-mod-1-v4.c
tst-isa-level-mod-1.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-ldbl-nonnormal-printf.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-memchr-rtm.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-memcmp-rtm.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-memmove-rtm.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-memrchr-rtm.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-memset-rtm.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-setjmp-cet.c
tst-shstk-legacy-1-extra.S x86/cet: Check legacy shadow stack applications 2025-08-19 15:39:23 -07:00
tst-shstk-legacy-1a-static.c x86/cet: Check legacy shadow stack applications 2025-08-19 15:39:23 -07:00
tst-shstk-legacy-1a.c x86/cet: Check legacy shadow stack applications 2025-08-19 15:39:23 -07:00
tst-shstk-legacy-1b-static.c x86/cet: Check legacy shadow stack applications 2025-08-19 15:39:23 -07:00
tst-shstk-legacy-1b.c x86/cet: Check legacy shadow stack applications 2025-08-19 15:39:23 -07:00
tst-shstk-legacy-1c-static.c x86/cet: Add tests for GLIBC_TUNABLES=glibc.cpu.hwcaps=-SHSTK 2025-08-19 15:39:23 -07:00
tst-shstk-legacy-1c.c x86/cet: Add tests for GLIBC_TUNABLES=glibc.cpu.hwcaps=-SHSTK 2025-08-19 15:39:23 -07:00
tst-shstk-legacy-1d-static.c x86/cet: Check legacy shadow stack code in .init_array section 2025-08-19 15:39:23 -07:00
tst-shstk-legacy-1d.c x86/cet: Check legacy shadow stack code in .init_array section 2025-08-19 15:39:23 -07:00
tst-shstk-legacy-1e-static.c x86/cet: Check legacy shadow stack code in .init_array section 2025-08-19 15:39:23 -07:00
tst-shstk-legacy-1e-static.sh x86/cet: Check legacy shadow stack code in .init_array section 2025-08-19 15:39:23 -07:00
tst-shstk-legacy-1e.c x86/cet: Check legacy shadow stack code in .init_array section 2025-08-19 15:39:23 -07:00
tst-shstk-legacy-1e.sh x86/cet: Check legacy shadow stack code in .init_array section 2025-08-19 15:39:23 -07:00
tst-shstk-legacy-1f.c x86/cet: Check legacy shadow stack code in .init_array section 2025-08-19 15:39:23 -07:00
tst-shstk-legacy-1g.c x86/cet: Check legacy shadow stack code in .init_array section 2025-08-19 15:39:23 -07:00
tst-shstk-legacy-1g.sh x86/cet: Check legacy shadow stack code in .init_array section 2025-08-19 15:39:23 -07:00
tst-shstk-legacy-mod-1.c x86/cet: Check legacy shadow stack code in .init_array section 2025-08-19 15:39:23 -07:00
tst-stack-align.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-strcasecmp-rtm.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-strchr-rtm.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-strcmp-rtm.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-strcpy-rtm.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-string-rtm.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-strlen-rtm.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-strncasecmp-rtm.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-strncmp-rtm.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-strrchr-rtm.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-sysconf-cache-linesize-static.c
tst-sysconf-cache-linesize.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-wcscmp-rtm.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-wcsncmp-rtm.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
utmp-size.h login: Check default sizes of structs utmp, utmpx, lastlog 2024-04-19 18:38:23 +02:00