Re: A couple of OOM killer races

2005-09-07 Thread Coywolf Qi Hunt
On 9/2/05, Richard Hayden <[EMAIL PROTECTED]> wrote: > Hi all, > > It appears there is no protection in badness() (called by > out_of_memory() for each process) when it reads p->mm->total_vm. Another > processor (or a kernel preemption) could presumably run do_exit and then > exit_mm, freeing the

Re: A couple of OOM killer races

2005-09-01 Thread Zhou Yingchao
On 9/2/05, Richard Hayden <[EMAIL PROTECTED]> wrote: > Hi all, > > It appears there is no protection in badness() (called by > out_of_memory() for each process) when it reads p->mm->total_vm. Another > processor (or a kernel preemption) could presumably run do_exit and then > exit_mm, freeing the

A couple of OOM killer races

2005-09-01 Thread Richard Hayden
Hi all, It appears there is no protection in badness() (called by out_of_memory() for each process) when it reads p->mm->total_vm. Another processor (or a kernel preemption) could presumably run do_exit and then exit_mm, freeing the process in question's reference to its mm just after the (!p