Linux Container Development
 help / color / mirror / Atom feed
* Re: + cgroups-fix-pid-namespace-bug.patch added to -mm tree
       [not found] ` <200907022320.n62NKpKO022860-AB4EexQrvXRQetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org>
@ 2009-07-24  5:26   ` Li Zefan
       [not found]     ` <4A69461D.6080201-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Li Zefan @ 2009-07-24  5:26 UTC (permalink / raw)
  To: akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b
  Cc: containers-qjLDD68F18O7TbgM5vRIOg@public.gmane.org, Benjamin Blum,
	Paul Menage

> Subject: cgroups: fix pid namespace bug
> From: Li Zefan <lizf-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
> 

Hi Andrew,

Could you queue this fix for .31.

I think there's no more objection to this patch or to queuing it
for .31 instead of .32. And then Benjamin can rebase his patchset
on top of it.

> The bug was introduced by commit cc31edceee04a7b87f2be48f9489ebb72d264844
> ("cgroups: convert tasks file to use a seq_file with shared pid array").
> 
> We cache a pid array for all threads that are opening the same "tasks"
> file, but the pids in the array are always from the namespace of the
> last process that opened the file, so all other threads will read pids
> from that namespace instead of their own namespaces.
> 
> To fix it, we maintain a list of pid arrays, which is keyed by pid_ns.
> The list will be of length 1 at most time.
> 
> Reported-by: Paul Menage <menage-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
> Idea-by: Paul Menage <menage-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
> Signed-off-by: Li Zefan <lizf-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
> Reviewed-by: Serge Hallyn <serue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
> Cc: Balbir Singh <balbir-xthvdsQ13ZrQT0dZR+AlfA@public.gmane.org>
> Signed-off-by: Andrew Morton <akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org>
> ---

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: + cgroups-fix-pid-namespace-bug.patch added to -mm tree
       [not found]     ` <4A69461D.6080201-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
@ 2009-07-24  5:55       ` Andrew Morton
       [not found]         ` <20090723225545.f2fd381a.akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Morton @ 2009-07-24  5:55 UTC (permalink / raw)
  To: Li Zefan
  Cc: containers-qjLDD68F18O7TbgM5vRIOg@public.gmane.org, Benjamin Blum,
	Paul Menage

On Fri, 24 Jul 2009 13:26:53 +0800 Li Zefan <lizf-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org> wrote:

> > Subject: cgroups: fix pid namespace bug
> > From: Li Zefan <lizf-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
> > 
> 
> Hi Andrew,
> 
> Could you queue this fix for .31.

Yup, I have it there already.

> I think there's no more objection to this patch or to queuing it
> for .31 instead of .32. And then Benjamin can rebase his patchset
> on top of it.
> 

I have a note here that Paul Menage said the patch had "missing operations". 
Did that all get suitably resolved?

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: + cgroups-fix-pid-namespace-bug.patch added to -mm tree
       [not found]         ` <20090723225545.f2fd381a.akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org>
@ 2009-07-24  5:59           ` Li Zefan
  0 siblings, 0 replies; 3+ messages in thread
From: Li Zefan @ 2009-07-24  5:59 UTC (permalink / raw)
  To: Andrew Morton
  Cc: containers-qjLDD68F18O7TbgM5vRIOg@public.gmane.org, Benjamin Blum,
	Paul Menage

Andrew Morton wrote:
> On Fri, 24 Jul 2009 13:26:53 +0800 Li Zefan <lizf-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org> wrote:
> 
>>> Subject: cgroups: fix pid namespace bug
>>> From: Li Zefan <lizf-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
>>>
>> Hi Andrew,
>>
>> Could you queue this fix for .31.
> 
> Yup, I have it there already.
> 
>> I think there's no more objection to this patch or to queuing it
>> for .31 instead of .32. And then Benjamin can rebase his patchset
>> on top of it.
>>
> 
> I have a note here that Paul Menage said the patch had "missing operations". 
> Did that all get suitably resolved?
> 

Yes, resolved by the delta patch "cgroups-fix-pid-namespace-bug-fix.patch"

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-07-24  5:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <200907022320.n62NKpKO022860@imap1.linux-foundation.org>
     [not found] ` <200907022320.n62NKpKO022860-AB4EexQrvXRQetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org>
2009-07-24  5:26   ` + cgroups-fix-pid-namespace-bug.patch added to -mm tree Li Zefan
     [not found]     ` <4A69461D.6080201-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2009-07-24  5:55       ` Andrew Morton
     [not found]         ` <20090723225545.f2fd381a.akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org>
2009-07-24  5:59           ` Li Zefan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox