On Thu, 1 Apr 2010 12:44:28 -0700 (PDT) David Rientjes <rientjes@xxxxxxxxxx> wrote: > dump_header() always requires tasklist_lock to be held because it calls > dump_tasks() which iterates through the tasklist. There are a few places > where this isn't maintained, so make sure tasklist_lock is always held > whenever calling dump_header(). > > This also fixes the pagefault case where oom_kill_process() is called on > current without tasklist_lock. It is necessary to hold a readlock for > both calling dump_header() and iterating its children. > > Reported-by: Oleg Nesterov <oleg@xxxxxxxxxx> > Signed-off-by: David Rientjes <rientjes@xxxxxxxxxx> Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx> -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxxx For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>