All of lore.kernel.org
 help / color / mirror / Atom feed
From: Oleg Nesterov <oleg@redhat.com>
To: Greg Kurz <gkurz@fr.ibm.com>
Cc: Daniel Lezcano <daniel.lezcano@free.fr>,
	containers@lists.linux-foundation.org,
	linux-kernel@vger.kernel.org, ebiederm@xmission.com,
	akpm@linux-foundation.org, xemul@openvz.org
Subject: Re: [PATCH 2/2] pidns: Support unsharing the pid namespace.
Date: Fri, 18 Feb 2011 15:40:19 +0100	[thread overview]
Message-ID: <20110218144019.GA29600@redhat.com> (raw)
In-Reply-To: <4D5DA2CF.5010200@fr.ibm.com>

On 02/17, Greg Kurz wrote:
>
> On 02/17/2011 09:29 PM, Oleg Nesterov wrote:
>> On 02/17, Daniel Lezcano wrote:
>>>
>>> On 02/15/2011 08:01 PM, Oleg Nesterov wrote:
>>>>
>>>> I have to admit, I can't say I like this very much. OK, if we need
>>>> this, can't we just put something into, say, signal->flags so that
>>>> copy_process can check and create the new namespace.
>>>>
>>>> Also. I remember, I already saw something like this and google found
>>>> my questions. I didn't actually read the new version, perhaps my
>>>> concerns were already answered...
>>>>
>>>> 	But what if the task T does unshare(CLONE_NEWPID) and then, say,
>>>> 	pthread_create() ? Unless I missed something, the new thread won't
>>>> 	be able to see T ?
>>>
>>> Right. Is it really a problem ? I mean it is a weird use case where we
>>> fall in a weird situation.
>>
>> But this is really weird! How it is possible that the parent can't see
>> its own child? No matter which thread did fork(), the new process is
>
> Hmmm... I guess you mean the opposite. The way pid namespaces are
> nested, parents always see their children.

Well, yes. But it can't see this child using the same pid number,
unless I missed something.

> But indeed, the child thread
> can't see its group leader and that's kind of unusual.

This too. And to me this is more "kind of buggy". But yes, I am
biased because I dislike this approach in general ;)

And, once again, this patch also lacks the necessary s/nsproxy/atcive_pid_ns/
changes.

Anyway. It is very possible I missed something. As I said, I didn't
actually read this version and I forgot all I knew about this change
before.

But afaics this patch is buggy in its current form.

Oleg.


  reply	other threads:[~2011-02-18 14:49 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-15 16:53 [PATCH 1/2] pidns: Don't allow new pids after the namespace is dead Daniel Lezcano
2011-02-15 16:53 ` [PATCH 2/2] pidns: Support unsharing the pid namespace Daniel Lezcano
2011-02-15 19:01   ` Oleg Nesterov
2011-02-15 19:15     ` [PATCH 0/1] Was: " Oleg Nesterov
     [not found]       ` <20110215191521.GB16707-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2011-02-15 19:17         ` [PATCH 1/1][3rd resend] sys_unshare: remove the dead CLONE_THREAD/SIGHAND/VM code Oleg Nesterov
2011-02-15 19:17       ` Oleg Nesterov
     [not found]         ` <20110215191711.GC16707-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2011-02-21  0:17           ` Serge E. Hallyn
2011-02-21  0:17         ` Serge E. Hallyn
     [not found]     ` <20110215190118.GA16707-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2011-02-15 19:15       ` [PATCH 0/1] Was: pidns: Support unsharing the pid namespace Oleg Nesterov
2011-02-16 23:47       ` [PATCH 2/2] " Daniel Lezcano
2011-02-16 23:47     ` Daniel Lezcano
2011-02-17 20:29       ` Oleg Nesterov
     [not found]         ` <20110217202959.GA16076-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2011-02-17 22:35           ` Greg Kurz
2011-02-17 22:35         ` Greg Kurz
2011-02-18 14:40           ` Oleg Nesterov [this message]
     [not found]           ` <4D5DA2CF.5010200-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2011-02-18 14:40             ` Oleg Nesterov
     [not found]       ` <4D5C6219.8060207-GANU6spQydw@public.gmane.org>
2011-02-17 20:29         ` Oleg Nesterov
2011-02-24  1:12   ` Rob Landley
     [not found]   ` <1297788824-20534-2-git-send-email-daniel.lezcano-GANU6spQydw@public.gmane.org>
2011-02-15 19:01     ` Oleg Nesterov
2011-02-24  1:12     ` Rob Landley
     [not found] ` <1297788824-20534-1-git-send-email-daniel.lezcano-GANU6spQydw@public.gmane.org>
2011-02-15 16:53   ` Daniel Lezcano
2011-02-15 18:30   ` [PATCH 1/2] pidns: Don't allow new pids after the namespace is dead Oleg Nesterov
2011-02-15 18:30 ` Oleg Nesterov
2011-02-16 23:21   ` Daniel Lezcano
2011-02-17 20:54     ` Oleg Nesterov
     [not found]     ` <4D5C5BE8.5020803-GANU6spQydw@public.gmane.org>
2011-02-17 20:54       ` Oleg Nesterov
     [not found]   ` <20110215183028.GA15568-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2011-02-16 23:21     ` Daniel Lezcano

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=20110218144019.GA29600@redhat.com \
    --to=oleg@redhat.com \
    --cc=akpm@linux-foundation.org \
    --cc=containers@lists.linux-foundation.org \
    --cc=daniel.lezcano@free.fr \
    --cc=ebiederm@xmission.com \
    --cc=gkurz@fr.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=xemul@openvz.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.