From nobody@FreeBSD.org  Tue Apr  3 01:12:33 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id F05A637B720
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  3 Apr 2001 01:12:32 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.1/8.11.1) id f338CWO13219;
	Tue, 3 Apr 2001 01:12:32 -0700 (PDT)
	(envelope-from nobody)
Message-Id: <200104030812.f338CWO13219@freefall.freebsd.org>
Date: Tue, 3 Apr 2001 01:12:32 -0700 (PDT)
From: brett@lariat.org
To: freebsd-gnats-submit@FreeBSD.org
Subject: PPPoE client panics in kernel
X-Send-Pr-Version: www-1.0

>Number:         26309
>Category:       kern
>Synopsis:       PPPoE client panics in kernel - fxp problem
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    glebius
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 03 01:20:01 PDT 2001
>Closed-Date:    Tue Oct 05 12:59:56 GMT 2004
>Last-Modified:  Tue Oct 05 12:59:56 GMT 2004
>Originator:     Brett Glass
>Release:        4.3-RC2
>Organization:
>Environment:
FreeBSD fubar.brettglass.com 4.3-RC2 FreeBSD 4.3-RC2 #4: Mon Apr  2 02:35:57 MDT 2001     root@fubar.brettglass.com:/usr/src/sys/compile/FUBAR  i386
>Description:
Have been trying to set up a PPPoE client on 4.3-RC2 as instructed in the
FreeBSD Handbook, but the machine regularaly page faults in the kernel just 
as the link is preparing to come up (that is, right after ppp says "Using 
interface: tun0.") The panic display said that the "current process" was 
ppp (not surprisingly) and that the CPU had encountered a page fault "while 
in kernel mode." The Netgraph, Netgraph sockets, Netgraph PPPoE, and 
Netgraph Ethernet modules were all compiled statically into the kernel 
and so didn't have to be loaded. Given that tun is a pretty simple
device and ppp is well tested, this tester suspects that the bug is 
in the Netgraph system somewhere (but cannot tell for sure).


>How-To-Repeat:
Configure PPPoE as instructed in the FreeBSD handbook. My ppp.conf
looked like this:

default:
  set device PPPoE:fxp0:pppserv # The PPPoE host will list itself as "pppserv"
  set mru 1492
  set mtu 1492
  set authname username
  set authkey passwordstring
  set log Phase tun command # you can add more detailed logging if you wish
  set dial
  set login
# Let the server dictate address based on its
# ppp.secret file, which contains a static
# address for each user
  set ifaddr 0.0.0.0/0 0.0.0.0/0
  add default HISADDR
  nat enable yes

papchap:
  set authname username
  set authkey passwordstring

Then, just start PPP with "ppp -ddial". The actual presence of a server 
did not seem to be required.
>Fix:
At time of submission could not find a workaround.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->brian 
Responsible-Changed-By: brian 
Responsible-Changed-When: Tue Apr 3 02:12:03 PDT 2001 
Responsible-Changed-Why:  
I guess ppp is mine 

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

From: Brian Somers <brian@Awfulhak.org>
To: brett@lariat.org
Cc: freebsd-gnats-submit@FreeBSD.ORG, brian@Awfulhak.org
Subject: Re: kern/26309: PPPoE client panics in kernel 
Date: Tue, 03 Apr 2001 10:17:39 +0100

 > 
 > >Number:         26309
 > >Category:       kern
 > >Synopsis:       PPPoE client panics in kernel
 [.....]
 > Have been trying to set up a PPPoE client on 4.3-RC2 as instructed in the
 > FreeBSD Handbook, but the machine regularaly page faults in the kernel just 
 > as the link is preparing to come up (that is, right after ppp says "Using 
 > interface: tun0.") The panic display said that the "current process" was 
 [.....]
 > default:
 >   set device PPPoE:fxp0:pppserv # The PPPoE host will list itself as "pppserv"
 [.....]
 
 Do you have src/usr.sbin/ppp/ether.c 1.9.2.6 ?  fxp misbehaves at the 
 start of fxp_start() if it hasn't yet been brought up (IFF_UP).  The 
 latest version of ether.c brings the ethernet interface up if it's 
 not already.
 -- 
 Brian <brian@Awfulhak.org>                        <brian@[uk.]FreeBSD.org>
       <http://www.Awfulhak.org>                   <brian@[uk.]OpenBSD.org>
 Don't _EVER_ lose your sense of humour !
 
 

From: Brett Glass <brett@lariat.org>
To: Brian Somers <brian@Awfulhak.org>
Cc: freebsd-gnats-submit@FreeBSD.ORG, brian@Awfulhak.org
Subject: Re: kern/26309: PPPoE client panics in kernel 
Date: Tue, 03 Apr 2001 11:32:07 -0600

 At 03:17 AM 4/3/2001, Brian Somers wrote:
 
 >Do you have src/usr.sbin/ppp/ether.c 1.9.2.6 ?  fxp misbehaves at the 
 >start of fxp_start() if it hasn't yet been brought up (IFF_UP).  The 
 >latest version of ether.c brings the ethernet interface up if it's 
 >not already.
 
 I have what's in 4.3-RC2, which is 1.9.2.6 (dated 2001/03/29).
 
 Is this the version that misbehaves?
 
 --Brett
 

From: Brian Somers <brian@Awfulhak.org>
To: Brett Glass <brett@lariat.org>
Cc: Brian Somers <brian@Awfulhak.org>,
	freebsd-gnats-submit@FreeBSD.ORG, brian@Awfulhak.org
Subject: Re: kern/26309: PPPoE client panics in kernel 
Date: Tue, 03 Apr 2001 19:40:41 +0100

 > At 03:17 AM 4/3/2001, Brian Somers wrote:
 > 
 > >Do you have src/usr.sbin/ppp/ether.c 1.9.2.6 ?  fxp misbehaves at the 
 > >start of fxp_start() if it hasn't yet been brought up (IFF_UP).  The 
 > >latest version of ether.c brings the ethernet interface up if it's 
 > >not already.
 > 
 > I have what's in 4.3-RC2, which is 1.9.2.6 (dated 2001/03/29).
 > 
 > Is this the version that misbehaves?
 
 Nope - it's the version that should have avoided the fxp problem :-/
 
 I'll try to reproduce this locally, but I have no fxp cards so I may 
 be irritating^Wasking you for more details soon :-)
 
 > --Brett
 
 -- 
 Brian <brian@Awfulhak.org>                        <brian@[uk.]FreeBSD.org>
       <http://www.Awfulhak.org>                   <brian@[uk.]OpenBSD.org>
 Don't _EVER_ lose your sense of humour !
 
 

From: Brett Glass <brett@lariat.org>
To: Brian Somers <brian@Awfulhak.org>
Cc: Brian Somers <brian@Awfulhak.org>,
	freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: kern/26309: PPPoE client panics in kernel 
Date: Tue, 03 Apr 2001 12:56:09 -0600

 At 12:40 PM 4/3/2001, Brian Somers wrote:
 
 >I'll try to reproduce this locally, but I have no fxp cards so I may 
 >be irritating^Wasking you for more details soon :-)
 
 It may not be the fxp card that's causing the problem (though I am
 using one). Before I linked ng_ether statically into the kernel, I 
 got an error when the kernel loaded it. After I linked it in, I got
 the panic. So, I think the problem may be in ng_ether or in some
 argument that gets passed to it. But this is just a guess, and I
 could be wrong here.
 
 If you'd like, I'll send the usual dmesg output, etc.
 
 --Brett
 

