diff options
| author | Nick Desaulniers <ndesaulniers@google.com> | 2016-09-12 15:47:42 -0700 |
|---|---|---|
| committer | Joey Rizzoli <joey@lineageos.org> | 2017-06-14 23:00:18 +0200 |
| commit | a32002d856e671e77a95c47b59174b28c82899ff (patch) | |
| tree | 96f75fbf1e8a06c23eeeb8e4b20b43bdb488f11f | |
| parent | d41bb15b39db97028b9f94bfbce046e40d8a6d88 (diff) | |
cgroup: prefer %pK to %p
Prevents leaking kernel pointers when using kptr_restrict.
Bug: 30149174
Change-Id: I0fa3cd8d4a0d9ea76d085bba6020f1eda073c09b
Git-repo: https://android.googlesource.com/kernel/msm.git
Git-commit: 505e48f32f1321ed7cf80d49dd5f31b16da445a8
Signed-off-by: Srinivasa Rao Kuppala <srkupp@codeaurora.org>
| -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 b6e3de20560..9362891c511 100644 --- a/kernel/cgroup.c +++ b/kernel/cgroup.c @@ -5216,7 +5216,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"); |
