Bug 14457

Summary: SIOCGIFCONF uses too much memory
Product: Base System Reporter: Alex Povolotsky <tarkhil>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 3.3-STABLE   
Hardware: Any   
OS: Any   

Description Alex Povolotsky 1999-10-22 11:40:01 UTC
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.
Comment 1 patrick 2000-03-11 07:23:44 UTC
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
Comment 2 guido freebsd_committer freebsd_triage 2000-04-21 18:55:27 UTC
State Changed
From-To: open->closed

superseded by kern/17311