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 {