Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757441AbYGTMs6 (ORCPT ); Sun, 20 Jul 2008 08:48:58 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754291AbYGTMst (ORCPT ); Sun, 20 Jul 2008 08:48:49 -0400 Received: from mx2.suse.de ([195.135.220.15]:33922 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753729AbYGTMsr (ORCPT ); Sun, 20 Jul 2008 08:48:47 -0400 Date: Sun, 20 Jul 2008 14:48:43 +0200 From: Bernhard Walle To: "Vegard Nossum" Cc: "Greg KH" , "Mariusz Kozlowski" , "Dave Hansen" , "Stephen Rothwell" , kernel-testers@vger.kernel.org, linux-next@vger.kernel.org, LKML , "Pekka Enberg" Subject: Re: linux-next: Tree for July 18: warning at kernel/lockdep.c:2068 trace_hardirqs_on_caller Message-ID: <20080720144843.76dcb951@kopernikus.site> In-Reply-To: <19f34abd0807191544nfd73be5nf7dde4b61992a7e8@mail.gmail.com> References: <20080718195352.e562a00f.sfr@canb.auug.org.au> <200807190928.33978.m.kozlowski@tuxland.pl> <19f34abd0807190255x304173d4wf2bfabb2d5bce511@mail.gmail.com> <19f34abd0807190559y2fe5ebf9h7095793e82de3122@mail.gmail.com> <20080719221723.GB5578@suse.de> <19f34abd0807191527u61c5ed61kffe2279c8d46915d@mail.gmail.com> <19f34abd0807191544nfd73be5nf7dde4b61992a7e8@mail.gmail.com> Organization: SUSE LINUX Products GmbH X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.11; i686-pc-linux-gnu) X-Face: ,G!z)dEOMkc[Cu+sF64,T9^5r3b>/}#HBRL%D^j@\SZbr'Itl7q@1<*dgB?A7(_leO1Tc4^ D*WfvfwKcz;,@E^y+pNP%86n8o<&g-vToCXW:r>Y$jxY,`KT?{H!07=2|Jdt?0ba^C-Tnx50vIV8It vi&Sicl:sj`k2`y)E;ECFi;i7W-?t3%\kD*));q)+%-pQd^.r'W}oBBx=+.~Gu}&F;lS7.a-m>Rv"w pe`D'OV^?HJd$-)7<2T[naDPl6+bAj'+UYd]u]B^'.LYK$2jS Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2224 Lines: 60 * "Vegard Nossum" [2008-07-20 00:44]: > > On Sun, Jul 20, 2008 at 12:27 AM, Vegard Nossum wrote: > >>> commit 0e3638d1e04040121af00195f7e4628078246489 > >>> Author: Dave Hansen > >>> Date: Thu Mar 16 17:30:16 2006 -0800 > >>> > >>> warn when statically-allocated kobjects are used > >>> > >>> ..which only exists in -next. Is that just a truly ancient patch, or > >>> did somebody forget to adjust their clock? > >> > >> It is truely a very old patch, that only lives in my tree, and currently > >> isn't planned to go to Linus any year soon. > >> > >> But it has a very long history of living in the -mm tree, and finding > >> real bugs, it's just not "safe" enough to go to Linus's tree. Unless > >> you think it is? > > > > Hm. In this case, the patch is not even reporting a problem, it is in > > fact in error itself. > > > > The problem is that it calls kzalloc() before the slab caches have > > been set up. (Yes, it's a wonder that nothing crashed.) I can only > > suggest the addendum > > > > if (!slab_is_available()) > > return; > > Well, of course, it's also possible that the e820 code shouldn't be > initializing kobjects this early in the first place. > > firmware_map_add_early() is using bootmem for the allocation. So yes, > I guess it should possible to use kobjects here. That said, this code > is in fact fairly recent: > > commit 69ac9cd629ca96e59f34eb4ccd12d00b2c8276a7 > Author: Bernhard Walle > Date: Fri Jun 27 13:12:54 2008 +0200 > > sysfs: add /sys/firmware/memmap > > I'll add the Cc. I still have a feeling that the kobject patch should > expect to run even when slab is not available. I already posted a fix for that problem, see http://article.gmane.org/gmane.linux.kernel.kexec/1882. Which people should I CC to get that fix into linux-next? Bernhard -- Bernhard Walle, SUSE LINUX Products GmbH, Architecture Development -- 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/