mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
restorer: shstk: add restorer shadow stack stubs
* shstk_restorer_stack_size() – restorer shadow stack size * shstk_set_restorer_stack() – set restorer shadow stack start Signed-off-by: Igor Svilenkov Bozic <svilenkov@gmail.com> Co-Authored-By: Andrei Vagin <avagin@gmail.com> Signed-off-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
This commit is contained in:
parent
bb9a7202a7
commit
3365c7c025
1 changed files with 15 additions and 0 deletions
|
|
@ -9,6 +9,7 @@ extern int arch_set_thread_regs_nosigrt(struct pid *pid);
|
|||
|
||||
struct task_restore_args;
|
||||
struct pstree_item;
|
||||
struct rst_shstk_info;
|
||||
|
||||
#ifndef arch_shstk_prepare
|
||||
static inline int arch_shstk_prepare(struct pstree_item *item,
|
||||
|
|
@ -38,4 +39,18 @@ static inline int arch_shstk_trampoline(struct pstree_item *item, CoreEntry *cor
|
|||
#define arch_shstk_trampoline arch_shstk_trampoline
|
||||
#endif
|
||||
|
||||
#ifndef shstk_restorer_stack_size
|
||||
static always_inline long shstk_restorer_stack_size(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef shstk_set_restorer_stack
|
||||
static always_inline long shstk_set_restorer_stack(struct rst_shstk_info *info, void *ptr)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue