]> git.ipfire.org Git - thirdparty/glibc.git/commit
x86: Rename __glibc_reserved2 to ssp_base in tcbhead_t
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 25 Jul 2018 11:39:26 +0000 (04:39 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 25 Jul 2018 11:39:39 +0000 (04:39 -0700)
commit9aa3113a42d94d7bbf9bb4d50ef0d23b95e66123
treefa63d539e751cddd5df0acde94a2ecc808642a0f
parent9c79cec8cd2a6996a73aa83d79b360ffd4bebde6
x86: Rename __glibc_reserved2 to ssp_base in tcbhead_t

This will be used to record the current shadow stack base for shadow
stack switching by getcontext, makecontext, setcontext and swapcontext.
If the target shadow stack base is the same as the current shadow stack
base, we unwind the shadow stack.  Otherwise it is a stack switch and
we look for a restore token to restore the target shadow stack.

* sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
* sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
with ssp_base.
* sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
* sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
with ssp_base.
ChangeLog
sysdeps/i386/nptl/tcb-offsets.sym
sysdeps/i386/nptl/tls.h
sysdeps/x86_64/nptl/tcb-offsets.sym
sysdeps/x86_64/nptl/tls.h