[CRIU] [PATCH 4/4] arch: x86 -- Add proxification of vDSO calls
Cyrill Gorcunov
gorcunov at openvz.org
Wed Apr 17 09:50:53 EDT 2013
On Wed, Apr 17, 2013 at 05:41:26PM +0400, Pavel Emelyanov wrote:
> >>> + list_add_tail(&vma->list, &rst_vmas.h);
> >>
> >>> + vma->vma.start = last->vma.end;
> >>> + vma->vma.end = vma->vma.start + symtable_vma_size(&vdso_proxy.sym_rt);
> >>> + vma->vma.prot = PROT_READ | PROT_EXEC;
> >>> + vma->vma.flags = MAP_PRIVATE | MAP_ANONYMOUS;
> >>> + vma->vma.status = VMA_AREA_REGULAR | VMA_AREA_VDSO | VMA_ANON_PRIVATE;
> >>
> >> Who will then make sure that real VDSO would be at that place?
> >
> > Wait, I'm confused now. At moment the new VDSO with kernel supplied content
> > is placed after the last VMA found in image
>
> By whom?
By us ;) Once this new vma is added to rst_vmas.h, the rest of code fills it
and leave in restore space.
Cyrill
More information about the CRIU
mailing list