mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
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>
|
||
|---|---|---|
| .. | ||
| epoll.c | ||
| fifo_dyn.c | ||
| fifo_dyn.desc | ||
| fifo_loop.c | ||
| file_aio.c | ||
| file_read.c | ||
| fork.c | ||
| fork2.c | ||
| ipc.c | ||
| ipc.desc | ||
| lazy-thp.c | ||
| Makefile | ||
| maps007.c | ||
| maps007.desc | ||
| maps008.c | ||
| maps008.desc | ||
| netlink00.c | ||
| netlink00.desc | ||
| pid_reuse.c | ||
| pid_reuse.desc | ||
| pidfd_store_sk.c | ||
| pidfd_store_sk.desc | ||
| pipe_loop00.c | ||
| pipe_shared00.c | ||
| ptrace.c | ||
| ptrace.desc | ||
| rseq01.c | ||
| rseq01.desc | ||
| rseq02.c | ||
| rseq02.desc | ||
| shmem.c | ||
| socket-tcp.c | ||
| socket-tcp.desc | ||
| socket-tcp6.c | ||
| socket-tcp6.desc | ||
| socket_loop00.c | ||
| stack.c | ||
| thread-bomb.c | ||
| thread-bomb.desc | ||
| unix_sock.c | ||