]> sourceware.org Git - glibc.git/commit
x32/cet: Support shadow stack during startup for Linux 6.10
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 23 Jul 2024 00:47:22 +0000 (17:47 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 25 Jul 2024 07:17:21 +0000 (00:17 -0700)
commit8344c1f5514b1b5b1c8c6e48f4b802653bd23b71
tree176fa1454f6a1b5b2b79859027e660f3f781cd5d
parent652c6cf26927352fc0e37e4e60c6fc98ddf6d3b4
x32/cet: Support shadow stack during startup for Linux 6.10

Use RXX_LP in RTLD_START_ENABLE_X86_FEATURES.  Support shadow stack during
startup for Linux 6.10:

commit 2883f01ec37dd8668e7222dfdb5980c86fdfe277
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Fri Mar 15 07:04:33 2024 -0700

    x86/shstk: Enable shadow stacks for x32

    1. Add shadow stack support to x32 signal.
    2. Use the 64-bit map_shadow_stack syscall for x32.
    3. Set up shadow stack for x32.

Add the map_shadow_stack system call to <fixup-asm-unistd.h> and regenerate
arch-syscall.h.  Tested on Intel Tiger Lake with CET enabled x32.  There
are no regressions with CET enabled x86-64.  There are no changes in CET
enabled x86-64 _dl_start_user.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
Reviewed-by: Noah Goldstein <goldstein.w.n@gmail.com>
sysdeps/unix/sysv/linux/x86_64/dl-cet.h
sysdeps/unix/sysv/linux/x86_64/x32/arch-syscall.h
sysdeps/unix/sysv/linux/x86_64/x32/fixup-asm-unistd.h
This page took 0.040259 seconds and 5 git commands to generate.