glibc/sysdeps/unix/sysv/linux/x86
H.J. Lu 743113d42e x86: Set FSGSBASE to active if enabled by kernel
Linux kernel uses AT_HWCAP2 to indicate if FSGSBASE instructions are
enabled.  If the HWCAP2_FSGSBASE bit in AT_HWCAP2 is set, FSGSBASE
instructions can be used in user space.  Define dl_check_hwcap2 to set
the FSGSBASE feature to active on Linux when the HWCAP2_FSGSBASE bit is
set.

Add a test to verify that FSGSBASE is active on current kernels.
NB: This test will fail if the kernel doesn't set the HWCAP2_FSGSBASE
bit in AT_HWCAP2 while fsgsbase shows up in /proc/cpuinfo.
Reviewed-by: Florian Weimer <fweimer@redhat.com>
2023-04-03 11:36:48 -07:00
..
bits Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
include
sys Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
arch-pkey.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
cpu-features.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
dl-cet.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-minsigstacksize.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
dl-sysdep.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
elf-read-prop.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
elision-conf.c Remove --enable-tunables configure option 2023-03-29 14:33:06 -03:00
elision-conf.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
elision-lock.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
elision-timed.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
elision-trylock.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
elision-unlock.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
gettimeofday.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
hle.h
Implies
jmp_buf-ssp.sym setjmp: Replace jmp_buf-macros.h with jmp_buf-macros.sym 2021-11-22 13:43:22 -03:00
longjmp.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
Makefile
pkey_get.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
pkey_set.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
readelflib.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
setjmpP.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
sysconf.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
time.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-cet-property-1.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-cet-property-2.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-cet-property-dep-2.S Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-cet-setcontext-1.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-cet-vfork-1.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
tst-saved_mask-1.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
xstatver.h