mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
x86/criu: shstk restorer memory accounting functions
* shstk_restorer_stack_size(): PAGE_SIZE * shstk_set_restorer_stack(): set restorer temporary 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
3365c7c025
commit
f29cb750db
1 changed files with 11 additions and 0 deletions
|
|
@ -73,6 +73,17 @@ int arch_shstk_trampoline(struct pstree_item *item, CoreEntry *core,
|
|||
int (*func)(void *arg), void *arg);
|
||||
#define arch_shstk_trampoline arch_shstk_trampoline
|
||||
|
||||
static always_inline long shstk_restorer_stack_size(void)
|
||||
{
|
||||
return PAGE_SIZE;
|
||||
}
|
||||
#define shstk_restorer_stack_size shstk_restorer_stack_size
|
||||
static always_inline void shstk_set_restorer_stack(struct rst_shstk_info *info, void *ptr)
|
||||
{
|
||||
info->tmp_shstk = (unsigned long)ptr;
|
||||
}
|
||||
#define shstk_set_restorer_stack shstk_set_restorer_stack
|
||||
|
||||
#ifdef CR_NOGLIBC
|
||||
|
||||
#include <compel/plugins/std/syscall.h>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue