linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [2.6.9-rc2-bk] Network-related panic on boot
@ 2004-09-17 22:26 Bob Gill
  2004-09-17 22:49 ` David S. Miller
  0 siblings, 1 reply; 6+ messages in thread
From: Bob Gill @ 2004-09-17 22:26 UTC (permalink / raw)
  To: Linux Kernel Mailing List

Hi.  I recently built 2.6.9-rc2-bk3.  It throws a panic on boot. 
2.6.9-rc2-bk2 boots OK.
The error message I get (copied by hand) is:
Enabling local filesystem quotas:                          [ OK ]
Enabling swap space:                                       [ OK ]
INIT: Entering runlevel: 5                                 [ OK ]
Entering non-interactive startup
Applying Intel IA32 Microcode update:                      [ OK ]
Starting sysstat:                                          [ OK ]
Starting readahead_early:                                  [ OK ]
Checking for new hardware------------[ cut here ]------------
kernel BUG at net/ipv4/fib_semantics.c:1039!
invalid operand: 0000 [#1]
PREEMPT
Modules linked in: sis900 sg scsi_mod usblp ohci_hcd usbcore thermal
processor fan button battery asus_acpi ac
CPU:    0
EIP:    0060:[<c029d318>]    Not tainted VLI
EFLAGS: 00010246   (2.6.9-rc2-bk3)
EIP is at fib_sync_down+0x1b9/0x1c6
eax: ffffffff   ebx: 00000000   ecx: c03375a0   edx: 00000000
esi: 00000000   edi: 00000006   ebp: f796c138   esp: f79cfe38
ds: 007b   es: 007b   ss: 0068
Process modprobe (pid: 2389, threadinfo=f79ce000 task=f7859560)
Stack: 00000000 00000000 f796c138 ffffffff 00000000 f796c000 f796c000
00000006
       f796c138 c029b7ba 00000000 f796c000 00000002 c033a55c c029b8dd
f796c000
       00000002 c033a55c f796c000 c0124c58 c033a55c 00000006 f796c000
f796c000
Call Trace:
 [<c029b7ba>] fib_disable_ip+0x23/0x4a
 [<c029b8dd>] fib_netdev_event+0x8a/0x99
 [<c0124c58>] notifier_call_chain+0x27/0x3e
 [<c025c505>] unregister_netdevice+0x15b/0x270
 [<c021e398>] unregister_netdev+0x18/0x24
 [<f8ad594e>] sis900_remove+0x85/0xc3 [sis900]
 [<c01bf5f9>] pci_device_remove+0x3b/0x3d
 [<c02078b5>] device_release_driver+0x64/0x66
 [<c02078d7>] driver_detatch+0x20/0x2e
 [<c0207ce4>] bus_remove_driver+0x4c/0x84
 [<c02081ac>] driver_unregister+0x13/0x28
 [<c01bf81d>] pci_unregister_driver+0x16/0x26
 [<f8ad567b>] sis900_cleanup_module+0xf/0x13 [sis900]
 [<c012d36a>] sys_delete_module+0x153/0x183
 [<c0142e77>] do_munmap+0x142/0x17f
 [<c0104019>] sysenter_past_esp+0x52/0x71
Code: 4f 5c e9 78 ff ff ff e8 47 0f 01 00 eb e7 0f 0b 2a 04 17 a3 2d c0
e9 16 ff ff ff 83 48 1c 01 83 44 24 10 01 8b 11 e9 b9 fe ff ff <0f> 0b
0f 04 17 a3 2d c0 e9 77 fe f ff 55 57 56 53 83 ec 10 8b
                                                                                
Updating /etc/fstab                                        [ OK ]
Applying iptables firewall rules:                          [ OK ]
Setting network parameters:                                [ OK ]
Bringing up loopback interface:

...and that's where everything stops.  If (you really want) I can send
the jpegs the digital camera made of the error.  I have a Soyo MB, with
a SiS chipset, the SiS 900 is the integrated 10/100 ethernet controller,
which lspci (from 2.6.9-rc2-bk2) shows as:

00:00.0 Host bridge: Silicon Integrated Systems [SiS] SiS645 Host &
Memory & AGP Controller (rev 02)
00:01.0 PCI bridge: Silicon Integrated Systems [SiS] Virtual PCI-to-PCI
bridge (AGP)
00:02.0 ISA bridge: Silicon Integrated Systems [SiS] SiS961 [MuTIOL
Media IO]
00:02.1 SMBus: Silicon Integrated Systems [SiS]: Unknown device 0016
00:02.2 USB Controller: Silicon Integrated Systems [SiS] USB 1.0
Controller (rev 07)
00:02.3 USB Controller: Silicon Integrated Systems [SiS] USB 1.0
Controller (rev 07)
00:02.5 IDE interface: Silicon Integrated Systems [SiS] 5513 [IDE] (rev
d0)
00:03.0 Ethernet controller: Silicon Integrated Systems [SiS] SiS900 PCI
Fast Ethernet (rev 90)
00:09.0 Multimedia audio controller: Creative Labs SB Live! EMU10k1 (rev
07)
00:09.1 Input device controller: Creative Labs SB Live! MIDI/Game Port
(rev 07)
00:0b.0 Multimedia video controller: Brooktree Corporation Bt878 Video
Capture (rev 02)
00:0b.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture
(rev 02)
00:0d.0 FireWire (IEEE 1394): VIA Technologies, Inc. IEEE 1394 Host
Controller (rev 43)
01:00.0 VGA compatible controller: nVidia Corporation NV25 [GeForce4 Ti
4200] (rev a3)

I am running FC2 (updated with yum and up2date).

If you need more information, please reply.
TIA,
Bob


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

* Re: [2.6.9-rc2-bk] Network-related panic on boot
  2004-09-17 22:26 [2.6.9-rc2-bk] Network-related panic on boot Bob Gill
@ 2004-09-17 22:49 ` David S. Miller
  2004-09-18  2:25   ` Bob Gill
  0 siblings, 1 reply; 6+ messages in thread
From: David S. Miller @ 2004-09-17 22:49 UTC (permalink / raw)
  To: Bob Gill; +Cc: linux-kernel


Already fixed.  Patch below:

# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
#   2004/09/17 11:11:23-07:00 david@gibson.dropbear.id.au 
#   [IPV4]: Initialize newly allocated hash tables in fib_semantics.c
#   
#   When fib_create_info() allocates new hash tables, it neglects to
#   initialize them.  This leads to an oops during boot on at least
#   machine I use.  This patch addresses the problem.
#   
#   Signed-off-by: David Gibson <dwg@au1.ibm.com>
#   Signed-off-by: David S. Miller <davem@davemloft.net>
# 
# net/ipv4/fib_semantics.c
#   2004/09/17 11:11:04-07:00 david@gibson.dropbear.id.au +5 -1
#   [IPV4]: Initialize newly allocated hash tables in fib_semantics.c
#   
#   When fib_create_info() allocates new hash tables, it neglects to
#   initialize them.  This leads to an oops during boot on at least
#   machine I use.  This patch addresses the problem.
#   
#   Signed-off-by: David Gibson <dwg@au1.ibm.com>
#   Signed-off-by: David S. Miller <davem@davemloft.net>
# 
diff -Nru a/net/ipv4/fib_semantics.c b/net/ipv4/fib_semantics.c
--- a/net/ipv4/fib_semantics.c	2004-09-17 15:33:41 -07:00
+++ b/net/ipv4/fib_semantics.c	2004-09-17 15:33:41 -07:00
@@ -604,8 +604,12 @@
 		if (!new_info_hash || !new_laddrhash) {
 			fib_hash_free(new_info_hash, bytes);
 			fib_hash_free(new_laddrhash, bytes);
-		} else
+		} else {
+			memset(new_info_hash, 0, bytes);
+			memset(new_laddrhash, 0, bytes);
+
 			fib_hash_move(new_info_hash, new_laddrhash, new_size);
+		}
 
 		if (!fib_hash_size)
 			goto failure;

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

* Re: [2.6.9-rc2-bk] Network-related panic on boot
  2004-09-17 22:49 ` David S. Miller
