criu/compel/src
Mike Rapoport (IBM) a09a0eb081 compel: shstk: prepare shadow stack signal frame
When calling sigreturn with CET enabled, the kernel verifies that the
shadow stack has proper address of sa_restorer and a "restore token".
Normally, they pushed to the shadow stack when signal processing is
started.

Since compel calls sigreturn directly, the shadow stack should be
updated to match the kernel expectations for sigreturn invocation.

Add parasite_setup_shstk() that sets up the shadow stack with the
address of __export_parasite_head_start as sa_restorer and with the
required restore token.

Signed-off-by: Mike Rapoport (IBM) <rppt@kernel.org>
2024-02-19 18:32:49 -08:00
..
lib compel: shstk: prepare shadow stack signal frame 2024-02-19 18:32:49 -08:00
main-host.c compel: Build host program 2017-03-14 23:58:10 +03:00
main.c compel: add loongarch64 support 2023-07-19 17:59:04 +02:00