From nobody@FreeBSD.org  Tue Aug 26 09:51:37 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 2103E1065673
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 26 Aug 2008 09:51:37 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 1C1458FC21
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 26 Aug 2008 09:51:37 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m7Q9paYI090929
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 26 Aug 2008 09:51:36 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m7Q9paVN090928;
	Tue, 26 Aug 2008 09:51:36 GMT
	(envelope-from nobody)
Message-Id: <200808260951.m7Q9paVN090928@www.freebsd.org>
Date: Tue, 26 Aug 2008 09:51:36 GMT
From: Damien Deville <damien.deville@netasq.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Panic in if_vlan.c
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         126850
>Category:       kern
>Synopsis:       [vlan] Panic in if_vlan.c, after r181607
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    jfv
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 26 10:00:10 UTC 2008
>Closed-Date:    Mon Mar 16 12:34:21 UTC 2009
>Last-Modified:  Mon Mar 16 12:34:21 UTC 2009
>Originator:     Damien Deville
>Release:        RELENG_7
>Organization:
NETASQ
>Environment:
FreeBSD barbar.netasq.com 7.0-STABLE FreeBSD 7.0-STABLE #2: Mon Aug  12 15:56:16 CEST 2008     pb@barbar.netasq.com:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
On RELENG_7 after August 12th, and also on HEAD it is possible to crash the system using the following commands:

ifconfig vlan0 create
ifconfig vlan0 -vlandev

Crash is located in if_vlan.c in vlan_unconfig_locked() when dereferencing a NULL pointer (ifv->ifv_trunk) to access parent interface using PARENT macro.

Crash appeared after svn revision 181607 on RELENG_7: MFC of vlan attach notification support.

>How-To-Repeat:
Run the following commands:

ifconfig vlan0 create
ifconfig vlan0 -vlandev
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->jfv 
Responsible-Changed-By: gavin 
Responsible-Changed-When: Tue Aug 26 10:09:37 UTC 2008 
Responsible-Changed-Why:  
Jack, could you take a look at this please?  It's a reproduceable panic, 
and the submitter seems to have tracked it back to a commit of yours a 
couple of weeks ago 

http://www.freebsd.org/cgi/query-pr.cgi?pr=126850 

From: Yar Tikhiy <yar@comp.chem.msu.su>
To: bug-followup@FreeBSD.org,
 jfv@freebsd.org
Cc:  
Subject: Re: kern/126850: [vlan] Panic in if_vlan.c, after r181607
Date: Wed, 26 Nov 2008 22:56:13 +0300

 Jack,
 
 Could you please MFC r182413 and close the PR?
 It has been in HEAD for 3 months now and should be OK,
 so it'll be a shame to let the bug stay in 7.1-RELEASE
 with a fix ready for it.  Thanks!
 
 Yar
 
State-Changed-From-To: open->closed 
State-Changed-By: vanhu 
State-Changed-When: Mon Mar 16 12:32:28 UTC 2009 
State-Changed-Why:  
MFC done for 7.1-RC2. 


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