]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - mm/oom_kill.c
CRED: Use RCU to access another task's creds and to release a task's own creds
[mirror_ubuntu-bionic-kernel.git] / mm / oom_kill.c
index 3af787ba2077f1db1316048dc4dce011f663c5c4..0e0b282a2073e97f7d575246a20d90326bc4e937 100644 (file)
@@ -298,9 +298,9 @@ static void dump_tasks(const struct mem_cgroup *mem)
 
                task_lock(p);
                printk(KERN_INFO "[%5d] %5d %5d %8lu %8lu %3d     %3d %s\n",
-                      p->pid, p->cred->uid, p->tgid, p->mm->total_vm,
-                      get_mm_rss(p->mm), (int)task_cpu(p), p->oomkilladj,
-                      p->comm);
+                      p->pid, __task_cred(p)->uid, p->tgid,
+                      p->mm->total_vm, get_mm_rss(p->mm), (int)task_cpu(p),
+                      p->oomkilladj, p->comm);
                task_unlock(p);
        } while_each_thread(g, p);
 }