From fddcd003776ce242526e809ebfbdcccf31e486c6 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Wed, 25 Jul 2018 04:46:53 -0700 Subject: x86/CET: Add tests with legacy non-CET shared objects Check binary compatibility of CET-enabled executables: 1. When CET-enabled executable is used with legacy non-CET shared object at run-time, ld.so should disable SHSTK and put legacy non-CET shared objects in legacy bitmap. 2. When IBT-enabled executable dlopens legacy non-CET shared object, ld.so should put legacy shared object in legacy bitmap. 3. Use GLIBC_TUNABLES=glibc.tune.x86_shstk=[on|off|permissive] to control how SHSTK is enabled. * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1, tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3, tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b and tst-cet-legacy-4c. (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2 and tst-cet-legacy-mod-4. (CFLAGS-tst-cet-legacy-2.c): New. (CFLAGS-tst-cet-legacy-mod-1.c): Likewise. (CFLAGS-tst-cet-legacy-mod-2.c): Likewise. (CFLAGS-tst-cet-legacy-3.c): Likewise. (CFLAGS-tst-cet-legacy-4.c): Likewise. (CFLAGS-tst-cet-legacy-mod-4.c): Likewise. ($(objpfx)tst-cet-legacy-1): Likewise. ($(objpfx)tst-cet-legacy-2): Likewise. ($(objpfx)tst-cet-legacy-2.out): Likewise. ($(objpfx)tst-cet-legacy-2a): Likewise. ($(objpfx)tst-cet-legacy-2a.out): Likewise. ($(objpfx)tst-cet-legacy-4): Likewise. ($(objpfx)tst-cet-legacy-4.out): Likewise. ($(objpfx)tst-cet-legacy-4a): Likewise. ($(objpfx)tst-cet-legacy-4a.out): Likewise. (tst-cet-legacy-4a-ENV): Likewise. ($(objpfx)tst-cet-legacy-4b): Likewise. ($(objpfx)tst-cet-legacy-4b.out): Likewise. (tst-cet-legacy-4b-ENV): Likewise. ($(objpfx)tst-cet-legacy-4c): Likewise. ($(objpfx)tst-cet-legacy-4c.out): Likewise. (tst-cet-legacy-4c-ENV): Likewise. * sysdeps/x86/tst-cet-legacy-1.c: New file. * sysdeps/x86/tst-cet-legacy-2.c: Likewise. * sysdeps/x86/tst-cet-legacy-2a.c: Likewise. * sysdeps/x86/tst-cet-legacy-3.c: Likewise. * sysdeps/x86/tst-cet-legacy-4.c: Likewise. * sysdeps/x86/tst-cet-legacy-4a.c: Likewise. * sysdeps/x86/tst-cet-legacy-4b.c: Likewise. * sysdeps/x86/tst-cet-legacy-4c.c: Likewise. * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise. * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise. * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise. --- ChangeLog | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index fb4a45bacc..d387465f29 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,45 @@ +2018-07-25 H.J. Lu + + * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1, + tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3, + tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b + and tst-cet-legacy-4c. + (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2 + and tst-cet-legacy-mod-4. + (CFLAGS-tst-cet-legacy-2.c): New. + (CFLAGS-tst-cet-legacy-mod-1.c): Likewise. + (CFLAGS-tst-cet-legacy-mod-2.c): Likewise. + (CFLAGS-tst-cet-legacy-3.c): Likewise. + (CFLAGS-tst-cet-legacy-4.c): Likewise. + (CFLAGS-tst-cet-legacy-mod-4.c): Likewise. + ($(objpfx)tst-cet-legacy-1): Likewise. + ($(objpfx)tst-cet-legacy-2): Likewise. + ($(objpfx)tst-cet-legacy-2.out): Likewise. + ($(objpfx)tst-cet-legacy-2a): Likewise. + ($(objpfx)tst-cet-legacy-2a.out): Likewise. + ($(objpfx)tst-cet-legacy-4): Likewise. + ($(objpfx)tst-cet-legacy-4.out): Likewise. + ($(objpfx)tst-cet-legacy-4a): Likewise. + ($(objpfx)tst-cet-legacy-4a.out): Likewise. + (tst-cet-legacy-4a-ENV): Likewise. + ($(objpfx)tst-cet-legacy-4b): Likewise. + ($(objpfx)tst-cet-legacy-4b.out): Likewise. + (tst-cet-legacy-4b-ENV): Likewise. + ($(objpfx)tst-cet-legacy-4c): Likewise. + ($(objpfx)tst-cet-legacy-4c.out): Likewise. + (tst-cet-legacy-4c-ENV): Likewise. + * sysdeps/x86/tst-cet-legacy-1.c: New file. + * sysdeps/x86/tst-cet-legacy-2.c: Likewise. + * sysdeps/x86/tst-cet-legacy-2a.c: Likewise. + * sysdeps/x86/tst-cet-legacy-3.c: Likewise. + * sysdeps/x86/tst-cet-legacy-4.c: Likewise. + * sysdeps/x86/tst-cet-legacy-4a.c: Likewise. + * sysdeps/x86/tst-cet-legacy-4b.c: Likewise. + * sysdeps/x86/tst-cet-legacy-4c.c: Likewise. + * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise. + * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise. + * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise. + 2018-07-25 H.J. Lu * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New. -- cgit v1.2.3