[Devel] Re: [PATCH] procfs: Do not release pid_ns->proc_mnt too early
Oleg Nesterov
oleg at redhat.com
Mon Jun 21 07:38:13 PDT 2010
On 06/21, Louis Rilling wrote:
>
> On 18/06/10 19:55 +0200, Oleg Nesterov wrote:
>
> > Yes, this should be fixed, I already realized this. work->func(ns) is
> > called when ns is already fixed.
> >
> > Otherwise, nobody should use ns->proc_mount when ns is already dead/freed.
>
> I meant the opposite. proc_mnt can be kept mounted somewhere,
I think, no. If it is kept mounted vfsmount should be different.
> and accesses to it
> will likely try to access (freed) pid_ns from it.
Not sure, there must be no tasks (and pids) in this ns.
By anyway I agree. This needs more thinking and we should do something
with sb->s_fs_info.
But given that nobody (including me) seem to like this approach - let's
forget this patch.
Thanks,
Oleg.
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
More information about the Devel
mailing list