Skip to content

Commit

Permalink
cgroups: censor kernel pointer in debug files
Browse files Browse the repository at this point in the history
As found in grsecurity, this avoids exposing a kernel pointer through
the cgroup debug entries.

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
  • Loading branch information
Kees Cook authored and Tejun Heo committed Mar 6, 2017
1 parent 1d18c27 commit b6a6759
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/cgroup/cgroup-v1.c
Original file line number Diff line number Diff line change
Expand Up @@ -1329,7 +1329,7 @@ static int cgroup_css_links_read(struct seq_file *seq, void *v)
struct task_struct *task;
int count = 0;

seq_printf(seq, "css_set %p\n", cset);
seq_printf(seq, "css_set %pK\n", cset);

list_for_each_entry(task, &cset->tasks, cg_list) {
if (count++ > MAX_TASKS_SHOWN_PER_CSS)
Expand Down

0 comments on commit b6a6759

Please sign in to comment.