criu/compel
Younes Manton 17ec539132 compel: Add test to check parasite stack setup
Some ABIs allow functions to store data in caller frame, which
means that we have to allocate an initial stack frame before
executing code on the parasite stack.

This test saves the contents of writable memory that follows the stack
after the victim has been infected but before we start using the
parasite stack. It later checks that the saved data matches the
current contents of the two memory areas. This is done while the
victim is halted so we expect a match unless executing parasite code
caused memory corruption. The test doesn't detect cases where we
corrupted memory by writing the same value.

Signed-off-by: Younes Manton <ymanton@ca.ibm.com>
2023-04-15 21:17:21 -07:00
..
arch breakpoint: enable breakpoints by default on amd64 and arm64 2023-04-15 21:17:21 -07:00
include compel: Add APIs to facilitate testing 2023-04-15 21:17:21 -07:00
plugins kerndat: check whether the openat2 syscall is supported 2022-04-28 17:53:52 -07:00
src compel: Add APIs to facilitate testing 2023-04-15 21:17:21 -07:00
test compel: Add test to check parasite stack setup 2023-04-15 21:17:21 -07:00
.gitignore compel: adapt .gitgnore for aarch64 and ppc64le 2017-08-09 18:51:42 +03:00
compel-host compel cli: show includes 2017-03-15 00:09:55 +03:00
Makefile x86: Use PTRACE_GET_THREAD_AREA instead of sys_get_thread_area() 2021-09-03 10:31:00 -07:00