From: Brett Glass <brett@lariat.org>
To: Brian Somers <brian@Awfulhak.org>
Cc: Brian Somers <brian@Awfulhak.org>,
	freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: kern/26309: PPPoE client panics in kernel 
Date: Thu, 05 Apr 2001 00:17:23 -0600

 Brian:
 
 Here's another clue as to what's wrong. When I configured the machine a little differently, I saw the following two messages just before the kernel panic:
 
 module_register: module netgraph already exists!
 
 and then...
 
 linker_file_sisinit: "netgraph.ko" failed to register!  17
 
 followed by the panic. I've tried not linking netgraph into the kernel. When I do this, the machine does not crash; however, PPPoE doesn't work either.
 
 --Brett
 

From: Brian Somers <brian@Awfulhak.org>
To: Brett Glass <brett@lariat.org>
Cc: Brian Somers <brian@Awfulhak.org>,
	freebsd-gnats-submit@FreeBSD.ORG, brian@Awfulhak.org
Subject: Re: kern/26309: PPPoE client panics in kernel 
Date: Fri, 06 Apr 2001 00:05:47 +0100

 > At 12:40 PM 4/3/2001, Brian Somers wrote:
 > 
 > >I'll try to reproduce this locally, but I have no fxp cards so I may 
 > >be irritating^Wasking you for more details soon :-)
 > 
 > It may not be the fxp card that's causing the problem (though I am
 > using one). Before I linked ng_ether statically into the kernel, I 
 > got an error when the kernel loaded it. After I linked it in, I got
 > the panic. So, I think the problem may be in ng_ether or in some
 > argument that gets passed to it. But this is just a guess, and I
 > could be wrong here.
 
 Well, I got to try it here on a -stable machine built 2 days ago and 
 everything worked ok.
 
 The kernel was built with no netgraph support - I had to ``kldload 
 netgraph'' to make the link come up (ppp kept trying and succeeded 
 once this was done).  I've fixed this now and hopefully it can be 
 MFC'd.  I'm using a ``sis'' card.
 
 # kldstat
 Id Refs Address    Size     Name
  1    8 0xc0100000 1953bc   kernel
  2    1 0xc08fd000 6000     procfs.ko
  3    1 0xc091f000 4000     mfs.ko
  4    1 0xc0944000 4000     if_tun.ko
  5    4 0xc0989000 8000     netgraph.ko
  6    1 0xc0994000 3000     ng_ether.ko
  7    1 0xc0998000 3000     ng_socket.ko
  8    1 0xc099b000 4000     ng_pppoe.ko
 
 > If you'd like, I'll send the usual dmesg output, etc.
 
 Is it possible for you to add an ``ifconfig_fxp0'' line to your 
 rc.conf to see if configuring the interface up front helps ?  
 Otherwise I think more info is required.
 
 > --Brett
 
 Cheers.
 
 -- 
 Brian <brian@Awfulhak.org>                        <brian@[uk.]FreeBSD.org>
       <http://www.Awfulhak.org>                   <brian@[uk.]OpenBSD.org>
 Don't _EVER_ lose your sense of humour !
 
 

