Date: Mon, 21 Apr 1997 14:02:04 -0400 (EDT) From: John Capo <jc@irbs.com> To: FreeBSD-gnats-submit@freebsd.org Subject: kern/3367: 2.1.7.1 panic with route mask == 0 Message-ID: <199704211802.OAA10624@irbs.irbs.com> Resent-Message-ID: <199704211810.LAA03942@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 3367
>Category: kern
>Synopsis: 2.1.7.1 panic with route mask == 0
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Apr 21 11:10:00 PDT 1997
>Last-Modified:
>Originator: John Capo
>Organization:
IRBS Engineering
>Release: FreeBSD 2.1.7.1-RELEASE i386
>Environment:
2.[01] kernel
>Description:
I managed to get a bogus route added via /etc/ppp/ppp.conf that
caused a panic due to the mask associated with the route being 0.
>How-To-Repeat:
It's been a while and I didn't make notes at the time.
>Fix:
Same fix is in 2.2.
Index: route.c
===================================================================
RCS file: /usr/cvs/src/sys/net/route.c,v
retrieving revision 1.23.4.3
diff -u -r1.23.4.3 route.c
--- route.c 1996/06/08 02:02:03 1.23.4.3
+++ route.c 1997/03/16 02:00:25
@@ -511,7 +511,7 @@
* it doesn't fire when we call it there because the node
* hasn't been added to the tree yet.
*/
- if (!(rt->rt_flags & RTF_HOST)) {
+ if (!(rt->rt_flags & RTF_HOST) && rt_mask(rt) != 0) {
struct rtfc_arg arg;
arg.rnh = rnh;
arg.rt0 = rt;
>Audit-Trail:
>Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199704211802.OAA10624>
