Re: Threads stuck in zap_pid_ns_processes()

2017-06-01 Thread Eric W. Biederman
Guenter Roeck writes: > On Thu, Jun 01, 2017 at 02:36:38PM -0500, Eric W. Biederman wrote: >> Guenter Roeck writes: >> >> > On Thu, Jun 01, 2017 at 12:08:58PM -0500, Eric W. Biederman wrote: >> >> Guenter Roeck writes: >> >> > >> >>

Re: Threads stuck in zap_pid_ns_processes()

2017-06-01 Thread Eric W. Biederman
Guenter Roeck writes: > On Thu, Jun 01, 2017 at 02:36:38PM -0500, Eric W. Biederman wrote: >> Guenter Roeck writes: >> >> > On Thu, Jun 01, 2017 at 12:08:58PM -0500, Eric W. Biederman wrote: >> >> Guenter Roeck writes: >> >> > >> >> > I think you nailed it. If I drop CLONE_NEWPID from the

Re: Threads stuck in zap_pid_ns_processes()

2017-06-01 Thread Guenter Roeck
On Thu, Jun 01, 2017 at 02:36:38PM -0500, Eric W. Biederman wrote: > Guenter Roeck writes: > > > On Thu, Jun 01, 2017 at 12:08:58PM -0500, Eric W. Biederman wrote: > >> Guenter Roeck writes: > >> > > >> > I think you nailed it. If I drop CLONE_NEWPID from

Re: Threads stuck in zap_pid_ns_processes()

2017-06-01 Thread Guenter Roeck
On Thu, Jun 01, 2017 at 02:36:38PM -0500, Eric W. Biederman wrote: > Guenter Roeck writes: > > > On Thu, Jun 01, 2017 at 12:08:58PM -0500, Eric W. Biederman wrote: > >> Guenter Roeck writes: > >> > > >> > I think you nailed it. If I drop CLONE_NEWPID from the reproducer I get > >> > a zombie

Re: Threads stuck in zap_pid_ns_processes()

2017-06-01 Thread Eric W. Biederman
Guenter Roeck writes: > On Thu, Jun 01, 2017 at 12:08:58PM -0500, Eric W. Biederman wrote: >> Guenter Roeck writes: >> > >> > I think you nailed it. If I drop CLONE_NEWPID from the reproducer I get >> > a zombie process. >> > >> > I guess the only

Re: Threads stuck in zap_pid_ns_processes()

2017-06-01 Thread Eric W. Biederman
Guenter Roeck writes: > On Thu, Jun 01, 2017 at 12:08:58PM -0500, Eric W. Biederman wrote: >> Guenter Roeck writes: >> > >> > I think you nailed it. If I drop CLONE_NEWPID from the reproducer I get >> > a zombie process. >> > >> > I guess the only question left is if zap_pid_ns_processes()

Re: Threads stuck in zap_pid_ns_processes()

