Netgear MA311 + hostap: seg fault :'(

Yannick Marcq yannick.marcq
Thu Jul 3 02:42:41 PDT 2003


After a crash of my hd I have moved to the 'testing' version of debian, 
an rebuilt a 2.4.20 kernel, with the hostap patch to build everything at 
the same time and ... it works.

Maybe an old library has a conflict with hostap, even something in an 
older version of iptables ? I don't know, but hostap and hostapd work 
fine now :-)

Yannick.

Yannick Marcq wrote:

> Here is the log I have in /var/log/messages (file messages.log) and 
> the systems calls given by strace (file strace_modprobe.log). What is 
> the link between iptables and hostap ?
>
> Yannick.
>
> Denis Vlasenko wrote:
>
>> On 23 June 2003 12:08, Yannick Marcq wrote:
>>  
>>
>>> Hi,
>>>
>>> I tried to install a PCI wireless card (netgear ma311) on my linux 
>>> box: debian woody, kernel 2.4.20 and 2.4.22-pre1. I built hostap 
>>> from cvs and from the sources of the archive provided on the website.
>>>
>>> My problem is in all cases, when I do 'modprobe hostap_pci', there 
>>> is a segmentation fault.
>>>   
>>
>>
>> Stick lots of printks in module init routine, examine your log after
>> modprobe segfaults. BTW, run modprobe under strace too
>> -- 
>> vda
>>  
>>
>------------------------------------------------------------------------
>
>execve("/sbin/modprobe", ["modprobe", "hostap_pci"], [/* 15 vars */]) = 0
>uname({sys="Linux", node="maxagaze", ...}) = 0
>brk(0)                                  = 0x805dd20
>open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
>open("/etc/ld.so.cache", O_RDONLY)      = 3
>fstat64(3, {st_mode=S_IFREG|0644, st_size=14640, ...}) = 0
>old_mmap(NULL, 14640, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40014000
>close(3)                                = 0
>open("/lib/libc.so.6", O_RDONLY)        = 3
>read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\30\222"..., 1024) = 1024
>fstat64(3, {st_mode=S_IFREG|0755, st_size=1153784, ...}) = 0
>old_mmap(NULL, 1166560, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40018000
>mprotect(0x4012b000, 40160, PROT_NONE)  = 0
>old_mmap(0x4012b000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x113000) = 0x4012b000
>old_mmap(0x40131000, 15584, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40131000
>close(3)                                = 0
>munmap(0x40014000, 14640)               = 0
>getuid32()                              = 0
>geteuid32()                             = 0
>uname({sys="Linux", node="maxagaze", ...}) = 0
>brk(0)                                  = 0x805dd20
>brk(0x805dd40)                          = 0x805dd40
>brk(0x805e000)                          = 0x805e000
>brk(0x805f000)                          = 0x805f000
>brk(0x8060000)                          = 0x8060000
>brk(0x8061000)                          = 0x8061000
>brk(0x8062000)                          = 0x8062000
>open("/etc/modules.conf", O_RDONLY)     = 3
>fstat64(3, {st_mode=S_IFREG|0644, st_size=4027, ...}) = 0
>stat64("/etc/modules.conf", {st_mode=S_IFREG|0644, st_size=4027, ...}) = 0
>stat64("/etc/conf.modules", 0xbfffad8c) = -1 ENOENT (No such file or directory)
>fstat64(3, {st_mode=S_IFREG|0644, st_size=4027, ...}) = 0
>old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40014000
>read(3, "### This file is automatically g"..., 4096) = 4027
>brk(0x8063000)                          = 0x8063000
>read(3, "", 4096)                       = 0
>close(3)                                = 0
>munmap(0x40014000, 4096)                = 0
>open("/lib/modules/2.4.22-pre1/modules.dep", O_RDONLY) = 3
>fstat64(3, {st_mode=S_IFREG|0644, st_size=11492, ...}) = 0
>fstat64(3, {st_mode=S_IFREG|0644, st_size=11492, ...}) = 0
>old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40014000
>read(3, "/lib/modules/2.4.22-pre1/kernel/"..., 4096) = 4096
>brk(0x8064000)                          = 0x8064000
>brk(0x8065000)                          = 0x8065000
>read(3, "p_conntrack_ftp.o:\t/lib/modules/"..., 4096) = 4096
>brk(0x8066000)                          = 0x8066000
>brk(0x8067000)                          = 0x8067000
>read(3, "es/2.4.22-pre1/kernel/net/ipv4/n"..., 4096) = 3300
>brk(0x8068000)                          = 0x8068000
>read(3, "", 4096)                       = 0
>close(3)                                = 0
>munmap(0x40014000, 4096)                = 0
>query_module(NULL, 0, NULL, 0)          = 0
>query_module(NULL, QM_MODULES, { /* 22 entries */ }, 22) = 0
>brk(0x8069000)                          = 0x8069000
>query_module("hostap_pci", QM_INFO, {address=0xc301f000, size=33708, flags=0x40, usecount=1}, 16) = 0
>query_module("hostap", QM_INFO, {address=0xc3082000, size=76516, flags=MOD_RUNNING|MOD_USED_ONCE, usecount=0}, 16) = 0
>query_module("hostap_crypt", QM_INFO, {address=0xc301d000, size=1444, flags=MOD_RUNNING|MOD_USED_ONCE, usecount=0}, 16) = 0
>query_module("sch_ingress", QM_INFO, {address=0xc307a000, size=1700, flags=MOD_RUNNING|MOD_AUTOCLEAN|MOD_VISITED|MOD_USED_ONCE, usecount=1}, 16) = 0
>query_module("cls_u32", QM_INFO, {address=0xc3077000, size=4828, flags=MOD_RUNNING|MOD_AUTOCLEAN|MOD_VISITED|MOD_USED_ONCE, usecount=3}, 16) = 0
>query_module("sch_sfq", QM_INFO, {address=0xc3049000, size=3328, flags=MOD_RUNNING|MOD_AUTOCLEAN|MOD_VISITED|MOD_USED_ONCE, usecount=3}, 16) = 0
>query_module("sch_htb", QM_INFO, {address=0xc3071000, size=19008, flags=MOD_RUNNING|MOD_AUTOCLEAN|MOD_VISITED|MOD_USED_ONCE, usecount=1}, 16) = 0
>query_module("n_hdlc", QM_INFO, {address=0xc306e000, size=6176, flags=MOD_RUNNING|MOD_AUTOCLEAN|MOD_VISITED|MOD_USED_ONCE, usecount=1}, 16) = 0
>query_module("ppp_synctty", QM_INFO, {address=0xc306b000, size=5728, flags=MOD_RUNNING|MOD_AUTOCLEAN|MOD_VISITED|MOD_USED_ONCE, usecount=1}, 16) = 0
>query_module("ppp_generic", QM_INFO, {address=0xc3065000, size=16420, flags=MOD_RUNNING|MOD_AUTOCLEAN|MOD_VISITED|MOD_USED_ONCE, usecount=3}, 16) = 0
>query_module("slhc", QM_INFO, {address=0xc3062000, size=5040, flags=MOD_RUNNING|MOD_AUTOCLEAN|MOD_USED_ONCE, usecount=0}, 16) = 0
>query_module("usb-ohci", QM_INFO, {address=0xc305c000, size=16744, flags=MOD_RUNNING, usecount=0}, 16) = 0
>query_module("usbcore", QM_INFO, {address=0xc304d000, size=57292, flags=MOD_RUNNING|MOD_VISITED|MOD_USED_ONCE, usecount=1}, 16) = 0
>query_module("ipt_state", QM_INFO, {address=0xc304b000, size=568, flags=MOD_RUNNING|MOD_AUTOCLEAN|MOD_VISITED|MOD_USED_ONCE, usecount=1}, 16) = 0
>query_module("iptable_filter", QM_INFO, {address=0xc303e000, size=1644, flags=MOD_RUNNING|MOD_AUTOCLEAN|MOD_VISITED|MOD_USED_ONCE, usecount=1}, 16) = 0
>query_module("iptable_nat", QM_INFO, {address=0xc3039000, size=15726, flags=MOD_RUNNING|MOD_AUTOCLEAN|MOD_VISITED|MOD_USED_ONCE, usecount=1}, 16) = 0
>query_module("ip_conntrack", QM_INFO, {address=0xc3031000, size=17508, flags=MOD_RUNNING|MOD_AUTOCLEAN|MOD_VISITED|MOD_USED_ONCE, usecount=2}, 16) = 0
>query_module("ip_tables", QM_INFO, {address=0xc302d000, size=11584, flags=MOD_RUNNING|MOD_VISITED|MOD_USED_ONCE, usecount=5}, 16) = 0
>query_module("8139too", QM_INFO, {address=0xc3018000, size=14408, flags=MOD_RUNNING|MOD_VISITED|MOD_USED_ONCE, usecount=1}, 16) = 0
>query_module("mii", QM_INFO, {address=0xc3016000, size=2240, flags=MOD_RUNNING|MOD_USED_ONCE, usecount=0}, 16) = 0
>query_module("crc32", QM_INFO, {address=0xc3014000, size=2880, flags=MOD_RUNNING|MOD_USED_ONCE, usecount=0}, 16) = 0
>query_module("smbfs", QM_INFO, {address=0xc300a000, size=35024, flags=MOD_RUNNING, usecount=0}, 16) = 0
>chdir("/var/log/ksymoops")              = 0
>time(NULL)                              = 1056475210
>open("/etc/localtime", O_RDONLY)        = 3
>fstat64(3, {st_mode=S_IFREG|0644, st_size=1082, ...}) = 0
>old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40014000
>read(3, "TZif\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\f\0\0\0\f\0"..., 4096) = 1082
>close(3)                                = 0
>munmap(0x40014000, 4096)                = 0
>open("20030624.log", O_WRONLY|O_APPEND|O_CREAT, 0666) = 3
>fstat64(3, {st_mode=S_IFREG|0644, st_size=8447, ...}) = 0
>old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40014000
>fstat64(3, {st_mode=S_IFREG|0644, st_size=8447, ...}) = 0
>_llseek(3, 8447, [8447], SEEK_SET)      = 0
>write(3, "20030624 192010 start modprobe h"..., 53) = 53
>fdatasync(3)                            = 0
>close(3)                                = 0
>munmap(0x40014000, 4096)                = 0
>chdir("/var/log/ksymoops")              = 0
>time(NULL)                              = 1056475210
>open("20030624.log", O_WRONLY|O_APPEND|O_CREAT, 0666) = 3
>fstat64(3, {st_mode=S_IFREG|0644, st_size=8500, ...}) = 0
>old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40014000
>fstat64(3, {st_mode=S_IFREG|0644, st_size=8500, ...}) = 0
>_llseek(3, 8500, [8500], SEEK_SET)      = 0
>write(3, "20030624 192010 probe ended\n", 28) = 28
>fdatasync(3)                            = 0
>close(3)                                = 0
>munmap(0x40014000, 4096)                = 0
>_exit(0)                                = ?
>  
>
>------------------------------------------------------------------------
>
>Jun 24 18:42:18 maxagaze kernel: hostap_pci: CVS (Jouni Malinen <jkmaline at cc.hut.fi>)
>Jun 24 18:42:18 maxagaze kernel: hostap_pci: Registered netdevice wlan0
>Jun 24 18:42:18 maxagaze kernel:  printing eip:
>Jun 24 18:42:18 maxagaze kernel: c0111b24
>Jun 24 18:42:18 maxagaze kernel: Oops: 0002
>Jun 24 18:42:18 maxagaze kernel: CPU:    0
>Jun 24 18:42:18 maxagaze kernel: EIP:    0010:[add_wait_queue+20/48]    Not tainted
>Jun 24 18:42:18 maxagaze kernel: EFLAGS: 00010046
>Jun 24 18:42:18 maxagaze kernel: eax: c10a6c68   ebx: 00000000   ecx: c1f55d70   edx: c1f55d68
>Jun 24 18:42:18 maxagaze kernel: esi: 00000246   edi: c10a6c9c   ebp: c1f55d68   esp: c1f55d1c
>Jun 24 18:42:18 maxagaze kernel: ds: 0018   es: 0018   ss: 0018
>Jun 24 18:42:18 maxagaze kernel: Process modprobe (pid: 841, stackpage=c1f55000)
>Jun 24 18:42:18 maxagaze kernel: Stack: c10a6c68 0000fd0b c301f2e3 0000fd0b 00000000 c0b43820 c0ed2400 c10a6c60
>Jun 24 18:42:18 maxagaze kernel:        6e6d6c6b 7271706f c1f54000 00000000 c0d01a00 c0b43800 0021f360 00000000
>Jun 24 18:42:18 maxagaze kernel:        c1f54000 00000000 00000000 00000000 c1f54000 00000000 00000000 00000000
>Jun 24 18:42:18 maxagaze kernel: Call Trace:    [iptable_nat:__insmod_iptable_nat_O/lib/modules/2.4.22-pre1/kernel/net/i+-146717/96] [iptable
>_nat:__insmod_iptable_nat_O/lib/modules/2.4.22-pre1/kernel/net/i+-144395/96] [iptable_nat:__insmod_iptable_nat_O/lib/modules/2.4.22-pre1/kern
>el/net/i+-120662/96] [vsnprintf+552/1168] [iptable_nat:__insmod_iptable_nat_O/lib/modules/2.4.22-pre1/kernel/net/i+-145086/96]
>Jun 24 18:42:18 maxagaze kernel:   [iptable_nat:__insmod_iptable_nat_O/lib/modules/2.4.22-pre1/kernel/net/i+-143378/96] [iptable_nat:__insmod
>_iptable_nat_O/lib/modules/2.4.22-pre1/kernel/net/i+-143602/96] [printk+240/304] [__rdtsc_delay+20/32] [iptable_nat:__insmod_iptable_nat_O/li
>b/modules/2.4.22-pre1/kernel/net/i+-141471/96] [iptable_nat:__insmod_iptable_nat_O/lib/modules/2.4.22-pre1/kernel/net/i+-120662/96]
>Jun 24 18:42:18 maxagaze kernel:   [iptable_nat:__insmod_iptable_nat_O/lib/modules/2.4.22-pre1/kernel/net/i+-130816/96] [iptable_nat:__insmod
>_iptable_nat_O/lib/modules/2.4.22-pre1/kernel/net/i+-140988/96] [iptable_nat:__insmod_iptable_nat_O/lib/modules/2.4.22-pre1/kernel/net/i+-125
>081/96] [iptable_nat:__insmod_iptable_nat_O/lib/modules/2.4.22-pre1/kernel/net/i+-130816/96] [iptable_nat:__insmod_iptable_nat_O/lib/modules/
>2.4.22-pre1/kernel/net/i+-125037/96] [iptable_nat:__insmod_iptable_nat_O/lib/modules/2.4.22-pre1/kernel/net/i+-114947/96]
>Jun 24 18:42:18 maxagaze kernel:   [iptable_nat:__insmod_iptable_nat_O/lib/modules/2.4.22-pre1/kernel/net/i+-114200/96] [iptable_nat:__insmod
>_iptable_nat_O/lib/modules/2.4.22-pre1/kernel/net/i+-113824/96] [pci_announce_device+33/96] [iptable_nat:__insmod_iptable_nat_O/lib/modules/2
>.4.22-pre1/kernel/net/i+-114200/96] [iptable_nat:__insmod_iptable_nat_O/lib/modules/2.4.22-pre1/kernel/net/i+-113824/96] [pci_register_driver
>+87/96]
>Jun 24 18:42:18 maxagaze kernel:   [iptable_nat:__insmod_iptable_nat_O/lib/modules/2.4.22-pre1/kernel/net/i+-113824/96] [iptable_nat:__insmod
>_iptable_nat_O/lib/modules/2.4.22-pre1/kernel/net/i+-124675/96] [iptable_nat:__insmod_iptable_nat_O/lib/modules/2.4.22-pre1/kernel/net/i+-113
>824/96] [iptable_nat:__insmod_iptable_nat_O/lib/modules/2.4.22-pre1/kernel/net/i+-124688/96] [iptable_nat:__insmod_iptable_nat_O/lib/modules/
>2.4.22-pre1/kernel/net/i+-114621/96] [iptable_nat:__insmod_iptable_nat_O/lib/modules/2.4.22-pre1/kernel/net/i+-124343/96]
>Jun 24 18:42:18 maxagaze kernel:   [iptable_nat:__insmod_iptable_nat_O/lib/modules/2.4.22-pre1/kernel/net/i+-124384/96] [sys_init_module+1145
>/1504] [iptable_nat:__insmod_iptable_nat_O/lib/modules/2.4.22-pre1/kernel/net/i+-114272/96] [iptable_nat:__insmod_iptable_nat_O/lib/modules/2
>.4.22-pre1/kernel/net/i+-147360/96] [system_call+51/64]
>Jun 24 18:42:18 maxagaze kernel:
>Jun 24 18:42:18 maxagaze kernel: Code: 89 4b 04 89 08 89 41 04 56 9d 5b 5e c3 eb 0d 90 90 90 90 90
>
>------------------------------------------------------------------------
>
>_______________________________________________
>HostAP mailing list
>HostAP at shmoo.com
>http://lists.shmoo.com/mailman/listinfo/hostap
>  
>





More information about the Hostap mailing list