This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH 0/5] Add more tests for user context functions
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: libc-alpha at sourceware dot org
- Date: Wed, 18 Jul 2018 10:53:05 -0700
- Subject: [PATCH 0/5] Add more tests for user context functions
When the shadow stack (SHSTK) is enabled, makecontext needs to allocate
a new shadow stack to go with the new stack allocated by the caller.
setcontext and swapcontext must properly handle the corresponding shadow
stack when the stack is switched. Add more tests for user context
functions to provide more coverage for the shadow stack support.
OK for master branch?
H.J. Lu (5):
Add a test for swapcontext with a wrapper
Add a test for multiple makecontext calls
Add another test for setcontext
Add a test for multiple setcontext calls
Add tests for setcontext on the context from makecontext
stdlib/Makefile | 5 +-
stdlib/tst-setcontext4.c | 217 ++++++++++++++++++++++++++++++++++++++
stdlib/tst-setcontext5.c | 88 ++++++++++++++++
stdlib/tst-setcontext6.c | 76 +++++++++++++
stdlib/tst-setcontext7.c | 96 +++++++++++++++++
stdlib/tst-setcontext8.c | 81 ++++++++++++++
stdlib/tst-setcontext9.c | 100 ++++++++++++++++++
stdlib/tst-swapcontext1.c | 91 ++++++++++++++++
stdlib/tst-swapcontext2.c | 108 +++++++++++++++++++
9 files changed, 861 insertions(+), 1 deletion(-)
create mode 100644 stdlib/tst-setcontext4.c
create mode 100644 stdlib/tst-setcontext5.c
create mode 100644 stdlib/tst-setcontext6.c
create mode 100644 stdlib/tst-setcontext7.c
create mode 100644 stdlib/tst-setcontext8.c
create mode 100644 stdlib/tst-setcontext9.c
create mode 100644 stdlib/tst-swapcontext1.c
create mode 100644 stdlib/tst-swapcontext2.c
--
2.17.1