Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756343AbZDWHad (ORCPT ); Thu, 23 Apr 2009 03:30:33 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754498AbZDWH12 (ORCPT ); Thu, 23 Apr 2009 03:27:28 -0400 Received: from sous-sol.org ([216.99.217.87]:48160 "EHLO x200.localdomain" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754707AbZDWH1T (ORCPT ); Thu, 23 Apr 2009 03:27:19 -0400 Message-Id: <20090423072201.068795610@sous-sol.org> User-Agent: quilt/0.47-1 Date: Thu, 23 Apr 2009 00:20:30 -0700 From: Chris Wright To: linux-kernel@vger.kernel.org, stable@kernel.org Cc: Justin Forbes , Zwane Mwaikambo , "Theodore Ts'o" , Randy Dunlap , Dave Jones , Chuck Wolber , Chris Wedgwood , Michael Krufky , Chuck Ebbert , Domenico Andreoli , Willy Tarreau , Rodrigo Rubira Branco , Jake Edge , Eugene Teo , torvalds@linux-foundation.org, akpm@linux-foundation.org, alan@lxorguk.ukuu.org.uk, Frederic Weisbecker , Ingo Molnar Subject: [patch 010/100] tracing/core: fix early free of cpumasks References: <20090423072020.428683652@sous-sol.org> Content-Disposition: inline; filename=tracing-core-fix-early-free-of-cpumasks.patch Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1313 Lines: 41 -stable review patch. If anyone has any objections, please let us know. --------------------- From: Frederic Weisbecker upstream commit: 2fc1dfbe17e7705c55b7a99da995fa565e26f151 Impact: fix crashes when tracing cpumasks While ring-buffer allocation, the cpumasks are allocated too, including the tracing cpumask and the per-cpu file mask handler. But these cpumasks are freed accidentally just after. Fix it. Reported-by: Ingo Molnar Signed-off-by: Frederic Weisbecker LKML-Reference: <1237164303-11476-1-git-send-email-fweisbec@gmail.com> Signed-off-by: Ingo Molnar Signed-off-by: Chris Wright --- kernel/trace/trace.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c @@ -3886,7 +3886,8 @@ __init static int tracer_alloc_buffers(v &trace_panic_notifier); register_die_notifier(&trace_die_notifier); - ret = 0; + + return 0; out_free_cpumask: free_cpumask_var(tracing_cpumask); -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/