criu/test/zdtm/transition
Florian Weimer 089345f77a Adjust to glibc __rseq_size semantic change
In commit 2e456ccf0c34a056e3ccafac4a0c7effef14d918 ("Linux: Make
__rseq_size useful for feature detection (bug 31965)") glibc 2.40
changed the meaning of __rseq_size slightly: it is now the size
of the active/feature area (20 bytes initially), and not the size
of the entire initially defined struct (32 bytes including padding).
The reason for the change is that the size including padding does not
allow detection of newly added features while previously unused
padding is consumed.

The prep_libc_rseq_info change in criu/cr-restore.c is not necessary
on kernels which have full ptrace support for obtaining rseq
information because the code is not used.  On older kernels, it is
a correctness fix because with size 20 (the new value), rseq
registeration would fail.

The two other changes are required to make rseq unregistration work
in tests.

Signed-off-by: Florian Weimer <fweimer@redhat.com>
2024-09-11 16:02:11 -07:00
..
epoll.c zdtm/transition/epoll: don't rely on errno in case of zero return 2023-04-15 21:17:21 -07:00
fifo_dyn.c Run 'make indent' on all C files 2021-09-03 10:31:00 -07:00
fifo_dyn.desc test: Get rid of live directory 2016-02-20 13:40:52 +03:00
fifo_loop.c Run 'make indent' on all C files 2021-09-03 10:31:00 -07:00
file_aio.c Run 'make indent' on all C files 2021-09-03 10:31:00 -07:00
file_read.c Run 'make indent' on all C files 2021-09-03 10:31:00 -07:00
fork.c Run 'make indent' on all C files 2021-09-03 10:31:00 -07:00
fork2.c test: Get rid of live directory 2016-02-20 13:40:52 +03:00
ipc.c ci: fix new codespell errors 2023-10-22 13:29:25 -07:00
ipc.desc test: Get rid of live directory 2016-02-20 13:40:52 +03:00
lazy-thp.c ci: fix new codespell errors 2023-10-22 13:29:25 -07:00
Makefile zdtm: modify rseq01 to include a thread 2023-04-15 21:17:21 -07:00
maps007.c ci: fix make indent 2023-04-15 21:17:21 -07:00
maps007.desc test: Get rid of live directory 2016-02-20 13:40:52 +03:00
maps008.c Run 'make indent' on all C files 2021-09-03 10:31:00 -07:00
maps008.desc test: add test for anon shmem dedup 2016-09-06 19:31:19 +03:00
netlink00.c Run 'make indent' on all C files 2021-09-03 10:31:00 -07:00
netlink00.desc test: Get rid of live directory 2016-02-20 13:40:52 +03:00
pid_reuse.c zdtm: check that pid-reuse does not break iterative memory dump 2018-07-09 18:26:52 +03:00
pid_reuse.desc zdtm: check that pid-reuse does not break iterative memory dump 2018-07-09 18:26:52 +03:00
pidfd_store_sk.c zdtm: add pidfd store based pid reuse test 2021-09-03 10:31:00 -07:00
pidfd_store_sk.desc zdtm: add pidfd store based pid reuse test 2021-09-03 10:31:00 -07:00
pipe_loop00.c Run 'make indent' on all C files 2021-09-03 10:31:00 -07:00
pipe_shared00.c Run 'make indent' on all C files 2021-09-03 10:31:00 -07:00
ptrace.c clang-format: do automatic comment fixups 2022-04-28 17:53:52 -07:00
ptrace.desc test: Get rid of live directory 2016-02-20 13:40:52 +03:00
rseq01.c Adjust to glibc __rseq_size semantic change 2024-09-11 16:02:11 -07:00
rseq01.desc zdtm: add transition/rseq01 test for amd64 2022-04-28 17:53:52 -07:00
rseq02.c zdtm: add rseq02 transition test with NO_RESTART CS flag 2022-04-28 17:53:52 -07:00
rseq02.desc zdtm: temporary disable rseq02 test 2022-04-28 17:53:52 -07:00
shmem.c Run 'make indent' on all C files 2021-09-03 10:31:00 -07:00
socket-tcp.c test: Get rid of live directory 2016-02-20 13:40:52 +03:00
socket-tcp.desc join-ns: Fix join-ns zdtm test 2016-06-01 14:52:21 +03:00
socket-tcp6.c test: Get rid of live directory 2016-02-20 13:40:52 +03:00
socket-tcp6.desc join-ns: Fix join-ns zdtm test 2016-06-01 14:52:21 +03:00
socket_loop00.c Run 'make indent' on all C files 2021-09-03 10:31:00 -07:00
stack.c compel: Add test to check parasite stack setup 2023-04-15 21:17:21 -07:00
thread-bomb.c Run 'make indent' on all C files 2021-09-03 10:31:00 -07:00
thread-bomb.desc test: Get rid of live directory 2016-02-20 13:40:52 +03:00
unix_sock.c Run 'make indent' on all C files 2021-09-03 10:31:00 -07:00