public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Serge E. Hallyn" <serue@us.ibm.com>
To: Paul Menage <menage@google.com>
Cc: Li Zefan <lizf@cn.fujitsu.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	LKML <linux-kernel@vger.kernel.org>,
	Linux Containers <containers@lists.linux-foundation.org>
Subject: Re: [PATCH][BUGFIX] cgroups: fix pid namespace bug
Date: Thu, 2 Jul 2009 11:15:49 -0500	[thread overview]
Message-ID: <20090702161548.GA13383@us.ibm.com> (raw)
In-Reply-To: <6599ad830907020843l7ce75abfq3e78b8f67a407ab9@mail.gmail.com>

Quoting Paul Menage (menage@google.com):
> On Thu, Jul 2, 2009 at 6:26 AM, Serge E. Hallyn<serue@us.ibm.com> wrote:
> > Quoting Li Zefan (lizf@cn.fujitsu.com):
> >> Paul Menage wrote:
> >> > On Wed, Jul 1, 2009 at 7:17 PM, Li Zefan<lizf@cn.fujitsu.com> wrote:
> >> >> But I guess we are going to fix the bug for 2.6.31? So is it ok to
> >> >> merge a new feature 'cgroup.procs' together into 2.6.31?
> >> >>
> >> >
> >> > Does this bug really need to be fixed for 2.6.31? I didn't think that
> >> > the namespace support in mainline was robust enough yet for people to
> >> > use them for virtual servers in production environments.
> >
> > I don't know where the bar is for 'production environments', but I'd
> > have to claim that pid namespaces are there...
> 
> Well, pid namespaces are marked as experimental, as are user
> namespaces (and were described as "very incomplete" a few months

incomplete (due to signaling issues which have mostly been resolved)
but stable and usable.

user namespace are a completely different story :)

> back). Pid namespaces are useful for process migration (which is still
> under development) or virtual servers (for which user namespaces are
> pretty much essential). So I'm not sure quite what you'd use pid
> namespaces for yet.

You don't need user namespaces to use pid namespaces for virtual
servers (depending on your use).

Now the fact remains this is a hard to trigger bug which doesn't
corrupt the kernel, and - to take back what I said earlier - userspace
can work around it by simply freezing the cgroup before reading its
tasks file.

So I guess I can go either way...  If Li's patch were more complicated
I'd definately be for waiting.  But I do object to the general process
of making a fix of a pretty bad bag depend on an unrelated new feature!

-serge

  reply	other threads:[~2009-07-02 16:16 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-02  1:24 [PATCH][BUGFIX] cgroups: fix pid namespace bug Li Zefan
2009-07-02  1:36 ` Paul Menage
2009-07-02  1:45   ` Li Zefan
2009-07-02  1:57   ` KAMEZAWA Hiroyuki
2009-07-02 11:40     ` Balbir Singh
2009-07-02  2:17   ` Li Zefan
2009-07-02  2:20     ` Paul Menage
2009-07-02  2:28       ` Li Zefan
2009-07-02 13:26         ` Serge E. Hallyn
2009-07-02 15:43           ` Paul Menage
2009-07-02 16:15             ` Serge E. Hallyn [this message]
2009-07-02 16:27               ` Paul Menage
2009-07-02 23:20                 ` Andrew Morton
2009-07-02 23:29                   ` Paul Menage
2009-07-04  9:13             ` Eric W. Biederman
2009-07-02 13:58 ` Serge E. Hallyn
2009-07-02 16:26 ` Paul Menage
2009-07-02 16:37   ` Serge E. Hallyn
2009-07-02 16:46     ` Paul Menage
2009-07-02 19:14       ` Serge E. Hallyn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090702161548.GA13383@us.ibm.com \
    --to=serue@us.ibm.com \
    --cc=akpm@linux-foundation.org \
    --cc=containers@lists.linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lizf@cn.fujitsu.com \
    --cc=menage@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox