kern/95462: Memory leak in ieee 802.11 stack

Andrey Sverdlichenko blaze at
Fri Apr 7 07:40:18 UTC 2006

>Number:         95462
>Category:       kern
>Synopsis:       Memory leak in ieee 802.11 stack
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr 07 07:40:16 GMT 2006
>Originator:     Andrey Sverdlichenko
>Release:        6.0-RELEASE
FreeBSD 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Thu Nov  3 09:36:13 UTC 2005     root at x64.samsco.home:/usr/obj/usr/src/sys/GENERIC  i386

In hostap mode after a some time (12-24 hours under heavy traffic) memory use by IEEE 802.11 node table grows up and network stops: no traffic passing, clients can't connect. It does not depend on WEP, WPA or open network mode.

%vmstat -m | grep 80211
    80211node  7919  7919K       -    13960  512,1024

        inet6 fe80::215:e9ff:fe42:4888%ath0 prefixlen 64 scopeid 0x1 
        ether 00:15:e9:42:48:88
        media: IEEE 802.11 Wireless Ethernet autoselect mode 11g <hostap>
        status: associated
        ssid toaster-wep channel 2 bssid 00:15:e9:42:48:88
        authmode OPEN privacy ON deftxkey 1 wepkey 1:40-bit txpowmax 36
        protmode CTS dtimperiod 1 bintval 100
        inet6 fe80::2d0:68ff:fe08:2cec%rl0 prefixlen 64 scopeid 0x3 
        inet netmask 0xffff0000 broadcast
        ether 00:d0:68:08:2c:ec
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 ::1 prefixlen 128 
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 
        inet netmask 0xff000000 
bridge0: flags=8041<UP,RUNNING,MULTICAST> mtu 1500
        ether ac:de:48:fe:b7:e0
        priority 32768 hellotime 2 fwddelay 15 maxage 20
        member: ath0 flags=3<LEARNING,DISCOVER>
        member: rl0 flags=3<LEARNING,DISCOVER>

%dmesg | grep ath0
ath0: <Atheros 5212> mem 0xf8000000-0xf800ffff irq 16 at device 0.0 on pci1
ath0: Ethernet address: 00:15:e9:42:48:88
ath0: mac 7.9 phy 4.5 radio 5.6

There are also about 30 "ath0: device timeout" records in dmesg.
Set up hostap and push some traffic on it.

More information about the freebsd-bugs mailing list