Re: [patch] PID namespace design bug, workaround

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <sukadev@...>
Cc: Pavel Emelyanov <xemul@...>, Ulrich Drepper <drepper@...>, Andrew Morton <akpm@...>, Ingo Molnar <mingo@...>, Linus Torvalds <torvalds@...>, <linux-kernel@...>, Serge Hallyn <serue@...>, Oleg Nesterov <oleg@...>
Date: Sunday, November 4, 2007 - 3:17 am

sukadev@us.ibm.com writes:


Yes.  Getting all of the cross namespace cases working that we can is a
goal.  Currently I don't know if we can do better with the futexes that
have pids in the user/kernel ABI.  Plain futexes should be fine.

Implementation wise si_pid is a bit of a pain but we should have that
one sorted out shortly.  It is a well understood and we just need to get
the code right.

The pids in the sysvipc space should also be fairly simple to handle
just do a classic struct pid conversion.  And convert from struct pid
to a pid_t right at the user/kernel interface.

Unless I missed something we already properly handle giving people
usable pids from the tty layer.

Getting pids working properly for unix domain socket credential when
we cross pid namespaces is another case that needs a struct pid
conversion to get things working, but the kernel should be able to
do the right thing at that point.

In summary when pids are stored inside the kernel we have all of the
needed infrastructure with struct pid to handle doing the right
thing processes communicate between pid namespaces.

Right now we just need to go through every place in the kernel make
certain we haven't over looked something we can handle.  And there
are a lot of places where the kernel uses pids....

Eric
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch] PID namespace design bug, workaround, Ingo Molnar, (Thu Nov 1, 10:43 am)
Re: [patch] PID namespace design bug, workaround, Pavel Emelyanov, (Thu Nov 1, 11:02 am)
Re: [patch] PID namespace design bug, workaround, Ulrich Drepper, (Thu Nov 1, 10:53 am)
Re: [patch] PID namespace design bug, workaround, Ingo Molnar, (Thu Nov 1, 11:05 am)
Re: [patch] PID namespace design bug, workaround, Theodore Tso, (Thu Nov 1, 2:57 pm)
Re: [patch] PID namespace design bug, workaround, Ingo Molnar, (Thu Nov 1, 3:53 pm)
Re: [patch] PID namespace design bug, workaround, Ulrich Drepper, (Thu Nov 1, 8:23 pm)
Re: [patch] PID namespace design bug, workaround, Pavel Emelyanov, (Thu Nov 1, 10:51 am)
Re: [patch] PID namespace design bug, workaround, Ulrich Drepper, (Thu Nov 1, 10:56 am)
Re: [patch] PID namespace design bug, workaround, Dave Hansen, (Thu Nov 1, 12:12 pm)
Re: [patch] PID namespace design bug, workaround, Pavel Emelyanov, (Thu Nov 1, 11:05 am)
Re: [patch] PID namespace design bug, workaround, Ulrich Drepper, (Thu Nov 1, 8:21 pm)
Re: [patch] PID namespace design bug, workaround, Pavel Emelyanov, (Fri Nov 2, 3:55 am)
Re: [patch] PID namespace design bug, workaround, Andrew Morton, (Fri Nov 2, 4:04 am)
Re: [patch] PID namespace design bug, workaround, Dave Hansen, (Fri Nov 2, 1:30 pm)
Re: [patch] PID namespace design bug, workaround, Linus Torvalds, (Fri Nov 2, 1:39 pm)
Re: [patch] PID namespace design bug, workaround, Ingo Molnar, (Sat Nov 3, 4:12 pm)
Futexes and network filesystems., Er ic W. Biederman, (Tue Nov 20, 6:53 pm)
Re: Futexes and network filesystems., Kyle Moffett, (Wed Nov 21, 2:16 am)
Re: Futexes and network filesystems., Eric W. Biederman, (Wed Nov 21, 2:30 am)
Re: [patch] PID namespace design bug, workaround, Linus Torvalds, (Sat Nov 3, 6:40 pm)
Re: [patch] PID namespaces, Ingo Molnar, (Sun Nov 4, 6:38 am)
Re: [patch] PID namespaces, Denys Vlasenko, (Mon Nov 5, 10:47 am)
Re: [patch] PID namespaces, Dave Hansen, (Sun Nov 4, 4:12 pm)
Re: [patch] PID namespace design bug, workaround, Arjan van de Ven, (Sat Nov 3, 7:55 pm)
Re: [patch] PID namespace design bug, workaround, Nicholas Miell, (Sat Nov 3, 12:02 am)
Re: [patch] PID namespace design bug, workaround, Pavel Emelyanov, (Fri Nov 2, 4:14 am)
Re: [patch] PID namespace design bug, workaround, Ulrich Drepper, (Fri Nov 2, 10:05 am)
Re: [patch] PID namespace design bug, workaround, Pavel Emelyanov, (Fri Nov 2, 10:21 am)
Re: [patch] PID namespace design bug, workaround, Eric W. Biederman, (Sun Nov 4, 3:17 am)
Re: [patch] PID namespace design bug, workaround, Ulrich Drepper, (Fri Nov 2, 11:34 am)
Re: [patch] PID namespace design bug, workaround, Pavel Emelyanov, (Fri Nov 2, 11:58 am)
Re: [patch] PID namespace design bug, workaround, Ulrich Drepper, (Sat Nov 3, 12:34 am)
Re: [patch] PID namespace design bug, workaround, Pavel Emelyanov, (Tue Nov 6, 3:49 am)
Re: [patch] PID namespace design bug, workaround, Theodore Tso, (Fri Nov 2, 5:39 pm)
Re: [patch] PID namespace design bug, workaround, Peter Zijlstra, (Thu Nov 1, 10:56 am)
Re: [patch] PID namespace design bug, workaround, Pavel Emelyanov, (Thu Nov 1, 11:06 am)
Re: [patch] PID namespace design bug, workaround, Ingo Molnar, (Thu Nov 1, 11:17 am)
Re: [patch] PID namespace design bug, workaround, Pavel Emelyanov, (Thu Nov 1, 11:30 am)