From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Serge E. Hallyn" Subject: Re: [RFC][v3][PATCH 7/7] Define clone_with_pids syscall Date: Mon, 1 Jun 2009 12:19:43 -0500 Message-ID: <20090601171943.GA23878@us.ibm.com> References: <20090530235714.GA4083@us.ibm.com> <20090531000350.GF4191@us.ibm.com> <20090601151650.GA20295@us.ibm.com> <4A240213.70001@cs.columbia.edu> <20090601164232.GA23252@us.ibm.com> <4A2407B2.8030304@cs.columbia.edu> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <4A2407B2.8030304-eQaUEPhvms7ENvBUuze7eA@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Oren Laadan Cc: Containers , Sukadev Bhattiprolu , "David C. Hansen" List-Id: containers.vger.kernel.org Quoting Oren Laadan (orenl-eQaUEPhvms7ENvBUuze7eA@public.gmane.org): > > One last thought - should there be an explicit check to make sure that > > if CLONE_NEWPID, then at the end pid[knum_pids+1] = 0? Or is that > > there and I just missed it? > > the wonders of kzalloc() ... No. I'm saying that I don't see anything stopping the user from doing CLONE_NEWPID while specifying an extra pid, so that they end up trying to create a pidns init with vpid 5 -serge