mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-25 02:58:54 +00:00
vma: Add !VVAR condition to vma_entry_can_be_lazy
Currently most of the times we don't have problems with VVAR segment and lazy restore because when VDSO is parked there is an munmap call that calls UFFDIO_UNREGISTER on the destination address. But we don't want to enable userfaultfd for VDSO and VVAR at the first place.
This commit is contained in:
parent
1e4f5fb2b6
commit
4f0c07fd54
1 changed files with 2 additions and 2 deletions
|
|
@ -122,8 +122,8 @@ static inline struct vma_area *vma_next(struct vma_area *vma)
|
|||
static inline bool vma_entry_can_be_lazy(VmaEntry *e)
|
||||
{
|
||||
return ((e->flags & MAP_ANONYMOUS) && (e->flags & MAP_PRIVATE) && !(e->flags & MAP_LOCKED) &&
|
||||
!(vma_entry_is(e, VMA_AREA_VDSO)) && !(vma_entry_is(e, VMA_AREA_VSYSCALL)) &&
|
||||
!(e->flags & MAP_HUGETLB));
|
||||
!(vma_entry_is(e, VMA_AREA_VDSO)) && !(vma_entry_is(e, VMA_AREA_VVAR)) &&
|
||||
!(vma_entry_is(e, VMA_AREA_VSYSCALL)) && !(e->flags & MAP_HUGETLB));
|
||||
}
|
||||
|
||||
#endif /* __CR_VMA_H__ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue