All of lore.kernel.org
 help / color / mirror / Atom feed
* Namespaces exhausted CLONE_XXX bits problem
@ 2008-01-14 13:45 Pavel Emelyanov
       [not found] ` <478B6764.6050300-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org>
  0 siblings, 1 reply; 20+ messages in thread
From: Pavel Emelyanov @ 2008-01-14 13:45 UTC (permalink / raw)
  To: Cedric Le Goater, Serge Hallyn, Daniel Lezcano; +Cc: Linux Containers

Hi, guys!

I started looking at PTYs/TTYs/Console to make the appropriate
namespace and suddenly remembered that we have already
exhausted all the CLONE_ bits in 32-bit mask.

So, I recalled the discussions we had and saw the following 
proposals of how to track this problem (with their disadvantages):

1. make the clone2 system call with 64-bit mask
   - this is a new system call
2. re-use CLONE_STOPPED
   - this will give us only one bit
3. merge existing bits into one
   - we lose the ability to create them separately
4. implement a sys_unshare_ns system call with 64bit/arbitrary mask
   - this is anew system call
   - this will bring some dissymmetry between namespaces
5. use sys_indirect
   - this one is not in even -mm tree yet and it's questionable
     whether it will be at all

I have one more suggestion:

6. re-use bits, that don't make sense in sys_unshare (e.g.
   CLONE_STOPPED, CLONE_PARENT_SETTID, CLONE_VFORK etc)
   This will give us ~16 new bits, but this will look not very nice.

What do you think about all of this?

Thanks,
Pavel

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

end of thread, other threads:[~2008-01-15 15:51 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-14 13:45 Namespaces exhausted CLONE_XXX bits problem Pavel Emelyanov
     [not found] ` <478B6764.6050300-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org>
2008-01-14 14:44   ` Cedric Le Goater
     [not found]     ` <478B7549.2020000-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2008-01-14 14:50       ` Pavel Emelyanov
     [not found]         ` <478B76C4.8050804-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org>
2008-01-14 15:20           ` Cedric Le Goater
     [not found]             ` <478B7DB3.9050702-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2008-01-14 16:32               ` Serge E. Hallyn
     [not found]                 ` <20080114163246.GA31663-6s5zFf/epYLPQpwDFJZrxKsjOiXwFzmk@public.gmane.org>
2008-01-14 16:52                   ` Pavel Emelyanov
     [not found]                     ` <478B9345.30004-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org>
2008-01-14 18:07                       ` Serge E. Hallyn
     [not found]                         ` <20080114180748.GA2772-6s5zFf/epYLPQpwDFJZrxKsjOiXwFzmk@public.gmane.org>
2008-01-14 21:36                           ` Oren Laadan
     [not found]                             ` <478BD5CD.7030607-eQaUEPhvms7ENvBUuze7eA@public.gmane.org>
2008-01-14 21:54                               ` Dave Hansen
2008-01-15  8:25                                 ` Pavel Emelyanov
     [not found]                                   ` <478C6E14.1050901-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org>
2008-01-15  8:39                                     ` Cedric Le Goater
     [not found]                                       ` <478C7156.2090004-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2008-01-15  8:53                                         ` Pavel Emelyanov
     [not found]                                           ` <478C7493.8070405-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org>
2008-01-15  9:40                                             ` Cedric Le Goater
     [not found]                                               ` <478C7F95.6050800-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2008-01-15  9:57                                                 ` Pavel Emelyanov
2008-01-15  9:22                                     ` Dave Hansen
2008-01-15  9:24                                       ` Pavel Emelyanov
     [not found]                                         ` <478C7BD1.7040905-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org>
2008-01-15 15:08                                           ` Serge E. Hallyn
     [not found]                                             ` <20080115150806.GH4453-6s5zFf/epYLPQpwDFJZrxKsjOiXwFzmk@public.gmane.org>
2008-01-15 15:51                                               ` Cedric Le Goater
2008-01-15  7:53                   ` Cedric Le Goater
     [not found]                     ` <478C665C.80106-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2008-01-15 14:35                       ` Serge E. Hallyn

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.