[CRIU] [PATCH 08/10] proc_parse: Don't try to open special mappings like heap, vsyscall and such

Cyrill Gorcunov gorcunov at gmail.com
Mon Sep 28 12:21:38 PDT 2015


On Mon, Sep 28, 2015 at 10:15:45PM +0300, Pavel Emelyanov wrote:
> On 09/28/2015 10:01 PM, Cyrill Gorcunov wrote:
> > For special mappings such as heap, vsyscall, vdso and such
> > the kernel provides names rounded by brackets so exit
> > from vma_get_mapfile if we meet one and allow the caller
> > to handle it.
> > 
> > Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
> > ---
> >  proc_parse.c | 8 ++++++++
> >  1 file changed, 8 insertions(+)
> > 
> > diff --git a/proc_parse.c b/proc_parse.c
> > index 302aa2fcb04c..430df79a9318 100644
> > --- a/proc_parse.c
> > +++ b/proc_parse.c
> > @@ -273,6 +273,14 @@ static int vma_get_mapfile(char *fname, struct vma_area *vma, DIR *mfd,
> >  				}
> >  
> >  				return 0;
> > +			} else if (fname[0] == '[') {
> 
> I'd say it should be if (fname[0] != '/')

Yeah, thanks.


More information about the CRIU mailing list