NetBSD Problem Report #1120

From gnats  Wed Jun  7 02:56:27 1995
Received: from pain.lcs.mit.edu (pain.lcs.mit.edu [128.52.46.239]) by sun-lamp.cs.berkeley.edu (8.6.10/8.6.10) with ESMTP id CAA04261 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Wed, 7 Jun 1995 02:56:24 -0700
Message-Id: <199506070957.KAA12097@doublesix.domino.org>
Date: Wed, 7 Jun 1995 10:57:16 +0100
From: "Neil J. McRae" <neil@domino.org>
Reply-To: neil@domino.org
To: gnats-bugs@NetBSD.ORG
Subject: options GATEWAY statistics array bounds are not checked.
X-Send-Pr-Version: 3.2

>Number:         1120
>Category:       kern
>Synopsis:       options GATEWAY statistics array bounds are not checked.
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jun 07 03:05:07 +0000 1995
>Closed-Date:    Wed Jun 07 16:00:30 +0000 1995
>Last-Modified:  
>Originator:     Neil J. McRae
>Release:        25/5/95
>Organization:
Domino.
>Environment:

Systerm :NetBSD w.demon.co.uk 1.0A NetBSD 1.0A (DEMON) #0: Thu May 25 18:25:31 BST 1995   root@w.demon.co.uk:/usr/src/sys/arch/i386/compile/DEMON i386

>Description:
	An array for statistics is created at bootime on an options GATEWAY
kernel, it is written to each time a packet is forwarded, never checking 
for array bounds, If a network interface is added after boottime, it will
write past the end of the array and into whatever is stored past it's end.

>How-To-Repeat:
	Build an options GATEWAY kernel and add a network interface after boot 
time, eventually this will cause problems. THe problem was forwarded to me and
I personally have been unable to repeat it although, I am assured the problem
exists.
>Fix:
	Not a fix bu a slight workaround is to options "IPFORWARDING=1" however,
this doesn't give enough mbuf clusters unless NMBCLUSTERS= is used, which is a
hack, Or so I am told.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: mycroft 
State-Changed-When: Wed Jun 7 09:00:30 PDT 1995 
State-Changed-Why:  
Fixed (by removing ip_ifmatrix). 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.