Re: uprobes/perf: KASAN: use-after-free in uprobe_perf_close

From: Peter Zijlstra
Date: Thu Feb 22 2018 - 12:10:10 EST


On Thu, Feb 22, 2018 at 06:04:27PM +0100, Peter Zijlstra wrote:
> On Thu, Feb 22, 2018 at 05:37:15PM +0100, Oleg Nesterov wrote:

> > This all makes me think that we should change (fix) kernel/events/core.c...
>
> That's going to be mighty dodgy though, holding a reference on the task
> will avoid the task from dying which will avoid the events from being
> destroyed which will avoid the task from dying which will... if you get
> my drift :-)

Hmm, it might not be all that bad.. I need to re-read some of that code.