[PATCH 0/5] Add more tests for user context functions
H.J. Lu
hjl.tools@gmail.com
Wed Jul 18 17:53:00 GMT 2018
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
More information about the Libc-alpha
mailing list