Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S264129AbUFCSD7 (ORCPT ); Thu, 3 Jun 2004 14:03:59 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S263893AbUFCSD7 (ORCPT ); Thu, 3 Jun 2004 14:03:59 -0400 Received: from vsmtp1b.tin.it ([212.216.176.141]:22415 "EHLO vsmtp1.tin.it") by vger.kernel.org with ESMTP id S263807AbUFCSBe (ORCPT ); Thu, 3 Jun 2004 14:01:34 -0400 From: "andreamrl@tiscali.it" Reply-To: andreamrl@tiscali.it To: linux-kernel@vger.kernel.org Subject: PROBLEM:kernel BUG at mm/page_alloc.c:786! Date: Thu, 3 Jun 2004 20:01:33 +0200 User-Agent: KMail/1.6.1 MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200406032001.34172.andreamrl@tiscali.it> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 24246 Lines: 614 Hi! I had a kernel bug. I report it following the guidelines at http://www.kernel.org/pub/linux/docs/lkml/reporting-bugs.html Thanks, Andrea Merello [1.] One line summary of the problem: kernel BUG at mm/page_alloc.c:786! [2.] Full description of the problem/report: I got kernel oops when insmodding the intel pro wireless 2100 driver. There was written "kernel BUG" in the oops (so suppose not bug in the driver). The driver insmodded but didn't worked. I couldn't rmmod it. So i rebooted but the system seemed to hang during stopping services. This is the first time it happen. Note all the information i attach here (except the oops) has been obtained the next reboot. Maybe it was better if I got immediately after the Oops.. sorry.. [3.] Keywords (i.e., modules, networking, kernel): kernel 2.6.6 modules hosap hostap_crypt_wep slamr (driver for my modem) and the insmodding ipw2100 [4.] Kernel version (from /proc/version): Linux version 2.6.6 (root@bloodymary) (gcc version 3.2 20020903 (Red Hat Linux 8.0 3.2-7)) #5 Tue May 25 10:36:47 CEST 2004 [5.] Output of Oops.. message (if applicable) with symbolic information ------------[ cut here ]------------ kernel BUG at mm/page_alloc.c:786! invalid operand: 0000 [#1] PREEMPT CPU: 0 EIP: 0060:[] Tainted: P EFLAGS: 00210246 (2.6.6) EIP is at __free_pages+0x3e/0x50 eax: 00000000 ebx: 00001000 ecx: c1011b80 edx: 00000000 esi: 008dc000 edi: c08dc000 ebp: c3547220 esp: c14cde30 ds: 007b es: 007b ss: 0068 Process modprobe (pid: 1600, threadinfo=c14cc000 task=ccb0b7b0) Stack: 00000800 c08db000 d0f3bef6 cf4a3c44 00001000 c08dc000 008dc000 c3547220 cf4a3c00 c3547220 d0f3cbe9 c3547220 c354763c c3547220 c3547220 cf4a3c00 c3547000 d0f3dfbb c3547220 fffffff4 d0f3fc97 c3547220 c3547000 c3547220 Call Trace: [] bd_queue_free+0xa6/0xe0 [ipw2100] [] ipw2100_rx_free+0x29/0x120 [ipw2100] [] ipw2100_queues_allocate+0x2b/0x60 [ipw2100] [] ipw2100_pci_init_one+0x367/0x5a0 [ipw2100] [] sysfs_new_inode+0x5e/0xb0 [] pci_device_probe_static+0x52/0x70 [] __pci_device_probe+0x3c/0x50 [] pci_device_probe+0x2c/0x50 [] bus_match+0x3f/0x70 [] driver_attach+0x5c/0x90 [] bus_add_driver+0x8d/0xa0 [] driver_register+0x2f/0x40 [] pci_register_driver+0x5c/0x90 [] ipw2100_proc_init+0xad/0x150 [ipw2100] [] ipw2100_init+0x65/0x92 [ipw2100] [] sys_init_module+0x12c/0x250 [] syscall_call+0x7/0xb Code: 0f 0b 12 03 c0 2a 3d c0 eb cd 90 8d b4 26 00 00 00 00 85 c0 [6.] A small shell script or example program which triggers the problem (if possible) [7.] Environment KDE was finishing to restore the applications that i leaved opened the previous session. In the same time i have insmodded the driver using the KDE console. [7.1.] Software (add the output of the ver_linux script here) If some fields are empty or look unusual you may have an old version. Compare to the current minimal requirements in Documentation/Changes. Linux bloodymary 2.6.6 #5 Tue May 25 10:36:47 CEST 2004 i686 i686 i386 GNU/Linux Gnu C 3.2 Gnu make 3.79.1 binutils 2.13.90.0.2 util-linux 2.11r mount 2.11r module-init-tools 0.9.14 e2fsprogs 1.27 jfsutils 1.0.17 reiserfsprogs 3.6.2 pcmcia-cs 3.1.31 quota-tools 3.06. PPP 2.4.1 isdn4k-utils 3.1pre4 nfs-utils 1.0.1 Linux C Library 2.2.93 Dynamic linker (ldd) 2.2.93 Procps 2.0.7 Net-tools 1.60 Kbd 1.06 Sh-utils 2.0.12 Modules Loaded ipw2100 hostap_crypt_wep hostap slamr [7.2.] Processor information (from /proc/cpuinfo): processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 9 model name : Intel(R) Pentium(R) M processor 1600MHz stepping : 5 cpu MHz : 600.111 cache size : 1024 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 mce cx8 sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 tm bogomips : 1187.84 [7.3.] Module information (from /proc/modules): ipw2100 163460 0 - Live 0xd08ef000 hostap_crypt_wep 5120 1 - Live 0xd08b8000 hostap 105672 2 ipw2100,hostap_crypt_wep, Live 0xd08d4000 slamr 319300 2 - Live 0xd091f000 [7.4.] Loaded driver and hardware information (/proc/ioports, /proc/iomem) [user@bloodymary user]$ cat /proc/ioports 0000-001f : dma1 0020-0021 : pic1 0040-005f : timer 0060-006f : keyboard 0070-0077 : rtc 0080-008f : dma page reg 00a0-00a1 : pic2 00c0-00df : dma2 00f0-00ff : fpu 0170-0177 : ide1 01f0-01f7 : ide0 0376-0376 : ide1 0378-037a : parport0 03c0-03df : vesafb 03f6-03f6 : ide0 04d0-04d1 : pnp 00:0b 0cf8-0cff : PCI conf1 1000-107f : 0000:00:1f.0 1000-105f : pnp 00:0b 1008-100b : ACPI timer 1010-1015 : ACPI CPU throttle 1060-107f : pnp 00:0b 1180-11bf : 0000:00:1f.0 1180-11bf : pnp 00:0b 1800-1807 : 0000:00:02.0 1810-181f : 0000:00:1f.1 1810-1817 : ide0 1818-181f : ide1 1820-183f : 0000:00:1d.0 1820-183f : uhci_hcd 1840-185f : 0000:00:1d.1 1840-185f : uhci_hcd 1860-187f : 0000:00:1d.2 1860-187f : uhci_hcd 1880-189f : 0000:00:1f.3 1880-188f : i801-smbus 18c0-18ff : 0000:00:1f.5 18c0-18ff : Intel ICH4 1c00-1cff : 0000:00:1f.5 1c00-1cff : Intel ICH4 2000-207f : 0000:00:1f.6 2000-207f : ICH4 2400-24ff : 0000:00:1f.6 2400-24ff : ICH4 4000-40ff : PCI CardBus #03 4400-44ff : PCI CardBus #03 00000000-0009f7ff : System RAM 0009f800-0009ffff : reserved 000a0000-000bffff : Video RAM area 000c0000-000ccbff : Video ROM 000cd000-000cdfff : Adapter ROM 000ce000-000cefff : Adapter ROM 000f0000-000fffff : System ROM 00100000-0f6dffff : System RAM 00100000-003bab92 : Kernel code 003bab93-004b713f : Kernel data 0f6e0000-0f6eafff : ACPI Tables 0f6eb000-0f6fffff : ACPI Non-volatile Storage 0f700000-0fffffff : reserved 10000000-100003ff : 0000:00:1f.1 10001000-10001fff : 0000:02:09.0 10001000-10001fff : yenta_socket 10400000-107fffff : PCI CardBus #03 10800000-10bfffff : PCI CardBus #03 e0000000-e007ffff : 0000:00:02.0 e0080000-e00fffff : 0000:00:02.1 e0100000-e01003ff : 0000:00:1d.7 e0100000-e01003ff : ehci_hcd e0100800-e01008ff : 0000:00:1f.5 e0100800-e01008ff : ich_audio MBBAR e0100c00-e0100dff : 0000:00:1f.5 e0100c00-e0100dff : ich_audio MMBAR e0200000-e0201fff : 0000:02:05.0 e0200000-e0201fff : b44 e0202000-e0202fff : 0000:02:03.0 e0202000-e02027ff : ohci1394 e0203000-e0203fff : 0000:02:06.0 e0203000-e0203fff : ipw2100 e8000000-efffffff : 0000:00:02.0 e8000000-e87cffff : vesafb f0000000-f7ffffff : 0000:00:02.1 fec10000-fec1ffff : reserved ff800000-ffbfffff : reserved fffffc00-ffffffff : reserved [7.5.] PCI information ('lspci -vvv' as root) 00:00.0 Host bridge: Intel Corp. 82852/855GM Host Bridge (rev 02) Subsystem: Unknown device 1734:1033 Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- SERR- (32-bit, prefetchable) Capabilities: [40] #09 [a105] 00:00.1 System peripheral: Intel Corp. 855GM/GME GMCH Memory I/O Control Registers (rev 02) Subsystem: Unknown device 1734:1033 Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort+ SERR- Reset- FastB2B- 00:1f.0 ISA bridge: Intel Corp. 82801DBM LPC Interface Controller (rev 03) Control: I/O+ Mem+ BusMaster+ SpecCycle+ MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- SERR- TAbort- SERR- Region 1: I/O ports at Region 2: I/O ports at Region 3: I/O ports at Region 4: I/O ports at 1810 [size=16] Region 5: Memory at 10000000 (32-bit, non-prefetchable) [size=1K] 00:1f.3 SMBus: Intel Corp. 82801DB/DBM (ICH4) SMBus Controller (rev 03) Subsystem: Unknown device 1734:1033 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- [disabled] [size=64K] Capabilities: [40] Power Management version 2 Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=375mA PME(D0+,D1+,D2+,D3hot+,D3cold+) Status: D0 PME-Enable- DSel=0 DScale=2 PME- 02:06.0 Network controller: Intel Corp. PRO/Wireless LAN 2100 3B Mini PCI Adapter (rev 04) Subsystem: Intel Corp.: Unknown device 2527 Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR+ FastB2B- Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- SERR- TAbort- SERR- Reset+ 16bInt+ PostWrite+ 16-bit legacy interface ports at 0001 [7.6.] SCSI information (from /proc/scsi/scsi) [root@bloodymary user]# cat /proc/scsi/scsi Attached devices: [root@bloodymary user]# [7.7.] Other information that might be relevant to the problem (please look in /proc and include all information that you think to be relevant): Nothing i think.. execpt i have modified my XFree i810 driver applyng i855crt patches. But I really think it isn't related [X.] Other notes, patches, fixes, workarounds: I attach also what is written BEFORE the line "cut here" modprobe: page allocation failure. order:0, mode:0x20 Call Trace: [] __alloc_pages+0x2e1/0x320 [] __get_free_pages+0x1f/0x40 [] cache_grow+0xa7/0x290 [] cache_alloc_refill+0xce/0x210 [] __kmalloc+0x69/0x70 [] alloc_skb+0x47/0xf0 [] ipw2100_rx_allocate+0x140/0x2f0 [ipw2100] [] ipw2100_queues_allocate+0x1f/0x60 [ipw2100] [] ipw2100_pci_init_one+0x367/0x5a0 [ipw2100] [] sysfs_new_inode+0x5e/0xb0 [] pci_device_probe_static+0x52/0x70 [] __pci_device_probe+0x3c/0x50 [] pci_device_probe+0x2c/0x50 [] bus_match+0x3f/0x70 [] driver_attach+0x5c/0x90 [] bus_add_driver+0x8d/0xa0 [] driver_register+0x2f/0x40 [] pci_register_driver+0x5c/0x90 [] ipw2100_proc_init+0xad/0x150 [ipw2100] [] ipw2100_init+0x65/0x92 [ipw2100] [] sys_init_module+0x12c/0x250 [] syscall_call+0x7/0xb I include also the output of ksymoops It seems to have problems with and without the -k option [user@bloodymary user]$ ksymoops ] __alloc_pages+0x2e1/0x320 [] __get_free_pages+0x1f/0x40 [] cache_grow+0xa7/0x290 [] cache_alloc_refill+0xce/0x210 [] __kmalloc+0x69/0x70 [] alloc_skb+0x47/0xf0 [] ipw2100_rx_allocate+0x140/0x2f0 [ipw2100] [] ipw2100_queues_allocate+0x1f/0x60 [ipw2100] [] ipw2100_pci_init_one+0x367/0x5a0 [ipw2100] [] sysfs_new_inode+0x5e/0xb0 [] pci_device_probe_static+0x52/0x70 [] __pci_device_probe+0x3c/0x50 [] pci_device_probe+0x2c/0x50 [] bus_match+0x3f/0x70 [] driver_attach+0x5c/0x90 [] bus_add_driver+0x8d/0xa0 [] driver_register+0x2f/0x40 [] pci_register_driver+0x5c/0x90 [] ipw2100_proc_init+0xad/0x150 [ipw2100] [] ipw2100_init+0x65/0x92 [ipw2100] [] sys_init_module+0x12c/0x250 [] syscall_call+0x7/0xb kernel BUG at mm/page_alloc.c:786! invalid operand: 0000 [#1] CPU: 0 EIP: 0060:[] Tainted: P Using defaults from ksymoops -t elf32-i386 -a i386 EFLAGS: 00210246 (2.6.6) eax: 00000000 ebx: 00001000 ecx: c1011b80 edx: 00000000 esi: 008dc000 edi: c08dc000 ebp: c3547220 esp: c14cde30 ds: 007b es: 007b ss: 0068 Stack: 00000800 c08db000 d0f3bef6 cf4a3c44 00001000 c08dc000 008dc000 c3547220 cf4a3c00 c3547220 d0f3cbe9 c3547220 c354763c c3547220 c3547220 cf4a3c00 c3547000 d0f3dfbb c3547220 fffffff4 d0f3fc97 c3547220 c3547000 c3547220 [] bd_queue_free+0xa6/0xe0 [ipw2100] [] ipw2100_rx_free+0x29/0x120 [ipw2100] [] ipw2100_queues_allocate+0x2b/0x60 [ipw2100] [] ipw2100_pci_init_one+0x367/0x5a0 [ipw2100] [] sysfs_new_inode+0x5e/0xb0 [] pci_device_probe_static+0x52/0x70 [] __pci_device_probe+0x3c/0x50 [] pci_device_probe+0x2c/0x50 [] bus_match+0x3f/0x70 [] driver_attach+0x5c/0x90 [] bus_add_driver+0x8d/0xa0 [] driver_register+0x2f/0x40 [] pci_register_driver+0x5c/0x90 [] ipw2100_proc_init+0xad/0x150 [ipw2100] [] ipw2100_init+0x65/0x92 [ipw2100] [] sys_init_module+0x12c/0x250 [] syscall_call+0x7/0xb Code: 0f 0b 12 03 c0 2a 3d c0 eb cd 90 8d b4 26 00 00 00 00 85 c0 >>EIP; c013b11e <__free_pages+3e/50> <===== >>ebx; 00001000 Before first symbol >>ecx; c1011b80 >>esi; 008dc000 Before first symbol >>edi; c08dc000 >>ebp; c3547220 >>esp; c14cde30 Code; c013b11e <__free_pages+3e/50> 00000000 <_EIP>: Code; c013b11e <__free_pages+3e/50> <===== 0: 0f 0b ud2a <===== Code; c013b120 <__free_pages+40/50> 2: 12 03 adc (%ebx),%al Code; c013b122 <__free_pages+42/50> 4: c0 2a 3d shrb $0x3d,(%edx) Code; c013b125 <__free_pages+45/50> 7: c0 eb cd shr $0xcd,%bl Code; c013b128 <__free_pages+48/50> a: 90 nop Code; c013b129 <__free_pages+49/50> b: 8d b4 26 00 00 00 00 lea 0x0(%esi,1),%esi Code; c013b130 12: 85 c0 test %eax,%eax 1 warning issued. Results may not be reliable. [user@bloodymary user]$ - 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/