diff options
author | Nick Desaulniers <ndesaulniers@google.com> | 2016-09-13 11:11:03 -0700 |
---|---|---|
committer | Mark Salyzyn <salyzyn@google.com> | 2016-09-19 15:23:34 -0700 |
commit | d11e05b186503b96103378090fda14e518b37005 (patch) | |
tree | 733d38c37e5a19ff77f2fdf69b3d664eca85b350 | |
parent | fac16f6ba80877be20ff38fbcaaa9952851aefb9 (diff) | |
download | tegra-d11e05b186503b96103378090fda14e518b37005.tar.gz |
cgroup: prefer %pK to %p
Prevents leaking kernel pointers when using kptr_restrict.
Bug: 30149174
Change-Id: I76d4132a0f47f4b0a9f042b8269e0f24edd111ed
-rw-r--r-- | kernel/cgroup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/cgroup.c b/kernel/cgroup.c index 7f26b05303e0..00eb7bfd278d 100644 --- a/kernel/cgroup.c +++ b/kernel/cgroup.c @@ -5468,7 +5468,7 @@ static int cgroup_css_links_read(struct cgroup *cont, struct css_set *cg = link->cg; struct task_struct *task; int count = 0; - seq_printf(seq, "css_set %p\n", cg); + seq_printf(seq, "css_set %pK\n", cg); list_for_each_entry(task, &cg->tasks, cg_list) { if (count++ > MAX_TASKS_SHOWN_PER_CSS) { seq_puts(seq, " ...\n"); |