On Thu, Oct 23, 2014 at 06:47:45PM +0200, Jan Kara wrote: > 'curr' pointer in task_in_mem_cgroup() can be NULL when we race with > somebody clearing task->mm. Check for it before dereferencing the > pointer. If task->mm is already NULL, we fall back to mem_cgroup_from_task(), which definitely returns a memcg unless you pass NULL in there. So I don't see how that could happen, and the NULL checks in the fallback branch as well as in __mem_cgroup_same_or_subtree seem bogus to me. -- To unsubscribe from this list: send the line "unsubscribe cgroups" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html