bugThe GNU Hurd - Bugs: bug #15073, kernel panic with sis900 NIC and...

 
 

bug #15073: kernel panic with sis900 NIC and gnumach(-dbg) 20050801-1

Submitter:  None
Submitted:  Sat 26 Nov 2005 08:44:23 PM UTC
   
 
Category:  GNU Mach Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Privacy:  Public
Assigned to:  tschwinge Originator Name:  Thomas Schlesinger
Originator Email:  -email is unavailable- Open/Closed:  Closed
Reproducibility:  Every Time Size (loc):  None
Planned Release:  None Effort:  0.00
Wiki-like text discussion box: 


* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 02 Feb 2006 10:54:23 PM UTC, comment #5: 

Sergio: I'm not entirely sure that it's the `most correct' fix, since eth_addr is the device's MAC address and this is only six bytes long.  But eight bytes are read form the card and the checksum is calculated using those eight bytes and I don't have a card to investigate further and in the recent Linux-2.6 kernel still eight bytes are read and the patch is at least perfectly safe, etc.

I put in Sergio's patch.

2006-02-02  Sergio Lopez  <koro@sinrega.org>

        * linux/src/drivers/net/apricot.c (apricot_probe): Increase eth_addr
        size to 8 so we do not trash the stack when reading from the io ports.

Thanks!

Thomas Schwinge <tschwinge>
Group administrator
Sat 31 Dec 2005 12:25:26 PM UTC, comment #4: 

It isn't like we are any better... :-)  Sergio, Thomas, thanks for tracking and reporting this.

Alfred M. Szmidt <ams>
Mon 19 Dec 2005 03:57:03 PM UTC, comment #3: 

BTW: sorry for my long reaction time ;-)

Thomas Schlesinger <schlesi>
Mon 19 Dec 2005 03:54:51 PM UTC, comment #2: 

The problem has gone with the latest gnumach-update (from debian).

Thomas Schlesinger <schlesi>
Mon 28 Nov 2005 12:36:21 AM UTC, comment #1: 

Thanks for the report :-)

There's a small bug in the apricot network driver which trashes the kernel stack (this problem only arises when using gcc-4.x, and not with gcc-2.95 or gcc-3.x). Please try the attached patch.

(Thanks to Guillem Jover for the changelog entry and building the patch)

Sergio López <k0ro>
Group Member
Sat 26 Nov 2005 08:44:23 PM UTC, original submission:  

After updating to gnumach(-dbg) 20050801-1, I get a kernel panic while
booting (the problem didn't exist with hurd_20050513-4:

GNU Mach 1.3
AT386 boot: physical memory from 0x0 to 0x20100000
GNU Mach 1.3
AT386 boot: physical memory from 0x0 to 0x20100000
pcibios_init : BIOS32 Service Directory structure at 0xp
pcibios_init : BIOS32 Service Directory entry at 0xfdb10
pcibios_init : PCI BIOS revision 2.10 entry at 0xfdb31
Probing PCI hardware.
ide: SiS 5513 (dual FIFO) DMA Bus Mastering IDE
    Controller on PCI bus 0 function 21
    ide0: BM-DMA at 0xff00-0xff07
    ide1: BM-DMA at 0xff08-0xff0f
hd0: Maxtor 2F040L0, 39205MB w/2048kB Cache, CHS=4998/255/63
hd1: WDC WD2000JB-00GVA0, 131071MB w/8192kB Cache, CHS=16709/255/63
hd2: _NEC DV-5700B, ATAPI CDROM drive
hd3: R/RW 12x8x32, ATAPI CDROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
Failed initialization of WD-7000 SCSI card!
EATA0: address 0x1f0 in use, skipping probe.
EATA0: address 0x170 in use, skipping probe.
ppa: Version 1.42
ppa: Probing port 03bc
ppa: Probing port 0378
ppa:     SPP port present
ppa:     ECP with a i byte FIFO present
ppa:     PS/2 bidirectional port present
ppa:     Passed Intel bug check.
ppa:     EPP 1.9 with hardware direction protocol
ppa: Probing port 0278
scsi : 0 hosts.
scsi : detected total.
rtl8139.c:v1.23a 8/24/2003 Donald Becker, becker@scyld.com.
 http://www.scyld.com/network/rtl8139.html
sis900.c: modified v1.06.11  4/30/2002
eth0: SiS 900 PCI Fast Ethernet at 0xd400, IRQ 11,  0: b:6a:5f:39:ec.
eth0: Realtek RTL8201 PHY transceiver found at address 1.
eth0: Using transceiver found at address 1 as default
via-rhine.c:v1.16 7/22/2003  Written by Donald Becker <becker@scyld.com>
  http://www.scyld.com/network/via-rhine.html

  1. 3c515 cards found.

RV¾ ?è( ^¿ø?f<-ƒ} : wavelan_probe(): invalid base address
RV¾ ?è( ^¿ø?f<-ƒ} : D-Link DE-600 pocket adapter: not at I/O 0x378.
D-Link DE-620 pocket adapter not identified in the printer port
Partition check (DOS partitions):
 hd0: hd0s1 hd0s2 hd0s3
 hd1: hd1s1 hd1s2 hd1s3 hd1s4
com0: at atbus0, port = 3f8, spl = 6, pic = 4. (DOS COM1)

module 0: /hurd/ext2fs.static --multiboot-command-line=${kernel-command-line}
--host-priv-port=${host-port} --device-master-port=${device-port}
--exec-server-task=${exec-task} -T typed ${root} $(task-create)
$(task-resume)
module 1: /lib/ld.so.1 /hurd/exec $(exec-task=task-create)                                                                                                                                                                    
2 multiboot modules                                                                                                                                                                                                                      
task loaded: /hurd/ext2fs.static
--multiboot-command-line=/boot/gnumach-dbg.gz root=device:hd0s1
--host-priv-port=2 --device-master-port=3 --exec-server-task=4 -T typed
device:hd0s1
task loaded: /lib/ld.so.1 /hurd/exec

start /hurd/ext2fs.static: eth0: Media Link On 100mbps full-duplex


My processor is an AMD Athlon-XP.
uppermem was set to 524288 in the grub.conf.

This is some information about my hardware (recieved by Linux):
SchlesisPC ~ # lspci -v
00:00.0 Host bridge: Silicon Integrated Systems [SiS] 746 Host (rev 10)
        Subsystem: ASRock Incorporation Unknown device 0746
        Flags: bus master, medium devsel, latency 0
        Memory at d0000000 (32-bit, non-prefetchable) [size=64M]
        Capabilities: [c0] AGP version 3.0

00:01.0 PCI bridge: Silicon Integrated Systems [SiS] SG86C202 (prog-if 00
[Normal decode])
        Flags: bus master, fast devsel, latency 32
        Bus: primary=00, secondary=01, subordinate=02, sec-latency=32
        Memory behind bridge: cdd00000-cfefffff
        Prefetchable memory behind bridge: bda00000-cdbfffff

00:02.0 ISA bridge: Silicon Integrated Systems [SiS] SiS963 [MuTIOL Media IO]
(rev 25)
        Flags: bus master, medium devsel, latency 0

00:02.1 SMBus: Silicon Integrated Systems [SiS] SiS961/2 SMBus Controller
        Flags: medium devsel
        I/O ports at 0c00 [size=32]

00:02.5 IDE interface: Silicon Integrated Systems [SiS] 5513 [IDE] (prog-if 80
[Master])
        Subsystem: ASRock Incorporation Unknown device 5513
        Flags: bus master, medium devsel, latency 128
        I/O ports at ff00 [size=16]

00:02.7 Multimedia audio controller: Silicon Integrated Systems [SiS] Sound
Controller (rev a0)
        Subsystem: ASRock Incorporation Unknown device 7012
        Flags: bus master, medium devsel, latency 32, IRQ 18
        I/O ports at dc00 [size=256]
        I/O ports at d800 [size=128]
        Capabilities: [48] Power Management version 2

00:03.0 USB Controller: Silicon Integrated Systems [SiS] USB 1.0 Controller
(rev 0f) (prog-if 10 [OHCI])
        Subsystem: ASRock Incorporation Unknown device 7001
        Flags: bus master, medium devsel, latency 32, IRQ 11
        Memory at cfffd000 (32-bit, non-prefetchable) [size=4K]

00:03.1 USB Controller: Silicon Integrated Systems [SiS] USB 1.0 Controller
(rev 0f) (prog-if 10 [OHCI])
        Subsystem: ASRock Incorporation Unknown device 7001
        Flags: bus master, medium devsel, latency 32, IRQ 3
        Memory at cfffe000 (32-bit, non-prefetchable) [size=4K]

00:03.2 USB Controller: Silicon Integrated Systems [SiS] USB 2.0 Controller
(prog-if 20 [EHCI])
        Subsystem: ASRock Incorporation Unknown device 7001
        Flags: bus master, medium devsel, latency 32, IRQ 16
        Memory at cffff000 (32-bit, non-prefetchable) [size=4K]
        Capabilities: [50] Power Management version 2

00:04.0 Ethernet controller: Silicon Integrated Systems [SiS] SiS900 PCI Fast
Ethernet (rev 90)
        Subsystem: ASRock Incorporation Unknown device 8201
        Flags: bus master, medium devsel, latency 32, IRQ 19
        I/O ports at d400 [size=256]
        Memory at cfffc000 (32-bit, non-prefetchable) [size=4K]
        Expansion ROM at 50000000 [disabled] [size=128K]
        Capabilities: [40] Power Management version 2

01:00.0 VGA compatible controller: nVidia Corporation NV34 [GeForce FX 5200]
(rev a1) (prog-if 00 [VGA])
        Subsystem: ASUSTeK Computer Inc. Unknown device 8180
        Flags: bus master, 66MHz, medium devsel, latency 248, IRQ 17
        Memory at ce000000 (32-bit, non-prefetchable) [size=16M]
        Memory at c0000000 (32-bit, prefetchable) [size=128M]
        [virtual] Expansion ROM at cfee0000 [disabled] [size=128K]
        Capabilities: [60] Power Management version 2
        Capabilities: [44] AGP version 3.0

SchlesisPC irq # cat /proc/interrupts
           CPU0
  0:    2332497    IO-APIC-edge  timer
  1:        404    IO-APIC-edge  i8042
  7:          0    IO-APIC-edge  parport0
  8:          2    IO-APIC-edge  rtc
  9:          0   IO-APIC-level  acpi
 12:      10647    IO-APIC-edge  i8042
 14:      80367    IO-APIC-edge  ide0
 15:        133    IO-APIC-edge  ide1
 16:   26351698   IO-APIC-level  ehci_hcd:usb1
 17:     958388   IO-APIC-level  nvidia
 18:     378289   IO-APIC-level  SiS SI7012
 19:       1122   IO-APIC-level  eth0
NMI:          0
LOC:    2332390
ERR:          0
MIS:          0

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #2562:  16_net_apricot_stack_of.patch added by k0ro (609B - application/octet-stream - Patch for the small bug in apricot network driver)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follow 6 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2006-02-02 tschwinge StatusIn Progress Fixed
    Assigned toNone tschwinge
    Open/ClosedOpen Closed
2005-12-31 ams StatusNone In Progress
2005-11-28 k0ro Attached File- Added 16_net_apricot_stack_of.patch, #3138
2005-11-26 None Carbon-Copy- Added schlesix --AT-- gmx --PUNKT-- de

Back to the top

Powered by Savane 3.13-d3ae.
Corresponding source code