criu/compel/include
Mike Rapoport (IBM) 0aba3dcfa1 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-09-11 16:02:11 -07:00
..
uapi compel: shstk: prepare shadow stack signal frame 2024-09-11 16:02:11 -07:00
compel-cpu.h compel: fpu -- Add compel_test_fpu_cap helper 2018-10-30 19:27:55 +03:00
elf32-types.h Run 'make indent' on header files 2021-09-03 10:31:00 -07:00
elf64-types.h Run 'make indent' on header files 2021-09-03 10:31:00 -07:00
errno.h Run 'make indent' on header files 2021-09-03 10:31:00 -07:00
infect-priv.h clang-format: do automatic comment fixups 2022-04-28 17:53:52 -07:00
log.h log: remove all uses of %m specifier in pr_* functions 2023-04-15 21:17:21 -07:00
piegen.h Run 'make indent' on header files 2021-09-03 10:31:00 -07:00
ptrace.h compel: set TRACESYSGOOD to distinguish breakpoints from syscalls 2023-04-15 21:17:21 -07:00
rpc-pie-priv.h clang-format: do automatic comment fixups 2022-04-28 17:53:52 -07:00
shmem.h Run 'make indent' on header files 2021-09-03 10:31:00 -07:00