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:
parent
20c3bf1033
commit
b9d0883d76
1
util.c
1
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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user