Subject: kern/20039: mbuf leak using rp-pppoe
To: None <gnats-bugs@gnats.netbsd.org>
From: None <simonb@wasabisystems.com>
List: netbsd-bugs
Date: 01/25/2003 02:06:12
>Number:         20039
>Category:       kern
>Synopsis:       mbuf leak using rp-pppoe
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jan 24 07:07:00 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Simon Burge
>Release:        NetBSD 1.6_STABLE from December 1, 2002
>Organization:
Wasabi Systems
>Environment:
System: NetBSD way 1.6_STABLE NetBSD 1.6_STABLE (WAY)
	#1: Sun Dec 1 01:25:28 EST 2002
	simonb@thoreau:/NetBSD/src16/sys/arch/i386/compile/WAY i386

Architecture: i386
Machine: i386

Extra software:
	rp-pppoe 2.6 or 3.5

>Description:
	Using rp-pppoe (version doesn't seem to matter) on a firewall
	type box, I'm seeing an mbuf leak that seems to correspond
	to roughly one mbuf for each new outbound TCP connection
	over the ppp interface.  These mbufs aren't freed after
	the TCP connection finishes.

	Here's a short log:

	way:~ 22> netstat -m | grep 'mbufs allocated to data'
		360 mbufs allocated to data
	way:~ 23> ssh cvs.netbsd.org uptime
	 2:34PM  up 33 days,  3:53, 8 users, load averages: 1.59, 1.97, 1.83
	way:~ 24> netstat -m | grep 'mbufs allocated to data'
		361 mbufs allocated to data
	way:~ 25> ssh cvs.netbsd.org uptime
	 2:34PM  up 33 days,  3:53, 8 users, load averages: 1.53, 1.94, 1.82
	way:~ 26> netstat -m | grep 'mbufs allocated to data'
		362 mbufs allocated to data
	way:~ 27> ssh cvs.netbsd.org uptime
	 2:34PM  up 33 days,  3:54, 8 users, load averages: 1.40, 1.89, 1.81
	way:~ 28> netstat -m | grep 'mbufs allocated to data'
		363 mbufs allocated to data

	This box used to run the 1.5 branch using the same rp-pppoe
	package and had no mbuf leak problems.

	A friend has a box running 1.6 STABLE with a similar firewall
	configuration (talking to the same ADSL provider) and
	doesn't have the problem, while another friend has a
	workstation type box with rp-pppoe and does see the problem
	(also with 1.6 STABLE).  This doesn't make it any easier
	to track down the problem :(


>How-To-Repeat:
	Use rp-pppoe, start outgoing connections (but not in all
	configurations).

>Fix:
	None given.
>Release-Note:
>Audit-Trail:
>Unformatted: