Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
criu
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhul
criu
Commits
566a900e
Commit
566a900e
authored
Nov 08, 2011
by
Cyrill Gorcunov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
restore: Use prctl for vDSO restoration
Signed-off-by:
Cyrill Gorcunov
<
gorcunov@gmail.com
>
parent
a4d37dcf
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
0 deletions
+26
-0
types.h
include/types.h
+15
-0
restorer.c
restorer.c
+11
-0
No files found.
include/types.h
View file @
566a900e
...
...
@@ -38,6 +38,21 @@
#define PTRACE_O_TRACEVFORKDONE 0x00000020
#define PTRACE_O_TRACEEXIT 0x00000040
/* prctl.h */
#define PR_SET_NAME 15
#define PR_GET_NAME 16
#define PR_CKPT_CTL 35
# define PR_CKPT_CTL_SETUP_VDSO_AT 1
# define PR_CKPT_CTL_SET_TASK_FLAGS 2
# define PR_CKPT_CTL_SET_MM_START_CODE 3
# define PR_CKPT_CTL_SET_MM_END_CODE 4
# define PR_CKPT_CTL_SET_MM_START_DATA 5
# define PR_CKPT_CTL_SET_MM_END_DATA 6
# define PR_CKPT_CTL_SET_MM_START_STACK 7
# define PR_CKPT_CTL_SET_MM_START_BRK 8
# define PR_CKPT_CTL_SET_MM_BRK 9
/* fcntl */
#ifndef F_LINUX_SPECIFIC_BASE
#define F_LINUX_SPECIFIC_BASE 1024
...
...
restorer.c
View file @
566a900e
...
...
@@ -214,6 +214,17 @@ self_len_end:
if
(
!
vma_entry
.
start
)
break
;
if
(
vma_entry
.
status
&
VMA_AREA_VDSO
)
{
ret
=
sys_prctl
(
PR_CKPT_CTL
,
PR_CKPT_CTL_SETUP_VDSO_AT
,
vma_entry
.
start
,
0
,
0
);
if
(
ret
)
{
write_hex_n
(
__LINE__
);
write_hex_n
(
ret
);
goto
core_restore_end
;
}
continue
;
}
if
(
!
(
vma_entry
.
status
&
VMA_AREA_REGULAR
))
continue
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment