From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jaume Catarineu Subject: Kernel BUG: Qos seg. fault Date: Mon, 24 May 2004 11:57:25 +0000 Sender: netdev-bounce@oss.sgi.com Message-ID: <40B1E325.80408@upf.edu> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------080806080609060104090703" Return-path: To: davem@redhat.com, netdev@oss.sgi.com Errors-to: netdev-bounce@oss.sgi.com List-Id: netdev.vger.kernel.org This is a multi-part message in MIME format. --------------080806080609060104090703 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Hi all, I've configured succesfuly different QoS configurations, but there is one that *allways* returns a segmentation fault in the kernel module (or code). This part of the kernel seems to crash when installing an IP filter. I've tried the code in 2 different computers with different hardware and even different kernel version (2.4.25 and 2.6.4) The code is the following: -------START-------- tc qdisc add dev lo root handle 1: tbf rate 250kbit burst 5k limit 5k tc qdisc add dev lo parent 1: handle 20: prio tc qdisc add dev lo parent 20:1 handle 210: sfq perturb 10 tc qdisc add dev lo parent 20:2 handle 220: tbf rate 250kbit burst 5k \ limit 5k tc qdisc add dev lo parent 20:3 handle 230: sfq perturb 10 tc filter add dev $ETH_IPSEC protocol ip parent 1:0 prio 1 handle 2 \ fw flowid 20:3 -------END---------- The line "tc filter..." produces the system crash. Actually, the system is usable, but any command refering the QoS hangs (tc, iptables...). Even the system shutdown is not available because Linux freezes when stopping the network. It seems that is something related to the filter section in the QoS modules. In the files attached are described the technical characteristics of the computers. Thank you for your work. Jaume, --------------080806080609060104090703 Content-Type: text/plain; name="qos-2.4.25.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="qos-2.4.25.txt" processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 8 model name : Pentium III (Coppermine) stepping : 3 cpu MHz : 731.474 cache size : 256 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 2 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 mmx fxsr sse bogomips : 1458.17 Linux version 2.4.25 (root@servidor) (gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)) #2 Tue Mar 23 19:36:49 CET 2004 =======modules after the seg fault======== sch_sfq 4128 2 (autoclean) sch_prio 3968 1 (autoclean) sch_tbf 4160 2 (autoclean) ipt_MARK 1368 0 (autoclean) iptable_mangle 2776 0 (autoclean) ipt_MASQUERADE 2200 1 (autoclean) iptable_nat 21208 1 (autoclean) [ipt_MASQUERADE] ip_conntrack 29800 0 (autoclean) [ipt_MASQUERADE iptable_nat] 3c59x 29456 2 ipt_REJECT 4344 0 (autoclean) iptable_filter 2412 0 (autoclean) ip_tables 15712 8 [ipt_MARK iptable_mangle ipt_MASQUERADE iptable_nat ipt_REJECT iptable_filter] keybdev 3136 0 (unused) mousedev 5556 0 (unused) input 5760 0 [keybdev mousedev] hid 12408 0 (unused) ========= PCI DEVICES ========= 00:00.0 Host bridge: VIA Technologies, Inc. VT8605 [ProSavage PM133] (rev 81) Subsystem: Asustek Computer, Inc.: Unknown device 802c Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- SERR- Capabilities: [c0] Power Management version 2 Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-) Status: D0 PME-Enable- DSel=0 DScale=0 PME- 00:01.0 PCI bridge: VIA Technologies, Inc. VT8605 [PM133 AGP] (prog-if 00 [Normal decode]) Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66Mhz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- SERR- Reset- FastB2B- Capabilities: [80] Power Management version 2 Flags: PMEClk- DSI- D1+ D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-) Status: D0 PME-Enable- DSel=0 DScale=0 PME- 00:04.0 ISA bridge: VIA Technologies, Inc. VT82C686 [Apollo Super South] (rev 22) Subsystem: Asustek Computer, Inc.: Unknown device 802c Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping+ SERR- FastB2B- Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- [disabled] [size=128K] Capabilities: [40] Power Management version 2 Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-) Status: D0 PME-Enable- DSel=0 DScale=0 PME- 00:0e.1 SCSI storage controller: LSI Logic / Symbios Logic 53c896 (rev 05) Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr+ Stepping- SERR- FastB2B- Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- SERR- [disabled] [size=128K] Capabilities: [40] Power Management version 2 Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-) Status: D0 PME-Enable- DSel=0 DScale=0 PME- 00:0f.0 Ethernet controller: 3Com Corporation 3c905C-TX/TX-M [Tornado] (rev 74) Subsystem: 3Com Corporation 3C905C-TX Fast Etherlink for PC Management NIC Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- SERR- [disabled] [size=128K] Capabilities: [dc] Power Management version 2 Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold+) Status: D0 PME-Enable- DSel=0 DScale=2 PME- 00:10.0 Ethernet controller: 3Com Corporation 3c905C-TX/TX-M [Tornado] (rev 74) Subsystem: 3Com Corporation 3C905C-TX Fast Etherlink for PC Management NIC Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- SERR- [disabled] [size=128K] Capabilities: [dc] Power Management version 2 Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold+) Status: D0 PME-Enable- DSel=0 DScale=2 PME- 01:00.0 VGA compatible controller: Intel Corp. i740 (rev 21) (prog-if 00 [VGA]) Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66Mhz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- SERR- Capabilities: [dc] Power Management version 1 Flags: PMEClk- DSI+ D1+ D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-) Status: D0 PME-Enable- DSel=0 DScale=0 PME- --------------080806080609060104090703 Content-Type: text/plain; name="qos-2.6.4.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="qos-2.6.4.txt" processor : 0 vendor_id : AuthenticAMD cpu family : 6 model : 6 model name : AMD Athlon(TM) XP 2000+ stepping : 2 cpu MHz : 1666.562 cache size : 256 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 1 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 mmx fxsr sse syscall mmxext 3dnowext 3dnow bogomips : 3301.37 =======MODULES AFTER SEG FAULT ============ sch_sfq 5568 2 - Live 0xe1e4e000 sch_prio 5376 1 - Live 0xe1e2c000 sch_tbf 6592 2 - Live 0xe1e29000 vmnet 30608 8 - Live 0xe1e58000 vmmon 48664 0 - Live 0xe1e36000 sg 38752 0 - Live 0xe1e43000 sr_mod 17764 0 - Live 0xe1e30000 lp 12200 0 - Live 0xe1e25000 md5 4160 1 - Live 0xe0ab6000 ipv6 252288 8 - Live 0xe0d7a000 nls_cp437 5632 4 - Live 0xe0ab3000 smbfs 67768 5 - Live 0xe0b02000 snd_seq_oss 34112 0 - Live 0xe0a48000 snd_seq_midi_event 8192 1 snd_seq_oss, Live 0xe0a2b000 snd_seq 56336 4 snd_seq_oss,snd_seq_midi_event, Live 0xe0af3000 snd_pcm_oss 52388 0 - Live 0xe0ae5000 snd_mixer_oss 18688 1 snd_pcm_oss, Live 0xe0aad000 snd_cmipci 33588 1 - Live 0xe0a53000 snd_pcm 99236 2 snd_pcm_oss,snd_cmipci, Live 0xe0acb000 snd_page_alloc 11972 1 snd_pcm, Live 0xe0a27000 snd_opl3_lib 10752 1 snd_cmipci, Live 0xe0a17000 snd_timer 25220 3 snd_seq,snd_pcm,snd_opl3_lib, Live 0xe0a30000 snd_hwdep 9696 1 snd_opl3_lib, Live 0xe0a13000 gameport 4736 1 snd_cmipci, Live 0xe0a10000 snd_mpu401_uart 7808 1 snd_cmipci, Live 0xe0a0d000 snd_rawmidi 25312 1 snd_mpu401_uart, Live 0xe09d7000 snd_seq_device 7880 4 snd_seq_oss,snd_seq,snd_opl3_lib,snd_rawmidi, Live 0xe09d4000 snd 53828 15 snd_seq_oss,snd_seq_midi_event,snd_seq,snd_pcm_oss,snd_mixer_oss,snd_cmipci,snd_pcm,snd_opl3_lib,snd_timer,snd_hwdep,snd_mpu401_uart,snd_rawmidi,snd_seq_device, Live 0xe0a39000 soundcore 9888 1 snd, Live 0xe08f5000 af_packet 22536 2 - Live 0xe09a6000 hid 44608 0 - Live 0xe0a1b000 ide_floppy 17408 0 - Live 0xe09a0000 ide_cd 41156 0 - Live 0xe09c8000 cdrom 38048 2 sr_mod,ide_cd, Live 0xe09bd000 floppy 60628 0 - Live 0xe09fd000 8139too 24384 0 - Live 0xe0999000 mii 5248 1 8139too, Live 0xe08ed000 ohci1394 34180 0 - Live 0xe0949000 ieee1394 319032 1 ohci1394, Live 0xe0a5e000 ext3 117288 1 - Live 0xe09df000 jbd 61272 1 ext3, Live 0xe09ad000 nls_cp850 4800 2 - Live 0xe08d7000 vfat 15680 2 - Live 0xe08da000 fat 48000 1 vfat, Live 0xe098c000 nls_iso8859_1 3968 7 - Live 0xe0802000 ntfs 92108 1 - Live 0xe0953000 nvidia 2074216 12 - Live 0xe0b7e000 via_agp 7680 1 - Live 0xe0829000 agpgart 30952 2 via_agp, Live 0xe08bf000 parport_pc 33088 1 - Live 0xe08e0000 imm 12296 0 - Live 0xe08ba000 scsi_mod 118328 3 sg,sr_mod,imm, Live 0xe08f9000 parport 42440 3 lp,parport_pc,imm, Live 0xe08c8000 usblp 12928 0 - Live 0xe0813000 ehci_hcd 25732 0 - Live 0xe0821000 uhci_hcd 31120 0 - Live 0xe0818000 usbcore 104668 6 hid,usblp,ehci_hcd,uhci_hcd, Live 0xe082c000 rtc 12920 0 - Live 0xe0808000 Linux version 2.6.4 (root@Amadeus) (gcc version 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk)) #1 Tue Mar 23 01:52:21 GMT 2004 ========== PCI ============== 00:00.0 Host bridge: VIA Technologies, Inc. VT8366/A/7 [Apollo KT266/A/333] Subsystem: Asustek Computer, Inc. A7V333 Mainboard Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66Mhz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- SERR- 00:01.0 PCI bridge: VIA Technologies, Inc. VT8366/A/7 [Apollo KT266/A/333 AGP] (prog-if 00 [Normal decode]) Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66Mhz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- SERR- Reset- FastB2B- Capabilities: 00:05.0 Multimedia audio controller: C-Media Electronics Inc CM8738 (rev 10) Subsystem: Asustek Computer, Inc. CMI8738 6ch-MX Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping+ SERR- FastB2B- Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- SERR- 00:09.0 USB Controller: VIA Technologies, Inc. USB (rev 50) (prog-if 00 [UHCI]) Subsystem: Asustek Computer, Inc.: Unknown device 8080 Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- SERR- 00:09.1 USB Controller: VIA Technologies, Inc. USB (rev 50) (prog-if 00 [UHCI]) Subsystem: Asustek Computer, Inc.: Unknown device 8080 Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- SERR- 00:09.2 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 51) (prog-if 20 [EHCI]) Subsystem: Asustek Computer, Inc.: Unknown device 8080 Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- SERR- 00:0c.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10) Subsystem: Realtek Semiconductor Co., Ltd. RT8139 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- SERR- 00:0d.0 FireWire (IEEE 1394): VIA Technologies, Inc. IEEE 1394 Host Controller (rev 46) (prog-if 10 [OHCI]) Subsystem: VIA Technologies, Inc. IEEE 1394 Host Controller Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping+ SERR- FastB2B- Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- SERR- 00:11.0 ISA bridge: VIA Technologies, Inc. VT8233A ISA Bridge Subsystem: Asustek Computer, Inc.: Unknown device 808c Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping+ SERR- FastB2B- Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- SERR- 00:11.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT8233/A/C/VT8235 PIPC Bus Master IDE (rev 06) (prog-if 8a [Master SecP PriP]) Subsystem: Asustek Computer, Inc. A7V8X motherboard Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- SERR- 00:11.2 USB Controller: VIA Technologies, Inc. USB (rev 23) (prog-if 00 [UHCI]) Subsystem: Asustek Computer, Inc. A7V8X motherboard Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- SERR- 00:11.3 USB Controller: VIA Technologies, Inc. USB (rev 23) (prog-if 00 [UHCI]) Subsystem: Asustek Computer, Inc. A7V8X motherboard Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- SERR- 01:00.0 VGA compatible controller: nVidia Corporation NV17 [GeForce4 MX 460] (rev a3) (prog-if 00 [VGA]) Subsystem: Micro-Star International Co., Ltd.: Unknown device 8670 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66Mhz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- SERR- --------------080806080609060104090703--