2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-29 21:38:16 +00:00

dump: Anonymous shared mappings should have MAP_ANONYMOUS flag

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
Cyrill Gorcunov 2011-11-08 12:19:43 +04:00
parent 20c3bf1033
commit b9d0883d76

1
util.c
View File

@ -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 {