From: Brett Glass <brett@lariat.org>
To: Brian Somers <brian@Awfulhak.org>
Cc: Brian Somers <brian@Awfulhak.org>,
	freebsd-gnats-submit@FreeBSD.ORG, brian@Awfulhak.org
Subject: Re: kern/26309: PPPoE client panics in kernel 
Date: Thu, 05 Apr 2001 17:12:05 -0600

 At 05:05 PM 4/5/2001, Brian Somers wrote:
 
 >Is it possible for you to add an ``ifconfig_fxp0'' line to your
 >rc.conf to see if configuring the interface up front helps ?
 
 It doesn't help. I tried giving fxp0 an unregisterable address
 in the 172.16 range. Still got the panic.
 
 --Brett
 

From: Brian Somers <brian@Awfulhak.org>
To: Brian Somers <brian@Awfulhak.org>
Cc: Brett Glass <brett@lariat.org>, freebsd-gnats-submit@FreeBSD.ORG,
	brian@Awfulhak.org
Subject: Re: kern/26309: PPPoE client panics in kernel 
Date: Fri, 06 Apr 2001 00:13:17 +0100

 > The kernel was built with no netgraph support - I had to ``kldload 
 > netgraph'' to make the link come up (ppp kept trying and succeeded 
 > once this was done).  I've fixed this now and hopefully it can be 
 > MFC'd.  I'm using a ``sis'' card.
 
 On second thoughts, as the install kernel is built with options 
 NETGRAPH (it's added to the GENERIC template in dokern.sh) I'll wait 
 for the code freeze to end.
 
 -- 
 Brian <brian@Awfulhak.org>                        <brian@[uk.]FreeBSD.org>
       <http://www.Awfulhak.org>                   <brian@[uk.]OpenBSD.org>
 Don't _EVER_ lose your sense of humour !
 
 
Responsible-Changed-From-To: brian->freebsd-bugs 
Responsible-Changed-By: brian 
Responsible-Changed-When: Sat Apr 14 15:05:32 PDT 2001 
Responsible-Changed-Why:  
The panic went away when a different NIC (and driver) was used. 
As I don't have any fxp cards to test with, I can't fix this. 

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

From: drek@smashpow.net
To: freebsd-gnats-submit@FreeBSD.org, brett@lariat.org
Cc: drek@smashpow.net
Subject: Re: kern/26309: PPPoE client panics in kernel - fxp 
Date: Sat, 5 May 2001 02:10:47 -0400 (EDT)

 FYI: I am experiencing the same problem with 4.1-Release with the vr driver
 I have not tried bringing the interface up first but will do so asap. I
 thought it was just me until I found this PR tonight.
 
 cheers,
 
 Derek Marshall
 

From: Brett Glass <brett@lariat.org>
To: drek@smashpow.net, freebsd-gnats-submit@FreeBSD.org
Cc: drek@smashpow.net
Subject: Re: kern/26309: PPPoE client panics in kernel - fxp 
Date: Sat, 05 May 2001 10:05:42 -0600

 No, it seems to be a general problem. With some types of adapters, 
 such as fxp, there is a kernel panic. With others, such as ed,
 PPPoE seems to work at first but fails to re-establish a connection
 after the link is temporarily broken. Brian Somers, maintainer
 of userland PPP, has asked me to try using the version of PPP that
 he has on his own Web site rather than the one in -STABLE. But
 I suspect that the problem is lower down -- in netgraph, the
 NIC drivers, or both.
 
 --Brett
 
 At 12:10 AM 5/5/2001, drek@smashpow.net wrote:
   
 >FYI: I am experiencing the same problem with 4.1-Release with the vr driver
 >I have not tried bringing the interface up first but will do so asap. I
 >thought it was just me until I found this PR tonight.
 >
 >cheers,
 >
 >Derek Marshall
 

From: "Steve" <sdrew@home.com>
To: <freebsd-gnats-submit@FreeBSD.org>, <brett@lariat.org>
Cc:  
Subject: Re: kern/26309: PPPoE client panics in kernel - fxp problem
Date: Sat, 24 Nov 2001 22:16:21 -0700

 This is a multi-part message in MIME format.
 
 ------=_NextPart_000_0001_01C17535.A83003C0
 Content-Type: text/plain;
 	charset="us-ascii"
 Content-Transfer-Encoding: 7bit
 
 I also experience this problem and had to change network cards to get
 around it. Any fix in sight?
  
 
 ------=_NextPart_000_0001_01C17535.A83003C0
 Content-Type: text/html;
 	charset="us-ascii"
 Content-Transfer-Encoding: quoted-printable
 
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
 <HTML><HEAD>
 <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
 charset=3Dus-ascii">
 <TITLE>Message</TITLE>
 
 <META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR></HEAD>
 <BODY>
 <DIV><FONT face=3DArial size=3D2><SPAN class=3D047271505-25112001>I also =
 experience=20
 this problem and had to change network cards to get around it. Any fix =
 in=20
 sight?</SPAN></FONT></DIV>
 <DIV><FONT face=3DArial size=3D2><SPAN=20
 class=3D047271505-25112001></SPAN></FONT>&nbsp;</DIV></BODY></HTML>
 
 ------=_NextPart_000_0001_01C17535.A83003C0--
 

From: Brett Glass <brett@lariat.org>
To: "Steve" <sdrew@home.com>, <freebsd-gnats-submit@FreeBSD.org>
Cc:  
Subject: Re: kern/26309: PPPoE client panics in kernel - fxp problem
Date: Sat, 24 Nov 2001 22:25:41 -0700

 Contact Brian Somers. This is a longstanding problem with userland
 PPP. But Brian was so busy planning BSDCon Europe (among other things)
 that he didn't have time to fix it. Now that the convention is over 
 he may be able to reproduce and correct it.
 
 --Brett
 
 At 10:16 PM 11/24/2001, Steve wrote:
   
 >I also experience this problem and had to change network cards to get around it. Any fix in sight?
 > 
 
Responsible-Changed-From-To: freebsd-bugs->glebius 
Responsible-Changed-By: glebius 
Responsible-Changed-When: Fri Jul 16 00:34:09 GMT 2004 
Responsible-Changed-Why:  
I'd like to track down all PPPoE related PR's. 

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

From: Gleb Smirnoff <glebius@FreeBSD.org>
To: Brett Glass <brett@lariat.org>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: kern/26309: PPPoE client panics in kernel - fxp problem
Date: Fri, 16 Jul 2004 04:43:03 +0400

   Brett,
 
   I decided to awake this old PR. Can you repoduce the problem on
 recent STABLE or one of the latest 4.x releases?
 
 -- 
 Totus tuus, Glebius.
 GLEBIUS-RIPN GLEB-RIPE

From: Brett Glass <brett@lariat.org>
To: Gleb Smirnoff <glebius@FreeBSD.org>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: kern/26309: PPPoE client panics in kernel - fxp problem
Date: Thu, 15 Jul 2004 19:09:29 -0600

 Sure. Just send it a packet with the old 3Com non-standard Ethertype
 and it switches over (you can see it in the code) to using only
 that Ethertype and rejecting the standard one. From that point on,
 all clients that obey the standard are cut off. This is explicit
 in the code.
 
 --Brett
 
 At 06:43 PM 7/15/2004, Gleb Smirnoff wrote:
   
 >  Brett,
 >
 >  I decided to awake this old PR. Can you repoduce the problem on
 >recent STABLE or one of the latest 4.x releases?
 >
 >-- 
 >Totus tuus, Glebius.
 >GLEBIUS-RIPN GLEB-RIPE
 

From: Gleb Smirnoff <glebius@freebsd.org>
To: Brett Glass <brett@lariat.org>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: kern/26309: PPPoE client panics in kernel - fxp problem
Date: Fri, 16 Jul 2004 10:44:46 +0400

   Brett,
 
 On Thu, Jul 15, 2004 at 07:09:29PM -0600, Brett Glass wrote:
 B> Sure. Just send it a packet with the old 3Com non-standard Ethertype
 B> and it switches over (you can see it in the code) to using only
 B> that Ethertype and rejecting the standard one. From that point on,
 B> all clients that obey the standard are cut off. This is explicit
 B> in the code.
 
 The issue you speak about was fixed quite time ago in kern/47920. However,
 we are looking forward to make standard/nonstandard support better.
 
 I'm asking you whether you can reproduce panic decribed in kern/26309
 on recent FreeBSD versions?
 
 -- 
 Totus tuus, Glebius.
 GLEBIUS-RIPN GLEB-RIPE

From: Brett Glass <brett@lariat.org>
To: Gleb Smirnoff <glebius@freebsd.org>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: kern/26309: PPPoE client panics in kernel - fxp problem
Date: Fri, 16 Jul 2004 14:32:08 -0600

 I'll have to try it again. I gave up on PPPoE in FreeBSD long
 ago.
 
 --Brett
 
 At 12:44 AM 7/16/2004, Gleb Smirnoff wrote:
   
 >  Brett,
 >
 >On Thu, Jul 15, 2004 at 07:09:29PM -0600, Brett Glass wrote:
 >B> Sure. Just send it a packet with the old 3Com non-standard Ethertype
 >B> and it switches over (you can see it in the code) to using only
 >B> that Ethertype and rejecting the standard one. From that point on,
 >B> all clients that obey the standard are cut off. This is explicit
 >B> in the code.
 >
 >The issue you speak about was fixed quite time ago in kern/47920. However,
 >we are looking forward to make standard/nonstandard support better.
 >
 >I'm asking you whether you can reproduce panic decribed in kern/26309
 >on recent FreeBSD versions?
 >
 >-- 
 >Totus tuus, Glebius.
 >GLEBIUS-RIPN GLEB-RIPE
 
State-Changed-From-To: open->feedback 
State-Changed-By: glebius 
State-Changed-When: Fri Jul 16 20:48:25 GMT 2004 
State-Changed-Why:  
Awaiting feedback from originator. 

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

From: Gleb Smirnoff <glebius@FreeBSD.org>
To: Brett Glass <brett@lariat.org>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: kern/26309: PPPoE client panics in kernel - fxp problem
Date: Sat, 17 Jul 2004 00:42:44 +0400

   Brett,
 
 On Fri, Jul 16, 2004 at 08:40:19PM +0000, Brett Glass wrote:
 B>  I'll have to try it again. I gave up on PPPoE in FreeBSD long
 B>  ago.
 
 Thanks. I'm patiently awaiting for your feedback.
 
 -- 
 Totus tuus, Glebius.
 GLEBIUS-RIPN GLEB-RIPE
State-Changed-From-To: feedback->closed 
State-Changed-By: glebius 
State-Changed-When: Tue Oct 5 12:59:09 GMT 2004 
State-Changed-Why:  
Feedback timeout > 2 month. 
And I'm pretty sure it is fixed in recent RELENG_4. 

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