Re: doublefault debugging (was Re: Linux v2.5.62 --- spontaneous

Ingo Molnar (mingo@elte.hu)
Thu, 20 Feb 2003 20:53:48 +0100 (CET)


On Thu, 20 Feb 2003, Ingo Molnar wrote:

> hm, i think i can see the SMP race.
>
> the last put_task_struct() can also be done by procfs - and nothing
> keeps it from freeing the task in __put_task_struct(), while the task
> struct is after its final put_task_struct(), but before the switch_to().

this race is correctly solved by moving the wait_task_inactive() from
release_task() into the tsk != current branch of __free_task_struct().

Ingo

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