hostapd memory leak when connecting to Linux wpa_supplicant

Ken Roberts ken
Mon Dec 17 10:45:07 PST 2007


hostapd v0.5.8
wpa_supplicant v0.5.8
madwifi v0.9.3.3
kernel 2.6.21.5 <http://2.6.21.5> (recompiled for minimal drivers)

I've got 2 geode machines using the madwifi drivers. They worked great 
for about a week. Unfortunately, hostapd started eating ram and causing 
"out of memory and no programs to kill" errors on the ap running hostapd.

When a windows client connected to hostapd ap, there were no problems 
and no memory leaks.

When connecting to a Linux machine running wpa_supplicant, free ram 
started dropping like a rock until "out of memory" condition caused a 
system freeze.


Following are the config files I used:

======= hostapd.conf ============
# root at host:/# hostapd /<path-to>/hostapd.conf

# wpa_conf_hostapd.test
#
# Basic hostapd control stuff
#
# country_code=US     # Default
logger_syslog=1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=2
debug=0
dump_file=/mnt/rd/hostapd.dump
ctrl_interface=/mnt/rd/hostapd
ctrl_interface_group=0
auth_algs=3
ignore_broadcast_ssid=0
ap_max_inactivity=900
max_num_sta=5
eapol_version=1
#
# Interface information
#
driver=madwifi
ssid=kens_bridge
interface=ath0
bridge=br0
wpa=3    # 1=WPA 2=IEEE802.11i/RSN (WPA2) 3=both
wpa_key_mgmt=WPA-PSK
wpa_pairwise=CCMP TKIP
wpa_psk={wpa key}
#wpa_phrase='{wpa passphrase}'


======= wpa_supplicant.conf =======
root at host:/# wpa_supplicant -b br0 -i ath0 -c 
/<path-to>/wpa_supplicant.conf

# wpa_conf_hostapd.test
#
# Basic hostapd control stuff
#
# country_code=US     # Default
logger_syslog=1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=2
debug=0
dump_file=/mnt/rd/hostapd.dump
ctrl_interface=/mnt/rd/hostapd
ctrl_interface_group=0
auth_algs=3
ignore_broadcast_ssid=0
ap_max_inactivity=900
max_num_sta=5
eapol_version=1
#
# Interface information
#
driver=madwifi
ssid=kens_bridge
interface=ath0
bridge=br0
wpa=3    # 1=WPA 2=IEEE802.11i/RSN (WPA2) 3=both
wpa_key_mgmt=WPA-PSK
wpa_pairwise=CCMP TKIP
wpa_psk={wpa key}
#wpa_phrase='{wpa passphrase}'




More information about the Hostap mailing list