[Devel] Re: [RFC][PATCH 14/16] Introduce proc_mnt for pid_ns

Dave Hansen hansendc at us.ibm.com
Thu May 24 09:51:23 PDT 2007


On Thu, 2007-05-24 at 14:15 +0400, Pavel Emelianov wrote:
> 
> >       s->s_flags |= MS_NODIRATIME | MS_NOSUID | MS_NOEXEC;
> > @@ -466,6 +467,7 @@ int proc_fill_super(struct super_block *
> >       s->s_magic = PROC_SUPER_MAGIC;
> >       s->s_op = &proc_sops;
> >       s->s_time_gran = 1;
> > +     s->s_fs_info = pid_ns;
> 
> One more thing I've just noticed - you don't get the namespace
> here so after all the tasks die and namespace is freed we
> have a proc mount pointing to freed namespace... 

Yep, missed reference count.  Thanks for catching this!

-- Dave

_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers




More information about the Devel mailing list