From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760079AbXLLXMr (ORCPT ); Wed, 12 Dec 2007 18:12:47 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752891AbXLLXMk (ORCPT ); Wed, 12 Dec 2007 18:12:40 -0500 Received: from ebiederm.dsl.xmission.com ([166.70.28.69]:37524 "EHLO ebiederm.dsl.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751307AbXLLXMj (ORCPT ); Wed, 12 Dec 2007 18:12:39 -0500 From: ebiederm@xmission.com (Eric W. Biederman) To: Ingo Molnar , Thomas Gleixner Cc: Linux Containers , Subject: [PATCH] Mark timer_stats as incompatible with multiple pid namespaces Date: Wed, 12 Dec 2007 16:10:56 -0700 Message-ID: User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org /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 --- 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