@ 2004-09-18  2:25   ` Bob Gill
  2004-09-18  3:00     ` Jon Smirl
  0 siblings, 1 reply; 6+ messages in thread
From: Bob Gill @ 2004-09-18  2:25 UTC (permalink / raw)
  To: David S. Miller, Linux Kernel Mailing List

On Fri, 2004-09-17 at 16:49, David S. Miller wrote:
> Already fixed.  Patch below:
OK, I might be missing some of the patch.  My net/ipv4/fib_semantics.c
looks like this (from line 601 to 615):
         new_info_hash = fib_hash_alloc(bytes);
                new_laddrhash = fib_hash_alloc(bytes);
                if (!new_info_hash || !new_laddrhash) {
                        fib_hash_free(new_info_hash, bytes);
                        fib_hash_free(new_laddrhash, bytes);
                 } else {
                         memset(new_info_hash, 0, bytes);
                         memset(new_laddrhash, 0, bytes);
                        fib_hash_move(new_info_hash, new_laddrhash,
new_size);
                        }
                                                                                
                if (!fib_hash_size)
                        goto failure;
        }


...and after rebuilding the kernel, I still get the following (similar,
but different) error on boot:
Enabling local filesystem quotas:                          [ OK ]
Enabling swap space:                                       [ OK ]
INIT: Entering runlevel: 5                                 [ OK ]
Entering non-interactive startup
Applying Intel IA32 Microcode update:                      [ OK ]
Starting sysstat:                                          [ OK ]
Starting readahead_early:                                  [ OK ]
Checking for new hardware------------[ cut here ]------------
kernel BUG at net/ipv4/fib_semantics.c:1039!
invalid operand: 0000 [#1]
PREEMPT
Modules linked in: sis900 sg scsi_mod usblp ohci_hcd usbcore thermal
processor fan button battery asus_acpi ac
CPU:    0
EIP:    0060:[<c029d318>]    Not tainted VLI
EFLAGS: 00010246   (2.6.9-rc2-bk3)
EIP is at fib_sync_down+0x1b9/0x1c6
eax: ffffffff   ebx: 00000000   ecx: c03375a0   edx: 00000000
esi: 00000000   edi: 00000006   ebp: f796c138   esp: f79cfe38
ds: 007b   es: 007b   ss: 0068
Process modprobe (pid: 2389, threadinfo=f79ce000 task=f7859560)
Stack: 00000000 00000000 f796c138 ffffffff 00000000 f796c000 f796c000
00000006
       f796c138 c029b7ba 00000000 f796c000 00000002 c033a55c c029b8dd
f796c000
       00000002 c033a55c f796c000 c0124c58 c033a55c 00000006 f796c000
f796c000
Call Trace:
 [<c029b7ba>] fib_disable_ip+0x23/0x4a
 [<c029b8dd>] fib_netdev_event+0x8a/0x99
 [<c0124c58>] notifier_call_chain+0x27/0x3e
 [<c025c505>] unregister_netdevice+0x15b/0x270
 [<c021e398>] unregister_netdev+0x18/0x24
 [<f8ad549e>] sis900_remove+0x85/0xc3 [sis900]
 [<c01bf5f9>] pci_device_remove+0x3b/0x3d
 [<c02078b5>] device_release_driver+0x64/0x66
 [<c02078d7>] driver_detatch+0x20/0x2e
 [<c0207ce4>] bus_remove_driver+0x4c/0x84
 [<c02081ac>] driver_unregister+0x13/0x28
 [<c01bf81d>] pci_unregister_driver+0x16/0x26
 [<f8ad567b>] sis900_cleanup_module+0xf/0x13 [sis900]
 [<c012d36a>] sys_delete_module+0x153/0x183
 [<c0142e77>] do_munmap+0x142/0x17f
 [<c0104019>] sysenter_past_esp+0x52/0x71
Code: 4f 5c e9 78 ff ff ff e8 46 0f 01 00 eb e7 0f 0b 2d 04 57 a3 2d c0
e9 16 ff ff ff 83 48 1c 01 83 44 24 10 01 8b 11 e9 b9 fe ff ff <0f> 0b
12 04 57 a3 2d c0 e9 77 fe ff ff 55 57 56 53 83 ec 10 8b
 
Updating /etc/fstab                                        [ OK ]
Applying iptables firewall rules:                          [ OK ]
Setting network parameters:                                [ OK ]
Bringing up loopback interface:
...
Am I missing part of the patch?

Bob



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

* Re: [2.6.9-rc2-bk] Network-related panic on boot
  2004-09-18  2:25   ` Bob Gill
@ 2004-09-18  3:00     ` Jon Smirl
  2004-09-18 15:29       ` Jon Smirl
  0 siblings, 1 reply; 6+ messages in thread
From: Jon Smirl @ 2004-09-18  3:00 UTC (permalink / raw)
  To: Bob Gill; +Cc: David S. Miller, Linux Kernel Mailing List

I'm getting the same error. As far as I can tell it happens on Redhat
during the Checking for New Hardware" phase when the kernel is
modprobing/rmmod the modules to find out what hardware there is. If I
build the drivers in the problem goes away.


On Fri, 17 Sep 2004 20:25:16 -0600, Bob Gill <gillb4@telusplanet.net> wrote:
> On Fri, 2004-09-17 at 16:49, David S. Miller wrote:
> > Already fixed.  Patch below:
> OK, I might be missing some of the patch.  My net/ipv4/fib_semantics.c
> looks like this (from line 601 to 615):
>         new_info_hash = fib_hash_alloc(bytes);
>                new_laddrhash = fib_hash_alloc(bytes);
>                if (!new_info_hash || !new_laddrhash) {
>                        fib_hash_free(new_info_hash, bytes);
>                        fib_hash_free(new_laddrhash, bytes);
>                 } else {
>                         memset(new_info_hash, 0, bytes);
>                         memset(new_laddrhash, 0, bytes);
>                        fib_hash_move(new_info_hash, new_laddrhash,
> new_size);
>                        }
> 
>                if (!fib_hash_size)
>                        goto failure;
>        }
> 
> 
> ...and after rebuilding the kernel, I still get the following (similar,
> but different) error on boot:
> Enabling local filesystem quotas:                          [ OK ]
> Enabling swap space:                                       [ OK ]
> INIT: Entering runlevel: 5                                 [ OK ]
> Entering non-interactive startup
> Applying Intel IA32 Microcode update:                      [ OK ]
> Starting sysstat:                                          [ OK ]
> Starting readahead_early:                                  [ OK ]
> Checking for new hardware------------[ cut here ]------------
> kernel BUG at net/ipv4/fib_semantics.c:1039!
> invalid operand: 0000 [#1]
> PREEMPT
> Modules linked in: sis900 sg scsi_mod usblp ohci_hcd usbcore thermal
> processor fan button battery asus_acpi ac
> CPU:    0
> EIP:    0060:[<c029d318>]    Not tainted VLI
> EFLAGS: 00010246   (2.6.9-rc2-bk3)
> EIP is at fib_sync_down+0x1b9/0x1c6
> eax: ffffffff   ebx: 00000000   ecx: c03375a0   edx: 00000000
> esi: 00000000   edi: 00000006   ebp: f796c138   esp: f79cfe38
> ds: 007b   es: 007b   ss: 0068
> Process modprobe (pid: 2389, threadinfo=f79ce000 task=f7859560)
> Stack: 00000000 00000000 f796c138 ffffffff 00000000 f796c000 f796c000
> 00000006
>       f796c138 c029b7ba 00000000 f796c000 00000002 c033a55c c029b8dd
> f796c000
>       00000002 c033a55c f796c000 c0124c58 c033a55c 00000006 f796c000
> f796c000
> Call Trace:
> [<c029b7ba>] fib_disable_ip+0x23/0x4a
> [<c029b8dd>] fib_netdev_event+0x8a/0x99
> [<c0124c58>] notifier_call_chain+0x27/0x3e
> [<c025c505>] unregister_netdevice+0x15b/0x270
> [<c021e398>] unregister_netdev+0x18/0x24
> [<f8ad549e>] sis900_remove+0x85/0xc3 [sis900]
> [<c01bf5f9>] pci_device_remove+0x3b/0x3d
> [<c02078b5>] device_release_driver+0x64/0x66
> [<c02078d7>] driver_detatch+0x20/0x2e
> [<c0207ce4>] bus_remove_driver+0x4c/0x84
> [<c02081ac>] driver_unregister+0x13/0x28
> [<c01bf81d>] pci_unregister_driver+0x16/0x26
> [<f8ad567b>] sis900_cleanup_module+0xf/0x13 [sis900]
> [<c012d36a>] sys_delete_module+0x153/0x183
> [<c0142e77>] do_munmap+0x142/0x17f
> [<c0104019>] sysenter_past_esp+0x52/0x71
> Code: 4f 5c e9 78 ff ff ff e8 46 0f 01 00 eb e7 0f 0b 2d 04 57 a3 2d c0
> e9 16 ff ff ff 83 48 1c 01 83 44 24 10 01 8b 11 e9 b9 fe ff ff <0f> 0b
> 12 04 57 a3 2d c0 e9 77 fe ff ff 55 57 56 53 83 ec 10 8b
> 
> Updating /etc/fstab                                        [ OK ]
> Applying iptables firewall rules:                          [ OK ]
> Setting network parameters:                                [ OK ]
> Bringing up loopback interface:
> ...
> Am I missing part of the patch?
> 
> Bob
> 
> 
> 
> 
> -
> 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/
> 



-- 
Jon Smirl
jonsmirl@gmail.com

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

* Re: [2.6.9-rc2-bk] Network-related panic on boot
  2004-09-18  3:00     ` Jon Smirl
@ 2004-09-18 15:29       ` Jon Smirl
  0 siblings, 0 replies; 6+ messages in thread
From: Jon Smirl @ 2004-09-18 15:29 UTC (permalink / raw)
  To: Bob Gill; +Cc: David S. Miller, Linux Kernel Mailing List

There are patches that fix this on this thread:
[TRIVIAL] Fix recent bug in fib_semantics.c 

-- 
Jon Smirl
jonsmirl@gmail.com

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

* [2.6.9-rc2-bk] Network-related panic on boot
@ 2004-09-17 20:41 walt
  0 siblings, 0 replies; 6+ messages in thread
From: walt @ 2004-09-17 20:41 UTC (permalink / raw)
  To: Linux Kernel

The panic is caused by ifconfig while configuring the loopback
interface.  The backtrace (copied by hand) follows:

EIP is at fib_hash_move+0x88/0x150
<snippage>
fib_create_info+0x84/0x450
fn_hash_insert+0xaf/0x490
fib_magic+0x111/0x120
rt_run_flush+0x62/0x90
fib_add_ifaddr+0x6d/0x170
fib_netdev_event+0x48/0xc0
notifier_call_chain+0x2d/0x50
dev_open+0x6f/0x90
dev_change_flags+0x51/0x120
dev_load+0x25/0x70
devinet_ioctl+0x25a/0x690
inet_ioctl+0x5e/0xa0
sock_ioctl+0xe9/0x290
sys_ioctl+0xef/0x260
do_page_fault+0x0/0x599
syscall_call+0x7/0xb
<more snippage>
ifconfig exited with preempt_count 1

If I snipped anything important I will be happy to supply it.

 From updating a second machine just now I can say for certain
that it was one or more of the following updates in the last
24 hours which is the culprit:
Applying   1 revisions to crypto/api.c
Applying   1 revisions to include/linux/pfkeyv2.h
Applying   1 revisions to include/linux/xfrm.h
Applying   1 revisions to net/key/af_key.c
Applying   3 revisions to drivers/net/tg3.c
Applying   1 revisions to drivers/net/tg3.h
Applying   1 revisions to include/net/sctp/sctp.h
Applying   1 revisions to net/sctp/protocol.c
Applying   1 revisions to net/sctp/socket.c
Applying   3 revisions to drivers/net/sungem.c
Applying   1 revisions to drivers/net/sungem.h
Applying   1 revisions to fs/compat.c
Applying   1 revisions to include/linux/rtnetlink.h
Applying   2 revisions to include/net/inet_ecn.h
Applying   2 revisions to include/net/ip_fib.h
Applying   1 revisions to include/net/sock.h
Applying   2 revisions to include/net/tcp.h
Applying   1 revisions to net/core/sock.c
Applying   1 revisions to net/ipv4/af_inet.c
Applying   2 revisions to net/ipv4/fib_hash.c
Applying   3 revisions to net/ipv4/fib_semantics.c
Applying   1 revisions to net/ipv4/ip_gre.c
Applying   2 revisions to net/ipv4/netfilter/ip_tables.c
Applying   1 revisions to net/ipv4/raw.c
Applying   2 revisions to net/ipv4/tcp_ipv4.c
Applying   1 revisions to net/ipv4/tcp_minisocks.c
Applying   1 revisions to net/ipv4/udp.c
Applying   1 revisions to net/sched/sch_cbq.c
Applying   1 revisions to net/sched/sch_red.c
Applying   1 revisions to net/ipv4/xfrm4_input.c

Hm.  fib_hash, maybe?


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

end of thread, other threads:[~2004-09-18 15:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-17 22:26 [2.6.9-rc2-bk] Network-related panic on boot Bob Gill
2004-09-17 22:49 ` David S. Miller
2004-09-18  2:25   ` Bob Gill
2004-09-18  3:00     ` Jon Smirl
2004-09-18 15:29       ` Jon Smirl
  -- strict thread matches above, loose matches on Subject: below --
2004-09-17 20:41 walt

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).