linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Oops at "NET: Registering protocol family 23" at boot with 2.6.0t9-bk
@ 2003-11-01 16:49 Stian Jordet
  2003-11-03 23:27 ` Martin Diehl
  0 siblings, 1 reply; 4+ messages in thread
From: Stian Jordet @ 2003-11-01 16:49 UTC (permalink / raw)
  To: 'linux-kernel@vger.kernel.org'

[-- Attachment #1: Type: text/plain, Size: 154 bytes --]

Hello,
kernel 2.6.0-test9 works perfect here, but with the latest cset I get
the attached oops at boottime. Hope this helps someone.

Best regards,
Stian

[-- Attachment #2: oops.txt --]
[-- Type: text/plain, Size: 1056 bytes --]

NET: Registered protocol family 23
Unable to handle kernel NULL pointer dereference at virtual address 00000004
 printing eip:
c03de40d
*pde = 00000000
Oops: 0002 [#1]
CPU:    0
CIP:    0060:[<c03de40d>]    Not tainted
EFLAGS: 00010202
EIP is at dev_add_pack+0x4d/0xb0
eax: 00000038   ebx: c062f2f8   ecx: 00000000   edx: c05799e0
esi: c05799d0   edi: 00000000   ebp: 00000000   esp: c152ffb4
ds: 007b   es: 007b   ss: 0068
Process swapper (pid: 1, threadinfo=c152e000 task=dff8f900)
Stack: c05e7fc8 00000001 c05defad c05799d0 c04af833 c05c094c 00000000 00000000
       c01359af 00000000 c152e000 c01050f6 00000002 c01050a0 00000000 c01072b9
       00000000 00000000 00000000
Call Trace:
 [<c05defad>] irda_init+0x3d/0x60
 [<c05c094c>] do_initcalls+0x2c/0xa0
 [<c01359af>] init_workqueues+0xf/0x24
 [<c01050f6>] init+0x56/0x180
 [<c01050a0>] init+0x0/0x180
 [<c01072b9>] kernel_thread_helper+0x5/0xc
 
Code: 89 51 04 89 90 c0 f2 62 c0 c6 05 40 3c 57 c0 01 b8 00 e0 ff
 (0)Kernel panic: Fatal exception in interrupt
In interrupt handler - not syncing
     

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Oops at "NET: Registering protocol family 23" at boot with 2.6.0t9-bk
  2003-11-01 16:49 Oops at "NET: Registering protocol family 23" at boot with 2.6.0t9-bk Stian Jordet
@ 2003-11-03 23:27 ` Martin Diehl
  2003-11-04  0:37   ` Jean Tourrilhes
  2003-11-04  1:14   ` David S. Miller
  0 siblings, 2 replies; 4+ messages in thread
From: Martin Diehl @ 2003-11-03 23:27 UTC (permalink / raw)
  To: Stian Jordet
  Cc: Andrew Morton, Jean Tourrilhes, 'linux-kernel@vger.kernel.org'

On Sat, 1 Nov 2003, Stian Jordet wrote:

> NET: Registered protocol family 23
> Unable to handle kernel NULL pointer dereference at virtual address 00000004
> EIP is at dev_add_pack+0x4d/0xb0

which is at "next->prev = new" in __list_add_rcu()

> Call Trace:
>  [<c05defad>] irda_init+0x3d/0x60
>  [<c05c094c>] do_initcalls+0x2c/0xa0
>  [<c01359af>] init_workqueues+0xf/0x24
>  [<c01050f6>] init+0x56/0x180
>  [<c01050a0>] init+0x0/0x180
>  [<c01072b9>] kernel_thread_helper+0x5/0xc
 
Looks like irda_init is called before the ptype_base[] list heads are 
initialized. I believe it was triggered by:

>>>>>>>>>>
diff -Nru a/net/core/dev.c b/net/core/dev.c
--- a/net/core/dev.c	Wed Oct 29 15:08:14 2003
+++ b/net/core/dev.c	Wed Oct 29 15:08:14 2003
@@ -3023,7 +3023,7 @@
 	return rc;
 }
 
-subsys_initcall(net_dev_init);
+fs_initcall(net_dev_init);
<<<<<<<<<<
 
from: cset-akpm@osdl.org|ChangeSet|20031029192849|64746.txt

As a workaround you might want to make the irda modular instead of 
build-in. But I'm just wondering why other protocols shouldn't have the 
same problem. Maybe they are not subsys_initcall like af_irda.

Martin


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Oops at "NET: Registering protocol family 23" at boot with 2.6.0t9-bk
  2003-11-03 23:27 ` Martin Diehl
@ 2003-11-04  0:37   ` Jean Tourrilhes
  2003-11-04  1:14   ` David S. Miller
  1 sibling, 0 replies; 4+ messages in thread
From: Jean Tourrilhes @ 2003-11-04  0:37 UTC (permalink / raw)
  To: Martin Diehl
  Cc: Stian Jordet, Andrew Morton, 'linux-kernel@vger.kernel.org'

On Tue, Nov 04, 2003 at 12:27:00AM +0100, Martin Diehl wrote:
> On Sat, 1 Nov 2003, Stian Jordet wrote:
> 
> > NET: Registered protocol family 23
> > Unable to handle kernel NULL pointer dereference at virtual address 00000004
> > EIP is at dev_add_pack+0x4d/0xb0
> 
> which is at "next->prev = new" in __list_add_rcu()
> 
> > Call Trace:
> >  [<c05defad>] irda_init+0x3d/0x60
> >  [<c05c094c>] do_initcalls+0x2c/0xa0
> >  [<c01359af>] init_workqueues+0xf/0x24
> >  [<c01050f6>] init+0x56/0x180
> >  [<c01050a0>] init+0x0/0x180
> >  [<c01072b9>] kernel_thread_helper+0x5/0xc
>  
> Looks like irda_init is called before the ptype_base[] list heads are 
> initialized. I believe it was triggered by:
> 
> >>>>>>>>>>
> diff -Nru a/net/core/dev.c b/net/core/dev.c
> --- a/net/core/dev.c	Wed Oct 29 15:08:14 2003
> +++ b/net/core/dev.c	Wed Oct 29 15:08:14 2003
> @@ -3023,7 +3023,7 @@
>  	return rc;
>  }
>  
> -subsys_initcall(net_dev_init);
> +fs_initcall(net_dev_init);
> <<<<<<<<<<
>  
> from: cset-akpm@osdl.org|ChangeSet|20031029192849|64746.txt
> 
> As a workaround you might want to make the irda modular instead of 
> build-in. But I'm just wondering why other protocols shouldn't have the 
> same problem. Maybe they are not subsys_initcall like af_irda.
> 
> Martin

	Networking as a filesystem, that's new to me. And then, we
need irda up strictly before the drivers, so I would need to move irda
to fs_initcall(). Grrr....

	I'm in serious need of catching up. Martin, you sent me
previously two important crasher fixes, one for IrCOMM and one for
sir-dev. And I have my IrNET Oops fix. Anything else ?

	Regards,

	Jean

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Oops at "NET: Registering protocol family 23" at boot with 2.6.0t9-bk
  2003-11-03 23:27 ` Martin Diehl
  2003-11-04  0:37   ` Jean Tourrilhes
@ 2003-11-04  1:14   ` David S. Miller
  1 sibling, 0 replies; 4+ messages in thread
From: David S. Miller @ 2003-11-04  1:14 UTC (permalink / raw)
  To: Martin Diehl; +Cc: liste, akpm, jt, linux-kernel

On Tue, 4 Nov 2003 00:27:00 +0100 (CET)
Martin Diehl <lists@mdiehl.de> wrote:

> On Sat, 1 Nov 2003, Stian Jordet wrote:
> 
> > NET: Registered protocol family 23
> > Unable to handle kernel NULL pointer dereference at virtual address 00000004
> > EIP is at dev_add_pack+0x4d/0xb0
> 
> which is at "next->prev = new" in __list_add_rcu()

This bug is already fully analyzed, please read the rest of the
thread.  Andrew's change which introduced this problem will be
reverted.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-11-04  0:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-01 16:49 Oops at "NET: Registering protocol family 23" at boot with 2.6.0t9-bk Stian Jordet
2003-11-03 23:27 ` Martin Diehl
2003-11-04  0:37   ` Jean Tourrilhes
2003-11-04  1:14   ` David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).