mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-17 16:47:50 +00:00
proc_parse: Don't bail out on is_memfd() VMAs
Co-authored-by: Ivanq <imachug@yandex.ru> Signed-off-by: Younes Manton <ymanton@ca.ibm.com>
This commit is contained in:
parent
d46c74a061
commit
d088a711b0
1 changed files with 0 additions and 18 deletions
|
|
@ -313,24 +313,6 @@ static int vma_get_mapfile_user(const char *fname, struct vma_area *vma, struct
|
|||
|
||||
vfi_dev = makedev(vfi->dev_maj, vfi->dev_min);
|
||||
|
||||
if (is_memfd(vfi_dev)) {
|
||||
char tmp[PATH_MAX];
|
||||
__strlcpy(tmp, fname, PATH_MAX);
|
||||
strip_deleted(tmp, strlen(tmp));
|
||||
|
||||
/*
|
||||
* The error EPERM will be shown in the following pr_perror().
|
||||
* It comes from the previous open() call.
|
||||
*/
|
||||
pr_perror("Can't open mapped [%s]", tmp);
|
||||
|
||||
/*
|
||||
* TODO Perhaps we could do better than failing and dump the
|
||||
* memory like what is being done in shmem.c
|
||||
*/
|
||||
return -1;
|
||||
}
|
||||
|
||||
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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue