public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
From: Sam Ravnborg <sam@ravnborg.org>
To: Christoph Lameter <clameter@sgi.com>
Cc: "Luck, Tony" <tony.luck@intel.com>, David Chinner <dgc@sgi.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	lkml <linux-kernel@vger.kernel.org>,
	linux-ia64@vger.kernel.org
Subject: Re: BUG: sleeping function called from invalid context at kernel/fork.c:385
Date: Thu, 31 May 2007 04:43:14 +0000	[thread overview]
Message-ID: <20070531044314.GA20795@uranus.ravnborg.org> (raw)
In-Reply-To: <Pine.LNX.4.64.0705301630360.3568@schroedinger.engr.sgi.com>

On Wed, May 30, 2007 at 04:31:35PM -0700, Christoph Lameter wrote:
> On Wed, 30 May 2007, Luck, Tony wrote:
> 
> > 
> > > `.exit.text' referenced in section `.init.text' of drivers/built-in.o: 
> > > defined in discarded section `.exit.text' of drivers/built-in.o
> > 
> > 
> > This one is a fatal error ... the code is trying to call a function
> > that has been marked __exit in a driver that has been built-in, instead
> > of as a module.  Since a builtin driver can never be unloaded, the kernel
> > has thrown away all the __exit routines (at link time).
> > 
> > The error message appears less than helpful in tracking down which
> > routine in which driver is the problem though.
> 
> Right. I have no idea where to look. The function has no name? Or is the 
> segment .exit.text referenced by namne in .init.text?
Unfortunately modpost does not alows know how to resolve symbol names
from addresses. Lately it has been improves by adding support for 
addends in ELF. But that is beyond my ELF knowledge atm so
I cannot improve it.

What you can do (apart from the cscope trick as Randy suggest) is
to run modpost manual on all .o files in drivers/

If the cross reference happens in a single .o file you will get
a hit there.
And if it is say in scsi then you will get a hit in scsi/built-in.o

Hope this helps.

	Sam

  parent reply	other threads:[~2007-05-31  4:43 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20070523063154.GR85884050@sgi.com>
2007-05-23  6:43 ` BUG: sleeping function called from invalid context at Andrew Morton
2007-05-23 17:44   ` BUG: sleeping function called from invalid context at kernel/fork.c:385 Luck, Tony
2007-05-30  3:30     ` David Chinner
2007-05-30  4:44       ` David Chinner
2007-05-30 20:11   ` Luck, Tony
2007-05-30 22:39     ` BUG: sleeping function called from invalid context at Christoph Lameter
2007-05-31  0:53     ` BUG: sleeping function called from invalid context at kernel/fork.c:385 David Chinner
2007-06-04  5:14       ` Peter Chubb
2007-05-30 23:19   ` Luck, Tony
2007-05-30 23:31     ` BUG: sleeping function called from invalid context at Christoph Lameter
2007-05-30 23:34       ` Randy Dunlap
2007-05-30 23:53         ` Christoph Lameter
2007-05-30 23:55           ` BUG: sleeping function called from invalid context at kernel/fork.c:385 Randy Dunlap
2007-05-31  0:09             ` BUG: sleeping function called from invalid context at Christoph Lameter
2007-05-31  6:12               ` Randy Dunlap
2007-05-31  4:43       ` Sam Ravnborg [this message]
2007-05-30 23:56   ` BUG: sleeping function called from invalid context at kernel/fork.c:385 Yu, Fenghua
2007-05-31  2:37   ` Luck, Tony
2007-05-31  3:19     ` BUG: sleeping function called from invalid context at Christoph Lameter
2007-05-31 15:20       ` BUG: sleeping function called from invalid context at kernel/fork.c:385 Prarit Bhargava
2007-05-31 19:54         ` Sam Ravnborg
2007-05-31 20:04         ` Sam Ravnborg
2007-05-31 20:08           ` [PATCH] net/hp100: fix section mismatch warning Sam Ravnborg
2007-05-31 20:17           ` [PATCH] kvm: fix section mismatch warning in kvm-intel.o Sam Ravnborg
2007-05-31 20:24           ` [PATCH] acpi: fix section mismatch warning in asus_acpi.o Sam Ravnborg
2007-05-31 20:29             ` [PATCH] acpi: fix section mismatch warning in asus + toshiba Sam Ravnborg
2007-05-31 20:46           ` [PATCH] isdn: fix section mismatch warnings Sam Ravnborg
2007-05-31 20:51           ` [PATCH] microcode: fix section mismatch warning Sam Ravnborg
2007-05-31 20:42         ` BUG: sleeping function called from invalid context at Christoph Lameter
2007-06-01  3:18   ` BUG: sleeping function called from invalid context at kernel/fork.c:385 Luck, Tony
2007-06-01  3:31     ` Prarit Bhargava
2007-06-01  4:05       ` BUG: sleeping function called from invalid context at Christoph Lameter
2007-06-01  4:17         ` BUG: sleeping function called from invalid context at kernel/fork.c:385 Sam Ravnborg
2007-06-01  4:45           ` BUG: sleeping function called from invalid context at Christoph Lameter
2007-06-01  6:42             ` BUG: sleeping function called from invalid context at kernel/fork.c:385 Sam Ravnborg
2007-06-01  8:00   ` Luck, Tony
2007-06-01 10:30     ` Prarit Bhargava
2007-06-05 14:55     ` linux-ia64 build warning messages Russ Anderson
2007-06-07  5:00       ` Peter Chubb
2007-06-01 10:37   ` BUG: sleeping function called from invalid context at kernel/fork.c:385 Luck, Tony

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070531044314.GA20795@uranus.ravnborg.org \
    --to=sam@ravnborg.org \
    --cc=akpm@linux-foundation.org \
    --cc=clameter@sgi.com \
    --cc=dgc@sgi.com \
    --cc=linux-ia64@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tony.luck@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox