From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933070AbbGGUyq (ORCPT ); Tue, 7 Jul 2015 16:54:46 -0400 Received: from e24smtp03.br.ibm.com ([32.104.18.24]:33103 "EHLO e24smtp03.br.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932876AbbGGUyi (ORCPT ); Tue, 7 Jul 2015 16:54:38 -0400 X-Helo: d24dlp01.br.ibm.com X-MailFrom: gustavold@linux.vnet.ibm.com X-RcptTo: linux-kernel@vger.kernel.org Message-ID: <559C3C87.9010601@linux.vnet.ibm.com> Date: Tue, 07 Jul 2015 17:54:31 -0300 From: Gustavo Luiz Duarte User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Sukadev Bhattiprolu CC: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Michael Ellerman Subject: Re: [PATCH] powerpc/perf/24x7: Fix lockdep warning References: <20150707193725.GA12395@us.ibm.com> In-Reply-To: <20150707193725.GA12395@us.ibm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15070720-0025-0000-0000-00000442D020 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/07/2015 04:37 PM, Sukadev Bhattiprolu wrote: > From 370152d9427e57cd9632b00189f71099f8e85544 Mon Sep 17 00:00:00 2001 > From: Sukadev Bhattiprolu > Date: Tue, 7 Jul 2015 12:21:10 -0400 > Subject: [PATCH 1/1] powerpc/perf/24x7: Fix lockdep warning > > The sysfs attributes for the 24x7 counters are dynamically allocated. > Initialize the attributes using sysfs_attr_init() to fix following > warning which occurs when CONFIG_DEBUG_LOCK_VMALLOC=y. > > [ 0.346249] audit: initializing netlink subsys (disabled) > [ 0.346284] audit: type=2000 audit(1436295254.340:1): initialized > [ 0.346489] BUG: key c0000000efe90198 not in .data! > [ 0.346491] DEBUG_LOCKS_WARN_ON(1) > [ 0.346502] ------------[ cut here ]------------ > [ 0.346504] WARNING: at ../kernel/locking/lockdep.c:3002 > [ 0.346506] Modules linked in: > > Reported-by: Gustavo Luiz Duarte > Signed-off-by: Sukadev Bhattiprolu Tested-by: Gustavo Luiz Duarte I verified that it fixes a BUG splat on PowerVM (tested on little endian). []'s Gustavo