ifconfig segfaults while getting up wlan0

Santiago Gala sgala at hisitech.com
Fri May 9 12:05:52 EDT 2003


Christian Lauterbach wrote:
> Hi,
> 
> I encountered a strange problem while trying to setup HostAP on
> my router. The hostap driver is loading flawlessly while booting
> the kernel (I used the hostap kernel patch and compiled the kernel
> with it, messages seem okay, see below), I can also use iwconfig
> to configure the settings of wlan0, "ifconfig wlan0" also works.
> 

I got a very similar oops on insmod (reported one month ago or so) which 
disappeared by switching from mandrake enterprise kernel 2.4.21-13 to 
mandrake smp kernel (same version), looking as something related to 
highmem support when you modprobed a module into a "dirty" memory VM and 
addresses jumped on top of 1GB.

Are you using highmem support? more than 768M RAM?

> The problem is that I can't get the interface up with ifconfig, since
> everytime I try to set something to wlan0 (e.g. "ifconfig wlan0 up",
> but also "ifconfig wlan0 192.168.0.2") with ifconfig, it crashes with a 
> segfault and causes an oops like this
> 
> May  7 17:10:39 router kernel: Unable to handle kernel NULL pointer dereference at virtual address 00000010
> May  7 17:10:39 router kernel:  printing eip:
> May  7 17:10:39 router kernel: c0232f72
> May  7 17:10:39 router kernel: *pde = 00000000
> May  7 17:10:39 router kernel: Oops: 0002
> May  7 17:10:39 router kernel: CPU:    0
> May  7 17:10:39 router kernel: EIP:    0010:[<c0232f72>]    Not tainted
> May  7 17:10:39 router kernel: EFLAGS: 00010246
> May  7 17:10:39 router kernel: eax: 00000000   ebx: cfedb800   ecx: ffffffea   edx: cd9f2000
> May  7 17:10:39 router kernel: esi: cfebe800   edi: 00001002   ebp: 00000000   esp: cd9f3ec8
> May  7 17:10:39 router kernel: ds: 0018   es: 0018   ss: 0018
> May  7 17:10:39 router kernel: Process ifconfig (pid: 1576, stackpage=cd9f3000)
> May  7 17:10:39 router kernel: Stack: cfebe800 00000000 c025d89c cfebe800 cfebe800 00001043 c025ebf1 cfebe800 
> May  7 17:10:39 router kernel:        cd9f2000 cd9f3f52 cf2a4e65 bffff688 c028ed65 cfebe800 00001043 00008914 
> May  7 17:10:39 router kernel:        ce63adc0 bffff688 00000004 00000000 cd9f3f4c 00000000 00000000 00000000 
> May  7 17:10:39 router kernel: Call Trace:    [<c025d89c>] [<c025ebf1>] [<c028ed65>] [<c02913f7>] [<c025701c>]
> May  7 17:10:39 router kernel:   [<c014345b>] [<c0106f0b>]
> May  7 17:10:39 router kernel: 
> May  7 17:10:39 router kernel: Code: ff 40 10 8b 03 80 48 14 18 83 7b 08 00 75 30 8b 83 f4 02 00 :
> 
> After that every call to ifconfig or iwconfig just hangs and can't be terminated
> by any signal, so I have to reboot the machine.
> 
> Any help would be appreciated.
> 
> TIA,
>     Christian
> 
> Some info about the machine:
> 
> Running 2.4.20 on Gentoo Linux (AMD Duron). The WLAN-Card is a Netgear MA311,
> the normal Fast-Ethernet-Card a generic RTL-8139 card. I have installed HostAP Version 
> 0.0.2 from the official page and wireless-tools 25. 
> 
> # uname -a
> Linux router 2.4.20-gentoo-r2 #2 Wed May 7 15:56:07 CEST 2003 i686 AMD Duron(tm) Processor AuthenticAMD GNU/Linux
> 
> Kernel  boot messages concerning hostap are:
> May  7 17:13:04 router kernel: hostap_crypt: registered algorithm 'NULL'
> May  7 17:13:04 router kernel: hostap_crypt: registered algorithm 'WEP'
> May  7 17:13:04 router kernel: hostap_plx: 0.0.2 - 2003-05-03 (Jouni Malinen <jkmaline at cc.hut.fi>)
> May  7 17:13:04 router kernel: hostap_plx: No devices found, driver not installed.
> May  7 17:13:04 router kernel: hostap_pci: 0.0.2 - 2003-05-03 (Jouni Malinen <jkmaline at cc.hut.fi>)
> May  7 17:13:04 router kernel: PCI: Enabling device 00:0a.0 (0014 -> 0016)
> May  7 17:13:04 router kernel: PCI: Assigned IRQ 5 for device 00:0a.0
> May  7 17:13:04 router kernel: hostap_pci: Registered netdevice wlan0
> May  7 17:13:04 router kernel: prism2_hw_init()
> May  7 17:13:04 router kernel: prism2_hw_config: initialized in 19856 iterations
> May  7 17:13:04 router kernel: wlan0: NIC: id=0x8013 v1.0.0
> May  7 17:13:04 router kernel: wlan0: PRI: id=0x15 v1.0.7
> May  7 17:13:04 router kernel: wlan0: STA: id=0x1f v1.3.6
> May  7 17:13:04 router kernel: wlan0: defaulting to host-based encryption as a workaround for firmware bug in Host AP mode WEP
> May  7 17:13:04 router kernel: wlan0: defaulting to bogus WDS frame as a workaround for firmware bug in Host AP mode WDS
> May  7 17:13:04 router kernel: wlan0: Intersil Prism2.5 PCI: mem=0xd7000000, irq=5
> 
> lspci -vv shows:
> 00:0a.0 Network controller: Harris Semiconductor Prism 2.5 Wavelan chipset (rev 01)
>         Subsystem: Netgear: Unknown device 4105
>         Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR- FastB2B-
>         Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
>         Latency: 32, cache line size 08
>         Interrupt: pin A routed to IRQ 5
>         Region 0: Memory at d7000000 (32-bit, prefetchable) [size=4K]
>         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=0 PME-
> _______________________________________________
> HostAP mailing list
> HostAP at shmoo.com
> http://lists.shmoo.com/mailman/listinfo/hostap


-- 
Santiago Gala
High Sierra Technology, S.L. (http://hisitech.com)
http://memojo.com?page=SantiagoGalaBlog





More information about the HostAP mailing list