From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 5862FB6FB7 for ; Wed, 6 Jun 2012 21:32:24 +1000 (EST) Message-ID: <1338982323.7150.165.camel@pasglop> Subject: Re: kernel panic during kernel module load (powerpc specific part) From: Benjamin Herrenschmidt To: Steffen Rumler Date: Wed, 06 Jun 2012 21:32:03 +1000 In-Reply-To: <4FCF0897.2060405@nsn.com> References: <4FC62FB9.8010701@nsn.com> <1338420242.27402.2.camel@concordia> <192298D25D96A042975E372855100DB70FEA87@039-SN2MPN1-011.039d.mgd.msft.net> <20120531110439.GA17373@visitor2.iram.es> <1338542315.16119.50.camel@pasglop> <192298D25D96A042975E372855100DB70FF0E2@039-SN2MPN1-011.039d.mgd.msft.net> <20120604110305.GA16707@visitor2.iram.es> <4FCF0897.2060405@nsn.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Cc: Wrobel Heinz-R39252 , Michael Ellerman , "linuxppc-dev@lists.ozlabs.org" List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Wed, 2012-06-06 at 09:36 +0200, Steffen Rumler wrote: > > how should we continue here ? > There is the kernel panic, I've described. > > Technically, there is an conflict between the code generated by the > compiler and the loader in module_32.c, at least by using -Os. > Because the prologue/epilogue is part of the .text and init_module() > is part of .init.text (in the case __init is applied, as usual), > a directly reachable call is not always possible. As we discussed earlier, if you could submit a patch to use r12 instead, we should merge that. Cheers, Ben.