Re: fs/proc: Crash observed in next_tgid (fs/proc/base.c)

From: Oleg Nesterov
Date: Wed Apr 17 2019 - 07:21:52 EST


On 04/16, Kees Cook wrote:
>
> Do you have any hints on how to reproduce this? I assume something is
> missing proper locking or RCU handling,

or we simply have an unbalanced put_task_struct() anywhere else ...

> but I don't see anything
> obvious in the surrounding code yet...

I too do not see anything wrong in proc_pid_readdir() paths

Oleg.