From nobody@FreeBSD.org  Fri Apr  7 07:36:25 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 90AF216A400
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  7 Apr 2006 07:36:25 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 454B943D46
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  7 Apr 2006 07:36:25 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k377aOUq021889
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 7 Apr 2006 07:36:24 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k377aOtq021888;
	Fri, 7 Apr 2006 07:36:24 GMT
	(envelope-from nobody)
Message-Id: <200604070736.k377aOtq021888@www.freebsd.org>
Date: Fri, 7 Apr 2006 07:36:24 GMT
From: Andrey Sverdlichenko <blaze@ruddy.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Memory leak in ieee 802.11 stack
X-Send-Pr-Version: www-2.3

>Number:         95462
>Category:       kern
>Synopsis:       [net80211] Memory leak in ieee 802.11 stack
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    sam
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr 07 07:40:16 GMT 2006
>Closed-Date:    Tue Nov 28 03:09:51 GMT 2006
>Last-Modified:  Tue Nov 28 03:09:51 GMT 2006
>Originator:     Andrey Sverdlichenko
>Release:        6.0-RELEASE
>Organization:
>Environment:
FreeBSD toaster.infosec.ru 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Thu Nov  3 09:36:13 UTC 2005     root@x64.samsco.home:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
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

%ifconfig
ath0: flags=8d43<UP,BROADCAST,RUNNING,PROMISC,OACTIVE,SIMPLEX,MULTICAST> mtu 1500
        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
rl0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
        options=8<VLAN_MTU>
        inet6 fe80::2d0:68ff:fe08:2cec%rl0 prefixlen 64 scopeid 0x3 
        inet 10.2.0.71 netmask 0xffff0000 broadcast 10.2.255.255
        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 127.0.0.1 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.
>How-To-Repeat:
Set up hostap and push some traffic on it.
>Fix:
none
>Release-Note:
>Audit-Trail:

From: "Andrey Sverdlichenko" <blaze@ruddy.ru>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: kern/95462: Memory leak in ieee 802.11 stack
Date: Fri, 07 Apr 2006 11:48:57 +0400

 Turning interface ath0 down and up again helps resume network operations,
 clients can connect and exchange traffic.
 
 80211node memory NOT freed.
Responsible-Changed-From-To: freebsd-bugs->sam 
Responsible-Changed-By: glebius 
Responsible-Changed-When: Wed Apr 12 15:16:25 UTC 2006 
Responsible-Changed-Why:  
To 802.11 maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=95462 
State-Changed-From-To: open->feedback 
State-Changed-By: sam 
State-Changed-When: Fri Sep 1 22:25:14 UTC 2006 
State-Changed-Why:  
I believe the issues reported here have been resolved; please let 
me know if they still exist with _current_ code. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=95462 
State-Changed-From-To: feedback->closed 
State-Changed-By: sam 
State-Changed-When: Tue Nov 28 03:09:03 UTC 2006 
State-Changed-Why:  
no response in ~3 months 

http://www.freebsd.org/cgi/query-pr.cgi?pr=95462 
>Unformatted:
