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
7b7f09e4
Commit
7b7f09e4
authored
Mar 03, 2012
by
Pavel Emelyanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sanitize vma types parsing
Signed-off-by:
Pavel Emelyanov
<
xemul@parallels.com
>
parent
446b6526
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
cr-dump.c
cr-dump.c
+0
-6
proc_parse.c
proc_parse.c
+4
-0
No files found.
cr-dump.c
View file @
7b7f09e4
...
@@ -434,8 +434,6 @@ static int dump_task_mappings(pid_t pid, struct list_head *vma_area_list, struct
...
@@ -434,8 +434,6 @@ static int dump_task_mappings(pid_t pid, struct list_head *vma_area_list, struct
pr_info_vma
(
vma_area
);
pr_info_vma
(
vma_area
);
if
(
vma
->
flags
&
(
MAP_SHARED
|
MAP_PRIVATE
))
{
if
(
vma_entry_is
(
vma
,
VMA_ANON_SHARED
))
{
if
(
vma_entry_is
(
vma
,
VMA_ANON_SHARED
))
{
struct
shmem_entry
e
;
struct
shmem_entry
e
;
...
@@ -467,10 +465,6 @@ static int dump_task_mappings(pid_t pid, struct list_head *vma_area_list, struct
...
@@ -467,10 +465,6 @@ static int dump_task_mappings(pid_t pid, struct list_head *vma_area_list, struct
if
(
ret
)
if
(
ret
)
goto
err
;
goto
err
;
}
}
}
else
{
pr_err
(
"Unknown VMA (pid: %d)
\n
"
,
pid
);
goto
err
;
}
}
}
ret
=
0
;
ret
=
0
;
...
...
proc_parse.c
View file @
7b7f09e4
...
@@ -93,6 +93,10 @@ int parse_maps(pid_t pid, struct list_head *vma_area_list, bool use_map_files)
...
@@ -93,6 +93,10 @@ int parse_maps(pid_t pid, struct list_head *vma_area_list, bool use_map_files)
vma_area
->
vma
.
flags
=
MAP_SHARED
;
vma_area
->
vma
.
flags
=
MAP_SHARED
;
else
if
(
s
==
'p'
)
else
if
(
s
==
'p'
)
vma_area
->
vma
.
flags
=
MAP_PRIVATE
;
vma_area
->
vma
.
flags
=
MAP_PRIVATE
;
else
{
pr_err
(
"Unexpected VMA met (%c)
\n
"
,
s
);
goto
err
;
}
if
(
strstr
(
big_buffer
,
"[stack]"
))
{
if
(
strstr
(
big_buffer
,
"[stack]"
))
{
vma_area
->
vma
.
status
|=
VMA_AREA_REGULAR
|
VMA_AREA_STACK
;
vma_area
->
vma
.
status
|=
VMA_AREA_REGULAR
|
VMA_AREA_STACK
;
...
...
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