Commit 099c9c00 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov

dump: Don't forget to save MAP_ANONYMOUS if it was there

Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@gmail.com>
parent 275e97c7
......@@ -381,7 +381,8 @@ int parse_maps(pid_t pid, struct list_head *vma_area_list, bool use_map_files)
*/
if (vma_area->vma.flags & MAP_SHARED)
goto err_bogus_mapping;
else
vma_area->vma.flags |= MAP_ANONYMOUS;
vma_area->vma.status |= VMA_ANON_PRIVATE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment