public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Mark timer_stats as incompatible with multiple pid namespaces
@ 2007-12-12 23:10 Eric W. Biederman
  2007-12-13  9:01 ` Ingo Molnar
  0 siblings, 1 reply; 9+ messages in thread
From: Eric W. Biederman @ 2007-12-12 23:10 UTC (permalink / raw)
  To: Ingo Molnar, Thomas Gleixner; +Cc: Linux Containers, linux-kernel


/proc/timer_stats currently reports the user of a timer by pid,
which is a reasonable approach.  However if you are not in
the initial pid namespace the pid that is reported is nonsense.

Therefore until we can make timer_stats pid namespace safe just
disable it in the build if pid namespace support is selected
so we at least know we have a conflict.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
---
 lib/Kconfig.debug |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index cc42773..c8e81e6 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -146,7 +146,7 @@ config SCHEDSTATS
 
 config TIMER_STATS
 	bool "Collect kernel timers statistics"
-	depends on DEBUG_KERNEL && PROC_FS
+	depends on DEBUG_KERNEL && PROC_FS && !PID_NS
 	help
 	  If you say Y here, additional code will be inserted into the
 	  timer routines to collect statistics about kernel timers being
-- 
1.5.3.rc6.17.g1911


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

end of thread, other threads:[~2007-12-13 21:51 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-12 23:10 [PATCH] Mark timer_stats as incompatible with multiple pid namespaces Eric W. Biederman
2007-12-13  9:01 ` Ingo Molnar
2007-12-13 11:55   ` Eric W. Biederman
2007-12-13 13:04     ` Ingo Molnar
2007-12-13 17:14       ` Eric W. Biederman
2007-12-13 20:26         ` Ingo Molnar
2007-12-13 21:29           ` Eric W. Biederman
2007-12-13 21:37             ` Ingo Molnar
2007-12-13 21:48               ` Eric W. Biederman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox