From nobody@FreeBSD.ORG Fri Oct 22 03:36:15 1999
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id 96D4A14FFB; Fri, 22 Oct 1999 03:36:15 -0700 (PDT)
Message-Id: <19991022103615.96D4A14FFB@hub.freebsd.org>
Date: Fri, 22 Oct 1999 03:36:15 -0700 (PDT)
From: tarkhil@over.ru
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@freebsd.org
Subject: SIOCGIFCONF uses too much memory
X-Send-Pr-Version: www-1.0

>Number:         14457
>Category:       kern
>Synopsis:       SIOCGIFCONF uses too much memory
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 22 03:40:01 PDT 1999
>Closed-Date:    Fri Apr 21 19:55:27 MEST 2000
>Last-Modified:  Fri Apr 21 19:55:54 MEST 2000
>Originator:     Alex Povolotsky
>Release:        FreeBSD 3.3-STABLE
>Organization:
>Environment:
FreeBSD enterprise.infinity.ru 3.3-STABLE FreeBSD 3.3-STABLE #0: Thu Oct 21 22:37:35 MSD 1999     root@enterprise.infinity.ru:/usr/src/sys/compile/ENTERPRISE  i386

>Description:
On a computer with many interfaces (8 ppp, 1 ether, 1 discard, 1 tunnel) SIOCGIFCONF asometimes uses more memory than specified in ifc_len member of ifc structure.

This can cause (and causes!) corruption of program data.
>How-To-Repeat:
Build a kernel with lots of interfaces. call ioctl with less than 300 bytes of buffer (specified in ifc_len). Watch ioctl returining ifc_len INCREASED and look for memory corruption. qmail on the computer with 12 network interfaces fails when one of ppp interfaces is up.
>Fix:


>Release-Note:
>Audit-Trail:

From: Patrick Bihan-Faou <patrick@mindstep.com>
To: freebsd-gnats-submit@FreeBSD.org, tarkhil@over.ru
Cc:  
Subject: Re: kern/14457: SIOCGIFCONF uses too much memory
Date: Sat, 11 Mar 2000 02:23:44 -0500

 This PR should be closed by the fix included in kern/17311.
 
 
 http://www.freebsd.org/cgi/query-pr.cgi?pr=17311
 
 
 
 -- 
 Patrick Bihan-Faou
 MindStep Corporation
 
 
 
State-Changed-From-To: open->closed 
State-Changed-By: guido 
State-Changed-When: Fri Apr 21 19:55:27 MEST 2000 
State-Changed-Why:  
superseded by kern/17311 
>Unformatted:
