On Wed, 4 Dec 2013, Oleg Nesterov wrote: > find_lock_task_mm() expects it is called under rcu or tasklist lock, > but it seems that at least oom_unkillable_task()->task_in_mem_cgroup() > and mem_cgroup_out_of_memory()->oom_badness() can call it lockless. > > Perhaps we could fix the callers, but this patch simply adds rcu lock > into find_lock_task_mm(). This also allows to simplify a bit one of its > callers, oom_kill_process(). > > Signed-off-by: Oleg Nesterov <[email protected]>
Acked-by: David Rientjes <[email protected]> -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

