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
d2b415ca
Commit
d2b415ca
authored
May 24, 2013
by
Pavel Emelyanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vdso: Cleanup vdso_proxify routine
Signed-off-by:
Pavel Emelyanov
<
xemul@parallels.com
>
parent
20b39341
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
vdso-pie.c
arch/x86/vdso-pie.c
+5
-7
No files found.
arch/x86/vdso-pie.c
View file @
d2b415ca
...
...
@@ -247,7 +247,6 @@ int vdso_proxify(char *who, struct vdso_symtable *sym_rt, VmaEntry *vma, unsigne
size_t
size
=
vma_entry_len
(
vma
);
bool
remap_rt
=
true
;
struct
vdso_mark
*
m
;
unsigned
int
i
;
/*
* Find symbols in dumpee vdso.
...
...
@@ -256,6 +255,8 @@ int vdso_proxify(char *who, struct vdso_symtable *sym_rt, VmaEntry *vma, unsigne
return
-
1
;
if
(
size
==
vdso_vma_size
(
sym_rt
))
{
int
i
;
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
s
.
symbols
);
i
++
)
{
if
(
s
.
symbols
[
i
].
offset
!=
sym_rt
->
symbols
[
i
].
offset
)
{
remap_rt
=
false
;
...
...
@@ -271,17 +272,14 @@ int vdso_proxify(char *who, struct vdso_symtable *sym_rt, VmaEntry *vma, unsigne
* without generating any proxy.
*/
if
(
remap_rt
)
{
pr_
debug
(
"Runtime vdso matches dumpee, remap inplace
\n
"
);
pr_
info
(
"Runtime vdso matches dumpee, remap inplace
\n
"
);
if
(
sys_munmap
((
void
*
)
vma
->
start
,
size
))
{
pr_err
(
"Failed to unmap %s
\n
"
,
who
);
return
-
1
;
}
if
(
vdso_remap
(
who
,
vdso_rt_parked_at
,
vma
->
start
,
size
))
return
-
1
;
return
0
;
return
vdso_remap
(
who
,
vdso_rt_parked_at
,
vma
->
start
,
size
);
}
/*
...
...
@@ -289,7 +287,7 @@ int vdso_proxify(char *who, struct vdso_symtable *sym_rt, VmaEntry *vma, unsigne
* calls from dumpee vdso to runtime vdso, making dumpee
* to operate as proxy vdso.
*/
pr_
debug
(
"Runtime vdso mismatches dumpee, generate proxy
\n
"
);
pr_
info
(
"Runtime vdso mismatches dumpee, generate proxy
\n
"
);
if
(
vdso_redirect_calls
((
void
*
)
vdso_rt_parked_at
,
(
void
*
)
vma
->
start
,
...
...
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