Re: [PATCH] proc: fix NULL dereference when reading /proc/<pid>/auxv

From: Oleg Nesterov
Date: Wed Oct 19 2016 - 12:13:42 EST


On 10/19, Michal Hocko wrote:
>
> Why would we even want to open that file if there is no mm struct?

Agreed this is strange, but I am not sure we can change this old
behaviour. Say, cat /proc/$pid-of-kthread/mem doesn't fail, it shows
the "empty mm".

Oleg.