]> git.ipfire.org Git - thirdparty/glibc.git/commit
x86/cet: Check legacy shadow stack code in .init_array section
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 22 Mar 2023 20:34:55 +0000 (13:34 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 19 Aug 2025 22:39:23 +0000 (15:39 -0700)
commit1192cdd722824e0ebfb133b51e539a663e56b6d0
tree815ef6a13288cb86d6696da1f9774f859c6b41da
parentdb563af070a3ad4c24c1430eaa050863569ba0e7
x86/cet: Check legacy shadow stack code in .init_array section

Verify that legacy shadow stack code in .init_array section in application
and shared library, which are marked as shadow stack enabled, will trigger
segfault.

(cherry picked from commit 28bd6f832d4c8ec9a223c153427c1ab6fd19a548)
sysdeps/x86/Makefile
sysdeps/x86/tst-shstk-legacy-1d-static.c [new file with mode: 0644]
sysdeps/x86/tst-shstk-legacy-1d.c [new file with mode: 0644]
sysdeps/x86/tst-shstk-legacy-1e-static.c [new file with mode: 0644]
sysdeps/x86/tst-shstk-legacy-1e-static.sh [new file with mode: 0755]
sysdeps/x86/tst-shstk-legacy-1e.c [new file with mode: 0644]
sysdeps/x86/tst-shstk-legacy-1e.sh [new file with mode: 0755]
sysdeps/x86/tst-shstk-legacy-1f.c [new file with mode: 0644]
sysdeps/x86/tst-shstk-legacy-1g.c [new file with mode: 0644]
sysdeps/x86/tst-shstk-legacy-1g.sh [new file with mode: 0755]
sysdeps/x86/tst-shstk-legacy-mod-1.c [new file with mode: 0644]