glibc/sysdeps/unix/sysv/linux/x86
H.J. Lu 9e38f455a6 x86: Add --enable-cet=permissive
When CET is enabled, it is an error to dlopen a non CET enabled shared
library in CET enabled application.  It may be desirable to make CET
permissive, that is disable CET when dlopening a non CET enabled shared
library.  With the new --enable-cet=permissive configure option, CET is
disabled when dlopening a non CET enabled shared library.

Add DEFAULT_DL_X86_CET_CONTROL to config.h.in:

 /* The default value of x86 CET control.  */
 #define DEFAULT_DL_X86_CET_CONTROL cet_elf_property

which enables CET features based on ELF property note.

--enable-cet=permissive it to

 /* The default value of x86 CET control.  */
 #define DEFAULT_DL_X86_CET_CONTROL cet_permissive

which enables CET features permissively.

Update tst-cet-legacy-5a, tst-cet-legacy-5b, tst-cet-legacy-6a and
tst-cet-legacy-6b to check --enable-cet and --enable-cet=permissive.
2020-05-18 08:38:53 -07:00
..
bits semctl: Remove the sem-pad.h file 2020-04-29 08:29:30 -07:00
include/asm x86: Remove ARCH_CET_LEGACY_BITMAP [BZ #25397] 2020-03-18 04:35:54 -07:00
sys
Implies
Makefile x86: Add --enable-cet=permissive 2020-05-18 08:38:53 -07:00
arch-pkey.h
cpu-features.c x86: Move CET control to _dl_x86_feature_control [BZ #25887] 2020-05-18 06:15:02 -07:00
dl-cet.h x86: Remove ARCH_CET_LEGACY_BITMAP [BZ #25397] 2020-03-18 04:35:54 -07:00
dl-sysdep.c
elision-conf.c
elision-conf.h
elision-lock.c
elision-timed.c
elision-trylock.c
elision-unlock.c
force-elision.h
gettimeofday.c y2038: linux: Provide __gettimeofday64 implementation 2020-02-18 23:55:47 +01:00
hle.h
jmp_buf-ssp.sym
lowlevellock.h
pkey_get.c
pkey_set.c
pthread_mutex_cond_lock.c
pthread_mutex_lock.c
pthread_mutex_timedlock.c
pthread_mutex_trylock.c
setjmpP.h
sysconf.c
time.c linux: Consolidate time implementation 2020-01-03 11:22:04 -03:00
tst-cet-property-1.c
tst-cet-property-2.c
tst-cet-property-dep-2.S
tst-cet-setcontext-1.c
tst-saved_mask-1.c