Re: proc race (was: Re: HIGH MEMORY access)

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Thu Apr 13 2000 - 16:09:40 EST


> do_exit() calls __exit_mm() before task_lock(), and __exit_mm() sets
> tsk->mm to NULL before acquiring task_lock().
>
> How should we fix that? With start_lazy_tlb() [kernel/exit.c], it's
> possible to construct all kind of weird races.

I think _exit_mm() needs to swap the mm a pointer to the task 0 mm, instead
of NULL. Then all the weird cases go away

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



This archive was generated by hypermail 2b29 : Sat Apr 15 2000 - 21:00:22 EST