Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Oct 1999 03:36:15 -0700 (PDT)
From:      tarkhil@over.ru
To:        freebsd-gnats-submit@freebsd.org
Subject:   kern/14457: SIOCGIFCONF uses too much memory
Message-ID:  <19991022103615.96D4A14FFB@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         14457
>Category:       kern
>Synopsis:       SIOCGIFCONF uses too much memory
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 22 03:40:01 PDT 1999
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991022103615.96D4A14FFB>