From nobody@FreeBSD.org  Mon Dec 15 04:46:19 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 675E31065675
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 15 Dec 2008 04:46:19 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 534DD8FC0C
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 15 Dec 2008 04:46:19 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id mBF4kJ7L072978
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 15 Dec 2008 04:46:19 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id mBF4kJrq072977;
	Mon, 15 Dec 2008 04:46:19 GMT
	(envelope-from nobody)
Message-Id: <200812150446.mBF4kJrq072977@www.freebsd.org>
Date: Mon, 15 Dec 2008 04:46:19 GMT
From: "Joseph S. Atkinson" <jsatkinson@embarqmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: if_rl breakage
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         129647
>Category:       kern
>Synopsis:       [rl]: if_rl breakage
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    yongari
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 15 04:50:01 UTC 2008
>Closed-Date:    Mon Dec 22 08:39:59 UTC 2008
>Last-Modified:  Wed Apr 29 00:45:32 UTC 2009
>Originator:     Joseph S. Atkinson
>Release:        8.0-CURRENT/i386 following svn
>Organization:
>Environment:
FreeBSD mephisto.wickedmachine.net 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Fri Dec 12 04:17:41 EST 2008     jsa@mephisto.wickedmachine.net:/usr/obj/usr/src/sys/MEPHISTO  i386

>Description:
At some point in the past couple of months, I synced with current, and on rebooting noticed that dhcp ceased working. I dug into it a little but didn't see any commits related to dhclient. Pressed for time, I dropped in a static IP and moved on, intending to dig deeper when I had more chance.

A couple of times over the past few months we've had some issues with connectivity at random intervals. Due to the "high quality" of my ISP, this isn't anything unusual, until I noticed that I couldn't hit my dsl modem.

At such times my the console would be flooded with "out of buffer space" errors.

After swapping out my nic for another of the same model, the problem wasn't alleviated. So I asked in #bsddev on EFNet, and gavin informed me he had been seeing something similar on his laptop with the rl driver.

He pointed me a flurry of commits by yongari on October 25th that addressed rl driver on PAE enabled boxes. I rolled back the if_rl.c and if_rlreg.h to October 24th's version and all problems ceased. I then rolled to October 25th, and dhcp and buffer problems resumed.

I am currently using a backup nic with a different driver to work around the issues, but will test fixes.
>How-To-Repeat:
Run post October 25th builds with rl driver compatible hardware on i386. Attempt to obtain IP via DHCP.

Play with network related options (It seems I can run pfctl -d and break it instantly). Let the connection idle for a short amount of time (it will just die with "out of buffer space" errors within minutes).

The system I am using has 1GB physical RAM and 2GB swap.

The kernel is GENERIC modified only to remove the performance altering debugging in head.
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-i386->freebsd-net 
Responsible-Changed-By: remko 
Responsible-Changed-When: Wed Dec 17 06:58:06 UTC 2008 
Responsible-Changed-Why:  
reassign to -net 

http://www.freebsd.org/cgi/query-pr.cgi?pr=129647 
Responsible-Changed-From-To: freebsd-net->yongari 
Responsible-Changed-By: yongari 
Responsible-Changed-When: Wed Dec 17 07:36:29 UTC 2008 
Responsible-Changed-Why:  
Grab. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=129647 

From: "Joseph S. Atkinson" <jsatkinson@embarqmail.com>
To: FreeBSD Bug Followup <bug-followup@FreeBSD.org>
Cc:  
Subject: Re: i386/129647: if_rl breakage
Date: Sat, 20 Dec 2008 06:40:24 -0500

 Have been in contact with Pyun YongHyeon and tried a small patch from 
 him that fixed the issue preventing DHCP from working.
 
 Currently waiting to see if the buffer overflow has been alleviated buy 
 this fix as well, or if it is symptomatic of a separate issue.
 
State-Changed-From-To: open->patched 
State-Changed-By: yongari 
State-Changed-When: Mon Dec 22 01:27:02 UTC 2008 
State-Changed-Why:  
Fix committed(r186390). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=129647 
State-Changed-From-To: patched->closed 
State-Changed-By: yongari 
State-Changed-When: Mon Dec 22 08:39:09 UTC 2008 
State-Changed-Why:  
Submitter confirms that the patch fixed the issue. 

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