Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762000AbYCERwG (ORCPT ); Wed, 5 Mar 2008 12:52:06 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1760949AbYCERvu (ORCPT ); Wed, 5 Mar 2008 12:51:50 -0500 Received: from nwd2mail11.analog.com ([137.71.25.57]:55979 "EHLO nwd2mail11.analog.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758038AbYCERvt (ORCPT ); Wed, 5 Mar 2008 12:51:49 -0500 X-IronPort-AV: E=Sophos;i="4.25,451,1199682000"; d="scan'208";a="49634830" From: Robin Getz Organization: Blackfin uClinux org To: "Rusty Russell" Subject: Re: PATCH [1/1]: Don't return symbol lables in init sections after they have been freed Date: Wed, 5 Mar 2008 12:53:27 -0500 User-Agent: KMail/1.9.5 Cc: "Andrew Morton" , "LKML" References: <200803041847.15884.rgetz@blackfin.uclinux.org> <200803051243.26732.rusty@rustcorp.com.au> In-Reply-To: <200803051243.26732.rusty@rustcorp.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200803051253.28761.rgetz@blackfin.uclinux.org> X-OriginalArrivalTime: 05 Mar 2008 17:51:47.0626 (UTC) FILETIME=[953BC0A0:01C87EE9] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1615 Lines: 41 On Tue 4 Mar 2008 20:43, Rusty Russell pondered: > On Wednesday 05 March 2008 10:47:15 Robin Getz wrote: > > From: Robin Getz > > > > Today, when module names are looked up, we do not qualify them (check to > > see if the init section is still active or not). This can lead to problems > > when kernel modules get loaded into the same address that the kernel init > > section (or other module's init section was at). We sometimes return the > > old / no lomnger there > > > > This leads to bogus OOPS messages, and developers wasting their time > > looking for problems (in the kernel init section) where there are none > > (since it was a module). > > Hi Robin, > > This is a great explanation, with only one problem: it isn't true. I can replicate this on 2.6.24.3 (at least on noMMU) in the kernel init section. > mod->init_size is set to zero after init. So, I have seen the problem on the init section, and suspected it could happen on module init, but it looks like I missed that portion of the code - sorry. > As to the actual patch, your kallsyms.c patch matches > a2da4052f1df6bc77749f84496fe731ab8b458f7's change to extable.c: please > resubmit with just that one. Will do. > For bonus points, look at combining the > extable and kallsyms logic so we don't diverge in future... Let me see what I can do. -- 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/