criu/compel
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
..
arch compel: shstk: prepare shadow stack signal frame 2024-09-11 16:02:11 -07:00
include compel: shstk: prepare shadow stack signal frame 2024-09-11 16:02:11 -07:00
plugins compel: infect: prepare parasite_service() for addition of CET support 2024-09-11 16:02:11 -07:00
src compel: shstk: prepare shadow stack signal frame 2024-09-11 16:02:11 -07:00
test compel/test: Return 0 in case of error in fdspy 2023-10-22 13:29:25 -07:00
.gitignore compel: adapt .gitgnore for aarch64 and ppc64le 2017-08-09 18:51:42 +03:00
compel-host compel cli: show includes 2017-03-15 00:09:55 +03:00
Makefile compel: add loongarch64 support 2023-10-22 13:29:25 -07:00