# Re: KASAN: use-after-free Read in task\_is\_descendant

- From: Oleg Nesterov \<oleg@redhat.com\>
- Date: 2018-10-25 13:01:36 
- List: linux-security-module
- Page: https://ratatoskr.run/linux-security-module/2018/10/5416042
- Thread: https://ratatoskr.run/linux-security-module/2018/10/5413381/t.md

```text
On 10/25, Oleg Nesterov wrote:
>
> As I said below, please ignore ptracer_exception_found(), another caller for now,
> perhaps it needs some changes too. I even have a vague feeling that I have already
> blamed this function some time ago...

Heh, yes, 3 years ago ;)

https://lore.kernel.org/lkml/20150106184427.GA18153@redhat.com/

I can't understand my email today, but note that I tried to point out that
task_is_descendant() can dereference the freed mem.

And yes, task_is_descendant() is overcompicated for no reason, afaics.

Oleg.

```
