Skip to content

Commit b6a6759

Browse files
keeshtejun
authored andcommitted
cgroups: censor kernel pointer in debug files
As found in grsecurity, this avoids exposing a kernel pointer through the cgroup debug entries. Signed-off-by: Kees Cook <[email protected]> Signed-off-by: Tejun Heo <[email protected]>
1 parent 1d18c27 commit b6a6759

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/cgroup/cgroup-v1.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1329,7 +1329,7 @@ static int cgroup_css_links_read(struct seq_file *seq, void *v)
13291329
struct task_struct *task;
13301330
int count = 0;
13311331

1332-
seq_printf(seq, "css_set %p\n", cset);
1332+
seq_printf(seq, "css_set %pK\n", cset);
13331333

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

0 commit comments

Comments
 (0)