[lkml]   [2016]   [Oct]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] proc: fix NULL dereference when reading /proc/<pid>/auxv
On Wed 19-10-16 18:12:08, Oleg Nesterov wrote:
> 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".

What kind of application would break? Anything except for
/proc/self/$file has to handle ESRCH already.
Michal Hocko

 \ /
  Last update: 2016-10-19 18:18    [W:0.105 / U:0.908 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site