2004-09-17 22:27:20

by bob

[permalink] [raw]
Subject: [2.6.9-rc2-bk] Network-related panic on boot

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


2004-09-17 22:53:04

by David Miller

[permalink] [raw]
Subject: Re: [2.6.9-rc2-bk] Network-related panic on boot


Already fixed. Patch below:

# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
# 2004/09/17 11:11:23-07:00 [email protected]
# [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 <[email protected]>
# Signed-off-by: David S. Miller <[email protected]>
#
# net/ipv4/fib_semantics.c
# 2004/09/17 11:11:04-07:00 [email protected] +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 <[email protected]>
# Signed-off-by: David S. Miller <[email protected]>
#
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;

2004-09-18 02:23:36

by bob

[permalink] [raw]
Subject: Re: [2.6.9-rc2-bk] Network-related panic on boot

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


2004-09-18 03:00:36

by [email protected]

[permalink] [raw]
Subject: Re: [2.6.9-rc2-bk] Network-related panic on boot

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 <[email protected]> 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 [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>



--
Jon Smirl
[email protected]

2004-09-18 15:31:34

by [email protected]

[permalink] [raw]
Subject: Re: [2.6.9-rc2-bk] Network-related panic on boot

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

--
Jon Smirl
[email protected]