From nobody@FreeBSD.org  Wed Jun  6 07:16:27 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 2EC701065674
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  6 Jun 2012 07:16:27 +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 0F9148FC0C
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  6 Jun 2012 07:16:27 +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 q567GQ6w096211
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 6 Jun 2012 07:16:26 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id q567GQM0096190;
	Wed, 6 Jun 2012 07:16:26 GMT
	(envelope-from nobody)
Message-Id: <201206060716.q567GQM0096190@red.freebsd.org>
Date: Wed, 6 Jun 2012 07:16:26 GMT
From: "Andrey V. Elsukov" <bu7cher@yandex.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: detaching of ethernet adapter with configured vlans leads to panic
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         168742
>Category:       kern
>Synopsis:       [vlan] [panic] detaching of ethernet adapter with configured vlans leads to panic
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-net
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 06 07:20:14 UTC 2012
>Closed-Date:    Wed Aug 29 12:44:15 UTC 2012
>Last-Modified:  Wed Aug 29 12:44:15 UTC 2012
>Originator:     Andrey V. Elsukov
>Release:        10.0-CURRENT
>Organization:
>Environment:
10.0-CURRENT #7 r236390 amd64
>Description:
ugen1.3: <vendor 0x2001> at usbus1 (disconnected)
axe0: at uhub3, port 8, addr 3 (disconnected)
ukphy0: detached
miibus0: detached
panic: if_delmulti: ifnet went away

#0  doadump (textdump=279933584) at /usr/src/sys/kern/kern_shutdown.c:268
#1  0xffffffff8033433c in db_fncall (dummy1=) at /usr/src/sys/ddb/db_command.c:573
#2  0xffffffff80334671 in db_command (last_cmdp=0xffffffff8122a7e0, cmd_table=) at /usr/src/sys/ddb/db_command.c:449
#3  0xffffffff803348c0 in db_command_loop () at /usr/src/sys/ddb/db_command.c:502
#4  0xffffffff80336a19 in db_trap (type=) at /usr/src/sys/ddb/db_main.c:231
#5  0xffffffff808ec428 in kdb_trap (type=3, code=0, tf=0xffffff8110af7570) at /usr/src/sys/kern/subr_kdb.c:654
#6  0xffffffff80bc0f0d in trap (frame=0xffffff8110af7570) at /usr/src/sys/amd64/amd64/trap.c:573
#7  0xffffffff80bab253 in calltrap () at /usr/src/sys/amd64/amd64/exception.S:228
#8  0xffffffff808ebeab in kdb_enter (why=0xffffffff80e1dcef "panic", msg=0x80 <Address 0x80 out of bounds>) at cpufunc.h:63
#9  0xffffffff808b3d31 in panic (fmt=) at /usr/src/sys/kern/kern_shutdown.c:633
#10 0xffffffff8096fa88 in if_delmulti (ifp=0xfffffe0005e45000, sa=0xfffffe0008626200) at /usr/src/sys/net/if.c:3072
#11 0xffffffff8097e73f in vlan_unconfig_locked (ifp=0xfffffe0005ee6800) at /usr/src/sys/net/if_vlan.c:1346
#12 0xffffffff8097ec60 in vlan_ifdetach (arg=) at /usr/src/sys/net/if_vlan.c:588
#13 0xffffffff80972faf in if_detach (ifp=0xfffffe0005e45000) at /usr/src/sys/net/if.c:912
#14 0xffffffff81c189c0 in uether_ifdetach (ue=0xfffffe0008014800) at /usr/src/sys/modules/usb/uether/../../../dev/usb/net/usb_ethernet.c:307
#15 0xffffffff81c1255a in axe_detach (dev=) at /usr/src/sys/modules/usb/axe/../../../dev/usb/net/if_axe.c:980
#16 0xffffffff808e5c24 in device_detach (dev=0xfffffe000878b200) at device_if.h:214
#17 0xffffffff80761428 in usb_detach_device (udev=0xfffffe0005ef9800, iface_index=32 ' ', flag=) at /usr/src/sys/dev/usb/usb_device.c:1062
#18 0xffffffff80761d34 in usb_unconfigure (udev=0xfffffe0005ef9800, flag=) at /usr/src/sys/dev/usb/usb_device.c:455
#19 0xffffffff80762016 in usb_free_device (udev=0xfffffe0005ef9800, flag=) at /usr/src/sys/dev/usb/usb_device.c:2087
#20 0xffffffff8076a68e in uhub_explore (udev=0xfffffe0005c95800) at /usr/src/sys/dev/usb/usb_hub.c:358
#21 0xffffffff8076a995 in uhub_explore (udev=0xfffffe0005c07000) at /usr/src/sys/dev/usb/usb_hub.c:284
#22 0xffffffff80755ec2 in usb_bus_explore (pm=) at /usr/src/sys/dev/usb/controller/usb_controller.c:360
#23 0xffffffff8076e213 in usb_process (arg=) at /usr/src/sys/dev/usb/usb_process.c:174
#24 0xffffffff80884875 in fork_exit (callout=0xffffffff8076e150 <usb_process>, arg=0xffffff80008b7db0, frame=0xffffff8110af7b00) at /usr/src/sys/kern/kern_fork.c:991
#25 0xffffffff80bab77e in fork_trampoline () at /usr/src/sys/amd64/amd64/exception.S:602

>How-To-Repeat:
The GENERIC kernel with INVARIANTS support.
Plug USB Ethernet adapter and configure several vlans on it.
Unplug USB adapter.
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-net 
Responsible-Changed-By: ae 
Responsible-Changed-When: Tue Aug 7 04:48:17 UTC 2012 
Responsible-Changed-Why:  
Reassign. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=168742 
State-Changed-From-To: open->closed 
State-Changed-By: jhb 
State-Changed-When: Wed Aug 29 12:44:01 UTC 2012 
State-Changed-Why:  
Fix committed to HEAD. 

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