From b9d0883d766a0761c2fa8b21902efc95d77ec546 Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Tue, 8 Nov 2011 12:19:43 +0400 Subject: [PATCH] dump: Anonymous shared mappings should have MAP_ANONYMOUS flag Signed-off-by: Cyrill Gorcunov --- util.c | 1 + 1 file changed, 1 insertion(+) diff --git a/util.c b/util.c index 716eed897..c9ee45213 100644 --- a/util.c +++ b/util.c @@ -367,6 +367,7 @@ int parse_maps(pid_t pid, struct list_head *vma_area_list, bool use_map_files) if (MAJOR(st_buf.st_dev) == 0) { if (!(vma_area->vma.flags & MAP_SHARED)) goto err_bogus_mapping; + vma_area->vma.flags |= MAP_ANONYMOUS; vma_area->vma.status |= VMA_ANON_SHARED; vma_area->shmid = st_buf.st_ino; } else {