This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 0/3] x86/CET: The last 3 patches to enable CET


These are the last 3 patches to enable CET.  Tested by

1. build-many-glibcs.py.
2. With --enable-cet and without --enable-cet for i686, x86-64 and x32
on non-CET x86-64 processors.
3. With --enable-cet for x86-64 and x32 on CET SDV using the CET kernel
from cet branch at:

https://github.com/yyu168/linux_cet/tree/cet

OK for master?


H.J. Lu (3):
  x86/CET: Extend arch_prctl syscall for CET control
  x86: Rename __glibc_reserved2 to ssp_base in tcbhead_t
  x86-64/CET: Extend ucontext_t to save shadow stack

 sysdeps/i386/nptl/tcb-offsets.sym             |   1 +
 sysdeps/i386/nptl/tls.h                       |   3 +-
 sysdeps/unix/sysv/linux/Makefile              |   3 +-
 sysdeps/unix/sysv/linux/bits/prctl.h          |  21 +++
 sysdeps/unix/sysv/linux/sys/prctl.h           |   1 +
 sysdeps/unix/sysv/linux/x86/bits/prctl.h      |  48 ++++++
 sysdeps/unix/sysv/linux/x86/cpu-features.c    |   7 +
 sysdeps/unix/sysv/linux/x86/dl-cet.h          |  29 +++-
 sysdeps/unix/sysv/linux/x86/sys/ucontext.h    |   2 +
 .../unix/sysv/linux/x86_64/__start_context.S  |  75 +++++++++
 sysdeps/unix/sysv/linux/x86_64/getcontext.S   |  17 ++
 sysdeps/unix/sysv/linux/x86_64/makecontext.c  |  56 ++++++-
 sysdeps/unix/sysv/linux/x86_64/setcontext.S   | 139 ++++++++++++++++
 sysdeps/unix/sysv/linux/x86_64/swapcontext.S  | 150 ++++++++++++++++++
 sysdeps/unix/sysv/linux/x86_64/sysdep.h       |   5 +
 sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym |   1 +
 sysdeps/x86/libc-start.c                      |   3 +
 sysdeps/x86_64/nptl/tcb-offsets.sym           |   1 +
 sysdeps/x86_64/nptl/tls.h                     |  10 +-
 19 files changed, 562 insertions(+), 10 deletions(-)
 create mode 100644 sysdeps/unix/sysv/linux/bits/prctl.h
 create mode 100644 sysdeps/unix/sysv/linux/x86/bits/prctl.h

-- 
2.17.1


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]