From sc@xilinxpc.ho.lucent.com  Wed Apr  5 17:31:48 2006
Return-Path: <sc@xilinxpc.ho.lucent.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 13C2A16A41F
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  5 Apr 2006 17:31:48 +0000 (UTC)
	(envelope-from sc@xilinxpc.ho.lucent.com)
Received: from hoemail1.lucent.com (hoemail1.lucent.com [192.11.226.161])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 3DF7D43D4C
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  5 Apr 2006 17:31:47 +0000 (GMT)
	(envelope-from sc@xilinxpc.ho.lucent.com)
Received: from homail.ho.lucent.com (h135-17-192-10.lucent.com [135.17.192.10])
	by hoemail1.lucent.com (8.12.11/8.12.11) with ESMTP id k35HVj0G006473
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 5 Apr 2006 12:31:45 -0500 (CDT)
Received: from xilinxpc.ho.lucent.com (xilinxpc.ho.lucent.com [135.112.126.43]) by homail.ho.lucent.com (8.11.7p1+Sun/EMS-1.5 sol2)
	id k35HVj625015; Wed, 5 Apr 2006 13:31:45 -0400 (EDT)
Received: from xilinxpc.ho.lucent.com (localhost [127.0.0.1])
	by xilinxpc.ho.lucent.com (8.13.1/8.13.1) with ESMTP id k35HVKa9014189
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 5 Apr 2006 13:31:20 -0400 (EDT)
	(envelope-from sc@xilinxpc.ho.lucent.com)
Received: (from sc@localhost)
	by xilinxpc.ho.lucent.com (8.13.1/8.13.1/Submit) id k35HVKhu014188;
	Wed, 5 Apr 2006 13:31:20 -0400 (EDT)
	(envelope-from sc)
Message-Id: <200604051731.k35HVKhu014188@xilinxpc.ho.lucent.com>
Date: Wed, 5 Apr 2006 13:31:20 -0400 (EDT)
From: Stephen.Corteselli@xilinxpc.ho.lucent.com
Reply-To: Stephen Corteselli <sacrab81@yahoo.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: knlist of vmnet device is incorrectly destroyed by tapclose()
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         95357
>Category:       kern
>Synopsis:       [if_tap] knlist of vmnet device is incorrectly destroyed by tapclose()
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    emax
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 05 17:40:17 GMT 2006
>Closed-Date:    Wed Sep 27 20:46:22 GMT 2006
>Last-Modified:  Wed Sep 27 20:46:22 GMT 2006
>Originator:     Stephen Corteselli
>Release:        FreeBSD 7.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD FreeBSD 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Sun Apr  2 21:34:14 EDT 2006     sc@FreeBSD:/usr/sys/i386/compile/SC  i386
>Description:
In sys/net/if_tap.c 1.59 2006/03/16, tapclose() unconditionally destroys
the knlist initialized in tapopen().  However, the vmnet device uses the
knlist after tapclose is called.  This causes a panic when ifconfig'ing
vmnet1 with an IP address. (if_tap.ko is needed to run the VMware 2 port.)
>How-To-Repeat:
		kldload if_tap.ko
		echo -n >/dev/vmnet1
		ifconfig vmnet1 1.1.1.1
>Fix:
I'm not sure what the proper fix is, but I got ifconfig not to panic
the system by moving the call to knlist_destroy() (line 462 of
sys/net/if_tap.c) to just before line 449 (i.e., in the if statement
executed if this is NOT the vmnet device.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->emax 
Responsible-Changed-By: glebius 
Responsible-Changed-When: Fri Apr 7 09:15:28 UTC 2006 
Responsible-Changed-Why:  
Assign to committer of the revision in question. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=95357 
State-Changed-From-To: open->feedback 
State-Changed-By: emax 
State-Changed-When: Wed May 17 17:05:50 UTC 2006 
State-Changed-Why:  
Patch committed to -current 

http://www.freebsd.org/cgi/query-pr.cgi?pr=95357 
State-Changed-From-To: feedback->patched 
State-Changed-By: emax 
State-Changed-When: Mon Sep 18 16:48:15 UTC 2006 
State-Changed-Why:  
patch was committed to both -current and -stable 

http://www.freebsd.org/cgi/query-pr.cgi?pr=95357 
State-Changed-From-To: patched->closed 
State-Changed-By: emax 
State-Changed-When: Wed Sep 27 20:46:07 UTC 2006 
State-Changed-Why:  
PR closed 

http://www.freebsd.org/cgi/query-pr.cgi?pr=95357 
>Unformatted:
