Re: [PATCH 1/2] fs/lock: skip lock owner pid translation in case we are in init_pid_ns

2018-06-11 Thread Andrey Vagin
On Fri, Jun 08, 2018 at 05:27:11PM +0300, Konstantin Khorenko wrote: > If the flock owner process is dead and its pid has been already freed, > pid translation won't work, but we still want to show flock owner pid > number when expecting /proc/$PID/fdinfo/$FD in init pidns. > > Reproducer: > proce

[PATCH 1/2] fs/lock: skip lock owner pid translation in case we are in init_pid_ns

2018-06-08 Thread Konstantin Khorenko
If the flock owner process is dead and its pid has been already freed, pid translation won't work, but we still want to show flock owner pid number when expecting /proc/$PID/fdinfo/$FD in init pidns. Reproducer: process A process A1 process A2 fork()-> exit() open()