criu/compel/test
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
..
fdspy Run 'make indent' on all C files 2021-09-03 10:31:00 -07:00
infect compel: Fix infect test to not override failures 2023-04-15 21:17:21 -07:00
rsys Run 'make indent' on all C files 2021-09-03 10:31:00 -07:00
stack compel: Add test to check parasite stack setup 2023-04-15 21:17:21 -07:00
Makefile compel: Add test to check parasite stack setup 2023-04-15 21:17:21 -07:00