From csw@gated.epigram.com  Mon Feb  3 13:51:02 1997
Received: from PaloAlto01.POP.InterNex.Net (PaloAlto01.POP.InterNex.Net [205.158.3.130])
          by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id NAA22952
          for <FreeBSD-gnats-submit@freebsd.org>; Mon, 3 Feb 1997 13:51:01 -0800 (PST)
Received: from epigram.com ([199.2.31.210]) by PaloAlto01.POP.InterNex.Net
          (post.office MTA v1.9.1 ID# 0-11232) with ESMTP id AAA5154
          for <FreeBSD-gnats-submit@freebsd.org>;
          Mon, 3 Feb 1997 13:50:59 -0700
Received: from gated.epigram.com (epi020 [199.2.31.230]) by epigram.com (8.7.5/8.7.3) with ESMTP id NAA11681 for <FreeBSD-gnats-submit@freebsd.org>; Mon, 3 Feb 1997 13:47:09 -0800 (PST)
Received: (from csw@localhost) by gated.epigram.com (8.7.5/8.7.3) id HAA00264; Mon, 3 Feb 1997 07:22:00 -0800 (PST)
Message-Id: <199702031522.HAA00264@gated.epigram.com>
Date: Mon, 3 Feb 1997 07:22:00 -0800 (PST)
From: Christopher Warth <csw@epigram.com>
Reply-To: csw@gated.epigram.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: changing existing route to -static crashes kernel
X-Send-Pr-Version: 3.2

>Number:         2647
>Category:       kern
>Synopsis:       changing existing route to -static crashes kernel
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb  3 14:00:01 PST 1997
>Closed-Date:    Mon Sep 25 13:08:51 PDT 2000
>Last-Modified:  Mon Sep 25 13:10:26 PDT 2000
>Originator:     Christopher Warth
>Release:        FreeBSD 2.1-STABLE i386
>Organization:
Epigram.com
>Environment:

	2.1-STABLE running on a Dell 200Mhx pentium (model Dimension XPSPro 200 n).
	2 x  3Com 3c595 Fast EtherLink III PCI
	kernel option GATEWAY turned on
	ipfilt 3.1.5 installed a s loadable module.

>Description:

	Using the "change" command to add the "-static" flag to
  	an existing route on the local ethernet will always crash the machine.
	In fact there are a great number of parameters to "route" that will
	instantly crash the machine.  This is the most repeatable example 
	though.

>How-To-Repeat:

	Do a "netstat -rn" and choose a route to a machine on your
        local network that has been resolved to a machine address.  For
	example on my local network I chose the following entry:

	199.2.31.1         0:0:c:76:30:3d     UHLW        1        0       vx0     76

	Now change this route to be static.

	route change 199.2.31.1 -static

	Bang! machine crashes with a "page fault in kernel mode" error..

>Fix:
	
	No workaround known.  Perhaps a periodic ping would be enough
        to keep this routing entry from expiring.

>Release-Note:
>Audit-Trail:

From: Bill Fenner <fenner@parc.xerox.com>
To: csw@gated.epigram.com
Cc: FreeBSD-gnats@freebsd.org, fenner@parc.xerox.com
Subject: Re: kern/2647: changing existing route to -static crashes kernel 
Date: Mon, 3 Feb 1997 16:21:59 PST

 >	Using the "change" command to add the "-static" flag to
 >  	an existing route on the local ethernet will always crash the machine.
 
 The "change" interface is not very well fleshed out.  I think it pretty much 
 only works for changing gateways, metrics or locks; so even if it didn't panic 
 it wouldn't accomplish what you want.
 
 To accomplish what you appear to want to do, you could try
 
 arp -s 199.2.31.1 0:0:c:76:30:3d perm
 
 (although I don't know why you'd want to do that, if it's dynamically 
 discoverable once, it's presumably dynamically discoverable again when it's 
 needed...)
 
   Bill
 
State-Changed-From-To: open->suspended 
State-Changed-By: fenner 
State-Changed-When: Mon Feb 3 19:14:49 PST 1997 
State-Changed-Why:  
The panic was fixed in rev 1.25 of sys/net/rtsock.c . 

The fact that RTM_CHANGE messages can't change flags is 
a flaw inherited from 4.4BSD and AFAIK isn't going to be 
addressed soon. 
State-Changed-From-To: suspended->closed 
State-Changed-By: peter 
State-Changed-When: Mon Sep 25 13:08:51 PDT 2000 
State-Changed-Why:  
Could not reproduce, presumed fixed. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=2647 
>Unformatted:
Note: "From:" address in email header changed from <csw@gated.epigram.com>
to <csw@epigram.com> on Mon Feb  3 19:18:50 PST 1997, since gated.epigram.com
doesn't exist.
