Subject: kern/20426: accesses to ifindex2ifnet[] has to be protected
To: None <gnats-bugs@gnats.netbsd.org>
From: None <itojun@itojun.org>
List: netbsd-bugs
Date: 02/19/2003 19:10:04
>Number:         20426
>Category:       kern
>Synopsis:       accesses to ifindex2ifnet[] has to be protected
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 19 02:11:00 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Jun-ichiro itojun Hagino
>Release:        NetBSD 1.6O
>Organization:
	
>Environment:
System: NetBSD starfruit.itojun.org 1.6O NetBSD 1.6O (STARFRUIT) #45: Wed Feb 19 17:51:54 JST 2003 itojun@starfruit.itojun.org:/home/itojun/NetBSD/src/sys/arch/i386/compile/STARFRUIT i386
Architecture: i386
Machine: i386
>Description:
	"ifconfig destroy" sometimes panic the system.  possible cause
	seems to be attempts to access struct ifnet from ifindex2ifnet[]
	(i'm guessing).
>How-To-Repeat:
>Fix:
	on "ifconfig destroy" do not remove pointer to struct ifnet from
	ifindex2ifnet[].
>Release-Note:
>Audit-Trail:
>Unformatted: