All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] cgroups: censor kernel pointer in debug files
@ 2017-02-25  9:56 ` Kees Cook
  0 siblings, 0 replies; 5+ messages in thread
From: Kees Cook @ 2017-02-25  9:56 UTC (permalink / raw)
  To: Tejun Heo
  Cc: Li Zefan, Johannes Weiner, cgroups, linux-kernel, kernel-hardening

As found in grsecurity, this avoids exposing a kernel pointer through
the cgroup debug entries.

Signed-off-by: Kees Cook <keescook@chromium.org>
---
 kernel/cgroup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/cgroup.c b/kernel/cgroup.c
index 53bbca7c4859..b794bcadefa4 100644
--- a/kernel/cgroup.c
+++ b/kernel/cgroup.c
@@ -6589,7 +6589,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)
-- 
2.7.4


-- 
Kees Cook
Pixel Security

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [kernel-hardening] [PATCH] cgroups: censor kernel pointer in debug files
@ 2017-02-25  9:56 ` Kees Cook
  0 siblings, 0 replies; 5+ messages in thread
From: Kees Cook @ 2017-02-25  9:56 UTC (permalink / raw)
  To: Tejun Heo
  Cc: Li Zefan, Johannes Weiner, cgroups, linux-kernel, kernel-hardening

As found in grsecurity, this avoids exposing a kernel pointer through
the cgroup debug entries.

Signed-off-by: Kees Cook <keescook@chromium.org>
---
 kernel/cgroup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/cgroup.c b/kernel/cgroup.c
index 53bbca7c4859..b794bcadefa4 100644
--- a/kernel/cgroup.c
+++ b/kernel/cgroup.c
@@ -6589,7 +6589,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)
-- 
2.7.4


-- 
Kees Cook
Pixel Security

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] cgroups: censor kernel pointer in debug files
  2017-02-25  9:56 ` [kernel-hardening] " Kees Cook
  (?)
@ 2017-03-06 20:16   ` Tejun Heo
  -1 siblings, 0 replies; 5+ messages in thread
From: Tejun Heo @ 2017-03-06 20:16 UTC (permalink / raw)
  To: Kees Cook
  Cc: Li Zefan, Johannes Weiner, cgroups, linux-kernel, kernel-hardening

On Sat, Feb 25, 2017 at 01:56:48AM -0800, Kees Cook wrote:
> As found in grsecurity, this avoids exposing a kernel pointer through
> the cgroup debug entries.
> 
> Signed-off-by: Kees Cook <keescook@chromium.org>

Applied to cgroup/for-4.11-fixes.

Thanks.

-- 
tejun

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [kernel-hardening] Re: [PATCH] cgroups: censor kernel pointer in debug files
@ 2017-03-06 20:16   ` Tejun Heo
  0 siblings, 0 replies; 5+ messages in thread
From: Tejun Heo @ 2017-03-06 20:16 UTC (permalink / raw)
  To: Kees Cook
  Cc: Li Zefan, Johannes Weiner, cgroups, linux-kernel, kernel-hardening

On Sat, Feb 25, 2017 at 01:56:48AM -0800, Kees Cook wrote:
> As found in grsecurity, this avoids exposing a kernel pointer through
> the cgroup debug entries.
> 
> Signed-off-by: Kees Cook <keescook@chromium.org>

Applied to cgroup/for-4.11-fixes.

Thanks.

-- 
tejun

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] cgroups: censor kernel pointer in debug files
@ 2017-03-06 20:16   ` Tejun Heo
  0 siblings, 0 replies; 5+ messages in thread
From: Tejun Heo @ 2017-03-06 20:16 UTC (permalink / raw)
  To: Kees Cook
  Cc: Li Zefan, Johannes Weiner, cgroups-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA,
	kernel-hardening-ZwoEplunGu1jrUoiu81ncdBPR1lH4CV8

On Sat, Feb 25, 2017 at 01:56:48AM -0800, Kees Cook wrote:
> As found in grsecurity, this avoids exposing a kernel pointer through
> the cgroup debug entries.
> 
> Signed-off-by: Kees Cook <keescook-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>

Applied to cgroup/for-4.11-fixes.

Thanks.

-- 
tejun

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-03-06 20:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-25  9:56 [PATCH] cgroups: censor kernel pointer in debug files Kees Cook
2017-02-25  9:56 ` [kernel-hardening] " Kees Cook
2017-03-06 20:16 ` Tejun Heo
2017-03-06 20:16   ` Tejun Heo
2017-03-06 20:16   ` [kernel-hardening] " Tejun Heo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.