From b46d8429ccb0a35c1550cfcc295941cc4bcbf0cd Mon Sep 17 00:00:00 2001 From: Younes Manton Date: Mon, 12 Dec 2022 09:29:26 -0800 Subject: [PATCH] proc_parse: Set VMA_AREA_REGULAR where needed This patch sets VMA_AREA_REGULAR on hugetlb and anon shmem VMAs since they can be handled the same way as other kinds of regular memory. Co-authored-by: Ivanq Signed-off-by: Younes Manton --- criu/proc_parse.c | 1 + 1 file changed, 1 insertion(+) diff --git a/criu/proc_parse.c b/criu/proc_parse.c index a5f749d45..345de2592 100644 --- a/criu/proc_parse.c +++ b/criu/proc_parse.c @@ -332,6 +332,7 @@ static int vma_get_mapfile_user(const char *fname, struct vma_area *vma, struct } if (is_hugetlb_dev(vfi_dev, &hugetlb_flag) || is_anon_shmem_map(vfi_dev)) { + vma->e->status |= VMA_AREA_REGULAR; if (!(vma->e->flags & MAP_SHARED)) vma->e->status |= VMA_ANON_PRIVATE; else