Re: [PATCH] fix send_sigqueue() vs thread exit race

From: Thomas Gleixner
Date: Sun Aug 21 2005 - 07:40:10 EST


On Sun, 2005-08-21 at 14:41 +0400, Oleg Nesterov wrote:
> If not:
>
> > timer event
> > timr->it_process references a freed structure
> >
>
> No, create_timer() does get_task_struct(timr->it_process), this
> task may be EXIT_DEAD now, but the task_struct itself is valid,
> and it's ->flags has PF_EXITING flag.

Right, did not think about that.

tglx


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/