Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754556Ab3CLFe7 (ORCPT ); Tue, 12 Mar 2013 01:34:59 -0400 Received: from mail-lb0-f175.google.com ([209.85.217.175]:35772 "EHLO mail-lb0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753933Ab3CLFe6 (ORCPT ); Tue, 12 Mar 2013 01:34:58 -0400 MIME-Version: 1.0 In-Reply-To: <20130312052426.GV14556@mtj.dyndns.org> References: <20130305163228.GA12795@htj.dyndns.org> <20130306191408.GN1227@htj.dyndns.org> <20130307154907.GB29601@htj.dyndns.org> <20130312051215.GU14556@mtj.dyndns.org> <20130312052426.GV14556@mtj.dyndns.org> Date: Tue, 12 Mar 2013 13:34:56 +0800 Message-ID: Subject: Re: workqueue panic in 3.4 kernel From: Lei Wen To: Tejun Heo Cc: Thomas Gleixner , linux-kernel@vger.kernel.org, leiwen@marvell.com, wwang27@marvell.com Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1226 Lines: 33 On Tue, Mar 12, 2013 at 1:24 PM, Tejun Heo wrote: > On Tue, Mar 12, 2013 at 01:18:01PM +0800, Lei Wen wrote: >> > You're initializing random piece of memory which may contain any >> > garbage and triggering BUG if some bit is set on it. No, you can't do >> > that. debugobj is the right tool for debugging object lifetime issues >> > and is already supported. >> >> The debugobj is not helping on this issue, I have enabled both >> CONFIG_DEBUG_OBJECTS_WORK and CONFIG_DEBUG_OBJECTS. >> But find they didn't report any issue at all. > > It should. No idea why it didn't. Would be interesting to find out > why. No idea about it also... > >> And I am not init random memory, original issue is call init multi-times >> for one structure and that piece of memory already been allocated. >> And __INIT_WORK shouldn't call over random memory, right? > > Memory areas aren't always zero on allocation. Shouldn't work structure be allocated with kzalloc? Thanks, Lei -- 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/