From nobody@FreeBSD.org  Mon Jun  4 14:35:23 2012
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 589A61065670
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  4 Jun 2012 14:35:23 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 45C3A8FC1B
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  4 Jun 2012 14:35:23 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q54EZMho011647
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 4 Jun 2012 14:35:22 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id q54EZM6X011646;
	Mon, 4 Jun 2012 14:35:22 GMT
	(envelope-from nobody)
Message-Id: <201206041435.q54EZM6X011646@red.freebsd.org>
Date: Mon, 4 Jun 2012 14:35:22 GMT
From: Michael Pounov <misho@elwix.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: BPF kernel crash
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         168670
>Category:       kern
>Synopsis:       [vlan] [panic] BPF kernel crash
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    melifaro
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 04 14:40:11 UTC 2012
>Closed-Date:    Sun Jul 01 16:18:42 UTC 2012
>Last-Modified:  Sun Jul 01 16:18:42 UTC 2012
>Originator:     Michael Pounov
>Release:        FreeBSD-CURRENT
>Organization:
ELWIX
>Environment:
FreeBSD elwix.aitnet.org 10.0-CURRENT FreeBSD 10.0-CURRENT #16: Mon Jun  4 13:55:42 EEST 2012     root@elwix.aitnet.org:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
Kernel crash when you wish to change interface name from vlan0 to other name

It seems to be in arrival/departure events.

1) when I set up vlan0 and change name to mgmt and after that destroy mgmt.
 kernel crash in bpfdetach() at line 2495. where it tries to find interface
 structure.
2) when I setup vlan0, change name to mgmt and set ip address. After few
 seconds kernel crash in vlan_transmit() at line 1029. where it tries to
 push mbufs to bpf interface, but it is NULL.

>How-To-Repeat:
ifconfig vlan0 create
ifconfig vlan0 vlan 100 vlandev <your_iface>
ifconfig vlan0 name mgmt
ifconfig mgmt destroy
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-net 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sun Jun 10 23:25:09 UTC 2012 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=168670 
Responsible-Changed-From-To: freebsd-net->melifaro 
Responsible-Changed-By: melifaro 
Responsible-Changed-When: Mon Jun 11 06:17:08 UTC 2012 
Responsible-Changed-Why:  
Take 

http://www.freebsd.org/cgi/query-pr.cgi?pr=168670 
State-Changed-From-To: open->feedback 
State-Changed-By: melifaro 
State-Changed-When: Mon Jun 11 06:24:50 UTC 2012 
State-Changed-Why:  
This was fixed in r236559 @ Jun 4. 
Cay you please try updating & rebuilding your kernel? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=168670 
State-Changed-From-To: feedback->closed 
State-Changed-By: melifaro 
State-Changed-When: Sun Jul 1 16:14:11 UTC 2012 
State-Changed-Why:  
Other users confirm r236559 fixes panic. Closing due to timeout. 
Please reopen (or write to me directly) if problem persist. 

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