2017-06-01 Thread Guenter Roeck
On Thu, Jun 01, 2017 at 12:08:58PM -0500, Eric W. Biederman wrote: > Guenter Roeck writes: > > > > I think you nailed it. If I drop CLONE_NEWPID from the reproducer I get > > a zombie process. > > > > I guess the only question left is if zap_pid_ns_processes() should (or > >

Re: Threads stuck in zap_pid_ns_processes()

2017-06-01 Thread Guenter Roeck
On Thu, Jun 01, 2017 at 12:08:58PM -0500, Eric W. Biederman wrote: > Guenter Roeck writes: > > > > I think you nailed it. If I drop CLONE_NEWPID from the reproducer I get > > a zombie process. > > > > I guess the only question left is if zap_pid_ns_processes() should (or > > could) > > somehow

Re: Threads stuck in zap_pid_ns_processes()

2017-06-01 Thread Eric W. Biederman
Guenter Roeck writes: > > I think you nailed it. If I drop CLONE_NEWPID from the reproducer I get > a zombie process. > > I guess the only question left is if zap_pid_ns_processes() should (or could) > somehow detect that situation and return instead of waiting forever. > What

Re: Threads stuck in zap_pid_ns_processes()

2017-06-01 Thread Eric W. Biederman
Guenter Roeck writes: > > I think you nailed it. If I drop CLONE_NEWPID from the reproducer I get > a zombie process. > > I guess the only question left is if zap_pid_ns_processes() should (or could) > somehow detect that situation and return instead of waiting forever. > What do you think ? Any

Re: Threads stuck in zap_pid_ns_processes()

2017-05-13 Thread Eric W. Biederman
Guenter Roeck writes: > On 05/12/2017 01:03 PM, Eric W. Biederman wrote: >> Guenter Roeck writes: >> >>> Hi Eric, >>> >>> On Fri, May 12, 2017 at 12:33:01PM -0500, Eric W. Biederman wrote: Guenter Roeck writes: > Hi

Re: Threads stuck in zap_pid_ns_processes()

2017-05-13 Thread Eric W. Biederman
Guenter Roeck writes: > On 05/12/2017 01:03 PM, Eric W. Biederman wrote: >> Guenter Roeck writes: >> >>> Hi Eric, >>> >>> On Fri, May 12, 2017 at 12:33:01PM -0500, Eric W. Biederman wrote: Guenter Roeck writes: > Hi Eric, > > On Fri, May 12, 2017 at 08:26:27AM -0500, Eric

Re: Threads stuck in zap_pid_ns_processes()

2017-05-13 Thread Guenter Roeck
On 05/12/2017 01:03 PM, Eric W. Biederman wrote: Guenter Roeck writes: Hi Eric, On Fri, May 12, 2017 at 12:33:01PM -0500, Eric W. Biederman wrote: Guenter Roeck writes: Hi Eric, On Fri, May 12, 2017 at 08:26:27AM -0500, Eric W. Biederman wrote:

Re: Threads stuck in zap_pid_ns_processes()

2017-05-13 Thread Guenter Roeck
On 05/12/2017 01:03 PM, Eric W. Biederman wrote: Guenter Roeck writes: Hi Eric, On Fri, May 12, 2017 at 12:33:01PM -0500, Eric W. Biederman wrote: Guenter Roeck writes: Hi Eric, On Fri, May 12, 2017 at 08:26:27AM -0500, Eric W. Biederman wrote: Vovo Yang writes: On Fri, May 12, 2017

Re: Threads stuck in zap_pid_ns_processes()

2017-05-12 Thread Eric W. Biederman
Guenter Roeck writes: > Hi Eric, > > On Fri, May 12, 2017 at 12:33:01PM -0500, Eric W. Biederman wrote: >> Guenter Roeck writes: >> >> > Hi Eric, >> > >> > On Fri, May 12, 2017 at 08:26:27AM -0500, Eric W. Biederman wrote: >> >> Vovo Yang

Re: Threads stuck in zap_pid_ns_processes()

2017-05-12 Thread Eric W. Biederman
Guenter Roeck writes: > Hi Eric, > > On Fri, May 12, 2017 at 12:33:01PM -0500, Eric W. Biederman wrote: >> Guenter Roeck writes: >> >> > Hi Eric, >> > >> > On Fri, May 12, 2017 at 08:26:27AM -0500, Eric W. Biederman wrote: >> >> Vovo Yang writes: >> >> >> >> > On Fri, May 12, 2017 at 7:19

Re: Threads stuck in zap_pid_ns_processes()

2017-05-12 Thread Guenter Roeck
Hi Eric, On Fri, May 12, 2017 at 12:33:01PM -0500, Eric W. Biederman wrote: > Guenter Roeck writes: > > > Hi Eric, > > > > On Fri, May 12, 2017 at 08:26:27AM -0500, Eric W. Biederman wrote: > >> Vovo Yang writes: > >> > >> > On Fri, May 12, 2017 at 7:19

Re: Threads stuck in zap_pid_ns_processes()

2017-05-12 Thread Guenter Roeck
Hi Eric, On Fri, May 12, 2017 at 12:33:01PM -0500, Eric W. Biederman wrote: > Guenter Roeck writes: > > > Hi Eric, > > > > On Fri, May 12, 2017 at 08:26:27AM -0500, Eric W. Biederman wrote: > >> Vovo Yang writes: > >> > >> > On Fri, May 12, 2017 at 7:19 AM, Eric W. Biederman > >> > wrote: >

Re: Threads stuck in zap_pid_ns_processes()

2017-05-12 Thread Eric W. Biederman
Guenter Roeck writes: > Hi Eric, > > On Fri, May 12, 2017 at 08:26:27AM -0500, Eric W. Biederman wrote: >> Vovo Yang writes: >> >> > On Fri, May 12, 2017 at 7:19 AM, Eric W. Biederman >> > wrote: >> >> Guenter Roeck

Re: Threads stuck in zap_pid_ns_processes()

2017-05-12 Thread Eric W. Biederman
Guenter Roeck writes: > Hi Eric, > > On Fri, May 12, 2017 at 08:26:27AM -0500, Eric W. Biederman wrote: >> Vovo Yang writes: >> >> > On Fri, May 12, 2017 at 7:19 AM, Eric W. Biederman >> > wrote: >> >> Guenter Roeck writes: >> >> >> >>> What I know so far is >> >>> - We see this condition on

Re: Threads stuck in zap_pid_ns_processes()

2017-05-12 Thread Guenter Roeck
Hi Eric, On Fri, May 12, 2017 at 08:26:27AM -0500, Eric W. Biederman wrote: > Vovo Yang writes: > > > On Fri, May 12, 2017 at 7:19 AM, Eric W. Biederman > > wrote: > >> Guenter Roeck writes: > >> > >>> What I know so far is > >>> -

Re: Threads stuck in zap_pid_ns_processes()

2017-05-12 Thread Guenter Roeck
Hi Eric, On Fri, May 12, 2017 at 08:26:27AM -0500, Eric W. Biederman wrote: > Vovo Yang writes: > > > On Fri, May 12, 2017 at 7:19 AM, Eric W. Biederman > > wrote: > >> Guenter Roeck writes: > >> > >>> What I know so far is > >>> - We see this condition on a regular basis in the field.

Re: Threads stuck in zap_pid_ns_processes()

2017-05-12 Thread Eric W. Biederman
Vovo Yang writes: > On Fri, May 12, 2017 at 7:19 AM, Eric W. Biederman > wrote: >> Guenter Roeck writes: >> >>> What I know so far is >>> - We see this condition on a regular basis in the field. Regular is >>> relative, of course -

Re: Threads stuck in zap_pid_ns_processes()

2017-05-12 Thread Eric W. Biederman
Vovo Yang writes: > On Fri, May 12, 2017 at 7:19 AM, Eric W. Biederman > wrote: >> Guenter Roeck writes: >> >>> What I know so far is >>> - We see this condition on a regular basis in the field. Regular is >>> relative, of course - let's say maybe 1 in a Milion Chromebooks >>> per day

Re: Threads stuck in zap_pid_ns_processes()

2017-05-12 Thread Vovo Yang
On Fri, May 12, 2017 at 7:19 AM, Eric W. Biederman wrote: > Guenter Roeck writes: > >> On Thu, May 11, 2017 at 04:25:23PM -0500, Eric W. Biederman wrote: >>> Guenter Roeck writes: >>> >>> > On Thu, May 11, 2017 at 12:31:21PM -0500,

Re: Threads stuck in zap_pid_ns_processes()

2017-05-12 Thread Vovo Yang
On Fri, May 12, 2017 at 7:19 AM, Eric W. Biederman wrote: > Guenter Roeck writes: > >> On Thu, May 11, 2017 at 04:25:23PM -0500, Eric W. Biederman wrote: >>> Guenter Roeck writes: >>> >>> > On Thu, May 11, 2017 at 12:31:21PM -0500, Eric W. Biederman wrote: >>> >> Guenter Roeck writes: >>> >>

Re: Threads stuck in zap_pid_ns_processes()

2017-05-11 Thread Eric W. Biederman
Guenter Roeck writes: > On Thu, May 11, 2017 at 04:25:23PM -0500, Eric W. Biederman wrote: >> Guenter Roeck writes: >> > As an add-on to my previous mail: I added a function to count >> > the number of threads in the pid namespace, using next_pidmap().

Re: Threads stuck in zap_pid_ns_processes()

2017-05-11 Thread Eric W. Biederman
Guenter Roeck writes: > On Thu, May 11, 2017 at 04:25:23PM -0500, Eric W. Biederman wrote: >> Guenter Roeck writes: >> > As an add-on to my previous mail: I added a function to count >> > the number of threads in the pid namespace, using next_pidmap(). >> > Even though nr_hashed == 2, only the

Re: Threads stuck in zap_pid_ns_processes()

2017-05-11 Thread Eric W. Biederman
Guenter Roeck writes: > On Thu, May 11, 2017 at 04:25:23PM -0500, Eric W. Biederman wrote: >> Guenter Roeck writes: >> >> > On Thu, May 11, 2017 at 12:31:21PM -0500, Eric W. Biederman wrote: >> >> Guenter Roeck writes: >> >> >> >> >

Re: Threads stuck in zap_pid_ns_processes()

2017-05-11 Thread Eric W. Biederman
Guenter Roeck writes: > On Thu, May 11, 2017 at 04:25:23PM -0500, Eric W. Biederman wrote: >> Guenter Roeck writes: >> >> > On Thu, May 11, 2017 at 12:31:21PM -0500, Eric W. Biederman wrote: >> >> Guenter Roeck writes: >> >> >> >> > Hi all, >> >> > >> >> > the test program attached below

Re: Threads stuck in zap_pid_ns_processes()

2017-05-11 Thread Guenter Roeck
On Thu, May 11, 2017 at 04:25:23PM -0500, Eric W. Biederman wrote: > Guenter Roeck writes: > > > On Thu, May 11, 2017 at 12:31:21PM -0500, Eric W. Biederman wrote: > >> Guenter Roeck writes: > >> > >> > Hi all, > >> > > >> > the test program attached

Re: Threads stuck in zap_pid_ns_processes()

2017-05-11 Thread Guenter Roeck
On Thu, May 11, 2017 at 04:25:23PM -0500, Eric W. Biederman wrote: > Guenter Roeck writes: > > > On Thu, May 11, 2017 at 12:31:21PM -0500, Eric W. Biederman wrote: > >> Guenter Roeck writes: > >> > >> > Hi all, > >> > > >> > the test program attached below almost always results in one of the

Re: Threads stuck in zap_pid_ns_processes()

2017-05-11 Thread Eric W. Biederman
Guenter Roeck writes: > On Thu, May 11, 2017 at 03:23:17PM -0500, Eric W. Biederman wrote: >> Guenter Roeck writes: >> >> > On Thu, May 11, 2017 at 12:31:21PM -0500, Eric W. Biederman wrote: >> >> Guenter Roeck writes: >> >> >> >> >

Re: Threads stuck in zap_pid_ns_processes()

2017-05-11 Thread Eric W. Biederman
Guenter Roeck writes: > On Thu, May 11, 2017 at 03:23:17PM -0500, Eric W. Biederman wrote: >> Guenter Roeck writes: >> >> > On Thu, May 11, 2017 at 12:31:21PM -0500, Eric W. Biederman wrote: >> >> Guenter Roeck writes: >> >> >> >> > Hi all, >> >> > >> >> > the test program attached below

Re: Threads stuck in zap_pid_ns_processes()

2017-05-11 Thread Eric W. Biederman
Guenter Roeck writes: > On Thu, May 11, 2017 at 12:31:21PM -0500, Eric W. Biederman wrote: >> Guenter Roeck writes: >> >> > Hi all, >> > >> > the test program attached below almost always results in one of the child >> > processes being stuck in

Re: Threads stuck in zap_pid_ns_processes()

2017-05-11 Thread Eric W. Biederman
Guenter Roeck writes: > On Thu, May 11, 2017 at 12:31:21PM -0500, Eric W. Biederman wrote: >> Guenter Roeck writes: >> >> > Hi all, >> > >> > the test program attached below almost always results in one of the child >> > processes being stuck in zap_pid_ns_processes(). When this happens, I can

Re: Threads stuck in zap_pid_ns_processes()

2017-05-11 Thread Guenter Roeck
On Thu, May 11, 2017 at 03:23:17PM -0500, Eric W. Biederman wrote: > Guenter Roeck writes: > > > On Thu, May 11, 2017 at 12:31:21PM -0500, Eric W. Biederman wrote: > >> Guenter Roeck writes: > >> > >> > Hi all, > >> > > >> > the test program attached

Re: Threads stuck in zap_pid_ns_processes()

2017-05-11 Thread Guenter Roeck
On Thu, May 11, 2017 at 03:23:17PM -0500, Eric W. Biederman wrote: > Guenter Roeck writes: > > > On Thu, May 11, 2017 at 12:31:21PM -0500, Eric W. Biederman wrote: > >> Guenter Roeck writes: > >> > >> > Hi all, > >> > > >> > the test program attached below almost always results in one of the

Re: Threads stuck in zap_pid_ns_processes()

2017-05-11 Thread Eric W. Biederman
Guenter Roeck writes: > On Thu, May 11, 2017 at 12:31:21PM -0500, Eric W. Biederman wrote: >> Guenter Roeck writes: >> >> > Hi all, >> > >> > the test program attached below almost always results in one of the child >> > processes being stuck in

Re: Threads stuck in zap_pid_ns_processes()

2017-05-11 Thread Eric W. Biederman
Guenter Roeck writes: > On Thu, May 11, 2017 at 12:31:21PM -0500, Eric W. Biederman wrote: >> Guenter Roeck writes: >> >> > Hi all, >> > >> > the test program attached below almost always results in one of the child >> > processes being stuck in zap_pid_ns_processes(). When this happens, I can

Re: Threads stuck in zap_pid_ns_processes()

2017-05-11 Thread Guenter Roeck
On Thu, May 11, 2017 at 12:31:21PM -0500, Eric W. Biederman wrote: > Guenter Roeck writes: > > > Hi all, > > > > the test program attached below almost always results in one of the child > > processes being stuck in zap_pid_ns_processes(). When this happens, I can > > see

Re: Threads stuck in zap_pid_ns_processes()

2017-05-11 Thread Guenter Roeck
On Thu, May 11, 2017 at 12:31:21PM -0500, Eric W. Biederman wrote: > Guenter Roeck writes: > > > Hi all, > > > > the test program attached below almost always results in one of the child > > processes being stuck in zap_pid_ns_processes(). When this happens, I can > > see from test logs that

Re: Threads stuck in zap_pid_ns_processes()

2017-05-11 Thread Guenter Roeck
On Thu, May 11, 2017 at 12:31:21PM -0500, Eric W. Biederman wrote: > Guenter Roeck writes: > > > Hi all, > > > > the test program attached below almost always results in one of the child > > processes being stuck in zap_pid_ns_processes(). When this happens, I can > > see

Re: Threads stuck in zap_pid_ns_processes()

2017-05-11 Thread Guenter Roeck
On Thu, May 11, 2017 at 12:31:21PM -0500, Eric W. Biederman wrote: > Guenter Roeck writes: > > > Hi all, > > > > the test program attached below almost always results in one of the child > > processes being stuck in zap_pid_ns_processes(). When this happens, I can > > see from test logs that

Re: Threads stuck in zap_pid_ns_processes()

2017-05-11 Thread Eric W. Biederman
Guenter Roeck writes: > Hi all, > > the test program attached below almost always results in one of the child > processes being stuck in zap_pid_ns_processes(). When this happens, I can > see from test logs that nr_hashed == 2 and init_pids==1, but there is only > a single

Re: Threads stuck in zap_pid_ns_processes()

2017-05-11 Thread Eric W. Biederman
Guenter Roeck writes: > Hi all, > > the test program attached below almost always results in one of the child > processes being stuck in zap_pid_ns_processes(). When this happens, I can > see from test logs that nr_hashed == 2 and init_pids==1, but there is only > a single thread left in the pid

Threads stuck in zap_pid_ns_processes()

2017-05-11 Thread Guenter Roeck
Hi all, the test program attached below almost always results in one of the child processes being stuck in zap_pid_ns_processes(). When this happens, I can see from test logs that nr_hashed == 2 and init_pids==1, but there is only a single thread left in the pid namespace (the one that is stuck).

Threads stuck in zap_pid_ns_processes()

2017-05-11 Thread Guenter Roeck
Hi all, the test program attached below almost always results in one of the child processes being stuck in zap_pid_ns_processes(). When this happens, I can see from test logs that nr_hashed == 2 and init_pids==1, but there is only a single thread left in the pid namespace (the one that is stuck).