From: Prarit Bhargava <prarit@redhat.com>
To: Christoph Lameter <clameter@sgi.com>
Cc: "Luck, Tony" <tony.luck@intel.com>,
Randy Dunlap <randy.dunlap@oracle.com>,
David Chinner <dgc@sgi.com>,
Andrew Morton <akpm@linux-foundation.org>,
lkml <linux-kernel@vger.kernel.org>,
linux-ia64@vger.kernel.org, Sam Ravnborg <sam@ravnborg.org>
Subject: Re: BUG: sleeping function called from invalid context at kernel/fork.c:385
Date: Thu, 31 May 2007 15:20:27 +0000 [thread overview]
Message-ID: <465EE7BB.4050605@redhat.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0705302019040.5583@schroedinger.engr.sgi.com>
[-- Attachment #1: Type: text/plain, Size: 3339 bytes --]
Christoph Lameter wrote:
> On Wed, 30 May 2007, Luck, Tony wrote:
>
>
>>> Ahh okay. cscope will do that too.... But all have __exit.
>>>
>> The trick is that one of them *shouldn't* have __exit. With cscope
>> you'll have to use the "Find functions calling this function:"
>> mode to try and find the __init function that is calling an
>> __exit function.
>>
>
> Urgh... Does it have to be that difficult?
> -
>
Sometimes yes ... but in this case no.
I flipped config options on and off until I tracked the problem down
into the loopback driver, and then manually ran modpost on
drivers/block/built-in.o to reveal:
....Nothing.
Something is borken in modpost because I found a bug in the loopback
code which is a _REAL_ bug.
The -mm tree contains a patch which calls __exit loop_exit from __init
loop_init .
(I'll submit this patch directly to Andrew in about 5 mins. I'm
including the patch here just so Christoph can grab it and continue on.)
Christoph, this is one less beer I owe you :) :) :)
Tony, the ia64 section mismatch "whack-a-mole" is far from over :(
WARNING: init/built-in.o(.sdata+0x48): Section mismatch: reference to
.init.data: (after 'C.261.15930')
WARNING: init/built-in.o(.sdata+0x50): Section mismatch: reference to
.init.data: (after 'C.261.15930')
WARNING: init/built-in.o(.sdata+0x58): Section mismatch: reference to
.init.data:ino (after 'C.261.15930')
WARNING: arch/ia64/kernel/built-in.o(.sdata+0x0): Section mismatch:
reference to .init.data:smp_boot_data before 'acpi_irq_model' (at offset
-0x0)
WARNING: arch/ia64/kernel/built-in.o(.sdata+0x98): Section mismatch:
reference to .init.data:rsvd_region (between 'ia64_sal' and
'ia64_i_cache_stride_shift')
WARNING: arch/ia64/kernel/built-in.o(.sdata+0xa0): Section mismatch:
reference to .init.data:rsvd_region (between 'ia64_sal' and
'ia64_i_cache_stride_shift')
WARNING: arch/ia64/kernel/built-in.o(.sdata+0x228): Section mismatch:
reference to .init.data:smp_boot_data (between 'cpu.25776' and
'smp_num_siblings')
WARNING: arch/ia64/mm/built-in.o(.sdata+0x60): Section mismatch:
reference to .init.data: (between 'hpage_shift' and 'first_time.26434')
WARNING: arch/ia64/mm/built-in.o(.sdata+0x68): Section mismatch:
reference to .init.data: (between 'hpage_shift' and 'first_time.26434')
WARNING: mm/built-in.o(.sdata+0x0): Section mismatch: reference to
.init.data:early_node_map before 'sysctl_lowmem_reserve_ratio' (at
offset -0x0)
WARNING: mm/built-in.o(.sdata+0x8): Section mismatch: reference to
.init.data:early_node_map before 'sysctl_lowmem_reserve_ratio' (at
offset -0x0)
WARNING: mm/built-in.o(.sdata+0x10): Section mismatch: reference to
.init.data:early_node_map before 'sysctl_lowmem_reserve_ratio' (at
offset -0x0)
WARNING: mm/built-in.o(.sdata+0x238): Section mismatch: reference to
.init.data: (between 'htlb_alloc_mask' and 'slab_early_init')
WARNING: mm/built-in.o(.sdata+0x240): Section mismatch: reference to
.init.data:initkmem_list3 (between 'htlb_alloc_mask' and 'slab_early_init')
WARNING: mm/built-in.o(.sdata+0x248): Section mismatch: reference to
.init.data:initkmem_list3 (between 'htlb_alloc_mask' and 'slab_early_init')
WARNING: drivers/built-in.o(.sdata+0x8b0): Section mismatch: reference
to .init.data: (between 'scsi_null_device_strs' and 'fc_dev_loss_tmo')
P.
[-- Attachment #2: diff --]
[-- Type: text/plain, Size: 346 bytes --]
--- linux/drivers/block/loop.c.orig 2007-05-31 11:15:21.000000000 -0400
+++ linux/drivers/block/loop.c 2007-05-31 11:11:05.000000000 -0400
@@ -1456,7 +1456,7 @@ static struct kobject *loop_probe(dev_t
return kobj;
}
-static void __exit loop_exit(void)
+static void loop_exit(void)
{
unsigned long range;
struct loop_device *lo, *next;
WARNING: multiple messages have this Message-ID (diff)
From: Prarit Bhargava <prarit@redhat.com>
To: Christoph Lameter <clameter@sgi.com>
Cc: "Luck, Tony" <tony.luck@intel.com>,
Randy Dunlap <randy.dunlap@oracle.com>,
David Chinner <dgc@sgi.com>,
Andrew Morton <akpm@linux-foundation.org>,
lkml <linux-kernel@vger.kernel.org>,
linux-ia64@vger.kernel.org, Sam Ravnborg <sam@ravnborg.org>
Subject: Re: BUG: sleeping function called from invalid context at kernel/fork.c:385
Date: Thu, 31 May 2007 11:20:27 -0400 [thread overview]
Message-ID: <465EE7BB.4050605@redhat.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0705302019040.5583@schroedinger.engr.sgi.com>
[-- Attachment #1: Type: text/plain, Size: 3339 bytes --]
Christoph Lameter wrote:
> On Wed, 30 May 2007, Luck, Tony wrote:
>
>
>>> Ahh okay. cscope will do that too.... But all have __exit.
>>>
>> The trick is that one of them *shouldn't* have __exit. With cscope
>> you'll have to use the "Find functions calling this function:"
>> mode to try and find the __init function that is calling an
>> __exit function.
>>
>
> Urgh... Does it have to be that difficult?
> -
>
Sometimes yes ... but in this case no.
I flipped config options on and off until I tracked the problem down
into the loopback driver, and then manually ran modpost on
drivers/block/built-in.o to reveal:
....Nothing.
Something is borken in modpost because I found a bug in the loopback
code which is a _REAL_ bug.
The -mm tree contains a patch which calls __exit loop_exit from __init
loop_init .
(I'll submit this patch directly to Andrew in about 5 mins. I'm
including the patch here just so Christoph can grab it and continue on.)
Christoph, this is one less beer I owe you :) :) :)
Tony, the ia64 section mismatch "whack-a-mole" is far from over :(
WARNING: init/built-in.o(.sdata+0x48): Section mismatch: reference to
.init.data: (after 'C.261.15930')
WARNING: init/built-in.o(.sdata+0x50): Section mismatch: reference to
.init.data: (after 'C.261.15930')
WARNING: init/built-in.o(.sdata+0x58): Section mismatch: reference to
.init.data:ino (after 'C.261.15930')
WARNING: arch/ia64/kernel/built-in.o(.sdata+0x0): Section mismatch:
reference to .init.data:smp_boot_data before 'acpi_irq_model' (at offset
-0x0)
WARNING: arch/ia64/kernel/built-in.o(.sdata+0x98): Section mismatch:
reference to .init.data:rsvd_region (between 'ia64_sal' and
'ia64_i_cache_stride_shift')
WARNING: arch/ia64/kernel/built-in.o(.sdata+0xa0): Section mismatch:
reference to .init.data:rsvd_region (between 'ia64_sal' and
'ia64_i_cache_stride_shift')
WARNING: arch/ia64/kernel/built-in.o(.sdata+0x228): Section mismatch:
reference to .init.data:smp_boot_data (between 'cpu.25776' and
'smp_num_siblings')
WARNING: arch/ia64/mm/built-in.o(.sdata+0x60): Section mismatch:
reference to .init.data: (between 'hpage_shift' and 'first_time.26434')
WARNING: arch/ia64/mm/built-in.o(.sdata+0x68): Section mismatch:
reference to .init.data: (between 'hpage_shift' and 'first_time.26434')
WARNING: mm/built-in.o(.sdata+0x0): Section mismatch: reference to
.init.data:early_node_map before 'sysctl_lowmem_reserve_ratio' (at
offset -0x0)
WARNING: mm/built-in.o(.sdata+0x8): Section mismatch: reference to
.init.data:early_node_map before 'sysctl_lowmem_reserve_ratio' (at
offset -0x0)
WARNING: mm/built-in.o(.sdata+0x10): Section mismatch: reference to
.init.data:early_node_map before 'sysctl_lowmem_reserve_ratio' (at
offset -0x0)
WARNING: mm/built-in.o(.sdata+0x238): Section mismatch: reference to
.init.data: (between 'htlb_alloc_mask' and 'slab_early_init')
WARNING: mm/built-in.o(.sdata+0x240): Section mismatch: reference to
.init.data:initkmem_list3 (between 'htlb_alloc_mask' and 'slab_early_init')
WARNING: mm/built-in.o(.sdata+0x248): Section mismatch: reference to
.init.data:initkmem_list3 (between 'htlb_alloc_mask' and 'slab_early_init')
WARNING: drivers/built-in.o(.sdata+0x8b0): Section mismatch: reference
to .init.data: (between 'scsi_null_device_strs' and 'fc_dev_loss_tmo')
P.
[-- Attachment #2: diff --]
[-- Type: text/plain, Size: 346 bytes --]
--- linux/drivers/block/loop.c.orig 2007-05-31 11:15:21.000000000 -0400
+++ linux/drivers/block/loop.c 2007-05-31 11:11:05.000000000 -0400
@@ -1456,7 +1456,7 @@ static struct kobject *loop_probe(dev_t
return kobj;
}
-static void __exit loop_exit(void)
+static void loop_exit(void)
{
unsigned long range;
struct loop_device *lo, *next;
next prev parent reply other threads:[~2007-05-31 15:20 UTC|newest]
Thread overview: 81+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-23 6:31 BUG: sleeping function called from invalid context at kernel/fork.c:385 David Chinner
2007-05-23 6:43 ` BUG: sleeping function called from invalid context at Andrew Morton
2007-05-23 6:43 ` BUG: sleeping function called from invalid context at kernel/fork.c:385 Andrew Morton
2007-05-23 17:44 ` Luck, Tony
2007-05-23 17:44 ` Luck, Tony
2007-05-30 3:30 ` David Chinner
2007-05-30 3:30 ` David Chinner
2007-05-30 4:44 ` David Chinner
2007-05-30 4:44 ` David Chinner
2007-05-30 20:11 ` Luck, Tony
2007-05-30 20:11 ` Luck, Tony
2007-05-30 22:39 ` BUG: sleeping function called from invalid context at Christoph Lameter
2007-05-30 22:39 ` BUG: sleeping function called from invalid context at kernel/fork.c:385 Christoph Lameter
2007-05-31 0:53 ` David Chinner
2007-05-31 0:53 ` David Chinner
2007-06-04 5:14 ` Peter Chubb
2007-06-04 5:14 ` Peter Chubb
2007-05-30 23:19 ` Luck, Tony
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:31 ` BUG: sleeping function called from invalid context at kernel/fork.c:385 Christoph Lameter
2007-05-30 23:34 ` BUG: sleeping function called from invalid context at Randy Dunlap
2007-05-30 23:34 ` BUG: sleeping function called from invalid context at kernel/fork.c:385 Randy Dunlap
2007-05-30 23:53 ` BUG: sleeping function called from invalid context at Christoph Lameter
2007-05-30 23:53 ` BUG: sleeping function called from invalid context at kernel/fork.c:385 Christoph Lameter
2007-05-30 23:55 ` Randy Dunlap
2007-05-30 23:55 ` Randy Dunlap
2007-05-31 0:09 ` BUG: sleeping function called from invalid context at Christoph Lameter
2007-05-31 0:09 ` BUG: sleeping function called from invalid context at kernel/fork.c:385 Christoph Lameter
2007-05-31 6:12 ` BUG: sleeping function called from invalid context at Randy Dunlap
2007-05-31 6:12 ` BUG: sleeping function called from invalid context at kernel/fork.c:385 Randy Dunlap
2007-05-31 4:43 ` Sam Ravnborg
2007-05-31 4:43 ` Sam Ravnborg
2007-05-30 23:56 ` Yu, Fenghua
2007-05-30 23:56 ` Yu, Fenghua
2007-05-31 2:37 ` Luck, Tony
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 3:19 ` BUG: sleeping function called from invalid context at kernel/fork.c:385 Christoph Lameter
2007-05-31 15:20 ` Prarit Bhargava [this message]
2007-05-31 15:20 ` Prarit Bhargava
2007-05-31 19:54 ` Sam Ravnborg
2007-05-31 19:54 ` Sam Ravnborg
2007-05-31 20:04 ` 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:08 ` Sam Ravnborg
2007-05-31 20:17 ` [PATCH] kvm: fix section mismatch warning in kvm-intel.o Sam Ravnborg
2007-05-31 20:17 ` Sam Ravnborg
2007-05-31 20:24 ` [PATCH] acpi: fix section mismatch warning in asus_acpi.o Sam Ravnborg
2007-05-31 20:24 ` Sam Ravnborg
2007-05-31 20:29 ` [PATCH] acpi: fix section mismatch warning in asus + toshiba Sam Ravnborg
2007-05-31 20:29 ` Sam Ravnborg
2007-05-31 20:46 ` [PATCH] isdn: fix section mismatch warnings Sam Ravnborg
2007-05-31 20:46 ` Sam Ravnborg
2007-05-31 20:51 ` [PATCH] microcode: fix section mismatch warning Sam Ravnborg
2007-05-31 20:51 ` Sam Ravnborg
2007-05-31 20:42 ` BUG: sleeping function called from invalid context at Christoph Lameter
2007-05-31 20:42 ` BUG: sleeping function called from invalid context at kernel/fork.c:385 Christoph Lameter
2007-06-01 3:18 ` Luck, Tony
2007-06-01 3:18 ` Luck, Tony
2007-06-01 3:31 ` Prarit Bhargava
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:05 ` BUG: sleeping function called from invalid context at kernel/fork.c:385 Christoph Lameter
2007-06-01 4:17 ` Sam Ravnborg
2007-06-01 4:17 ` Sam Ravnborg
2007-06-01 4:45 ` BUG: sleeping function called from invalid context at Christoph Lameter
2007-06-01 4:45 ` BUG: sleeping function called from invalid context at kernel/fork.c:385 Christoph Lameter
2007-06-01 6:42 ` Sam Ravnborg
2007-06-01 6:42 ` Sam Ravnborg
2007-06-01 8:00 ` Luck, Tony
2007-06-01 8:00 ` Luck, Tony
2007-06-01 10:30 ` Prarit Bhargava
2007-06-01 10:30 ` Prarit Bhargava
2007-06-05 14:55 ` linux-ia64 build warning messages Russ Anderson
2007-06-05 14:55 ` Russ Anderson
2007-06-07 5:00 ` Peter Chubb
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
2007-06-01 10:37 ` 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=465EE7BB.4050605@redhat.com \
--to=prarit@redhat.com \
--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=randy.dunlap@oracle.com \
--cc=sam@ravnborg.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.