From owner-freebsd-net@FreeBSD.ORG Fri Oct 3 00:40:39 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CA6DEC04 for ; Fri, 3 Oct 2014 00:40:39 +0000 (UTC) Received: from stargate.chelsio.com (99-65-72-228.uvs.sntcca.sbcglobal.net [99.65.72.228]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9A4C99CF for ; Fri, 3 Oct 2014 00:40:38 +0000 (UTC) Received: from nice.asicdesigners.com (nice.asicdesigners.com [10.192.160.7]) by stargate.chelsio.com (8.13.8/8.13.8) with ESMTP id s930eVMa017807 for ; Thu, 2 Oct 2014 17:40:31 -0700 Received: from NICE.asicdesigners.com ([fe80::51b2:ba95:9d72:babc]) by nice.asicdesigners.com ([fe80::51b2:ba95:9d72:babc%15]) with mapi id 14.02.0247.003; Thu, 2 Oct 2014 17:40:31 -0700 From: Hariprasad S To: "freebsd-net@freebsd.org" Subject: Detaching the slave from the lagg interface which has vlan on top of it, hits an panic Thread-Topic: Detaching the slave from the lagg interface which has vlan on top of it, hits an panic Thread-Index: Ac/eojBrX73E5zuoT86BWbsKBFP7+Q== Date: Fri, 3 Oct 2014 00:40:30 +0000 Message-ID: <26E3F92EC670BD429DB5CB319D773C137A8878@nice.asicdesigners.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.192.171.221] MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Oct 2014 00:40:39 -0000 HI, Detaching the slave from the lagg interface which has vlan on top of it, hi= ts an panic. Kernel used: FreeBSD HEAD r272051 Is anyone aware of this issue? Steps to reproduce: 1) Created a lagg interface (lagg0) # ifconfig lagg0 create 2) Attach slaves to the lag interface # ifconfig lagg0 laggport cxl0 laggport cxl1 # ifconfig lagg0 up 3)Created a vlan interface over lagg0(lagg0.6) # ifconfig vlan10 create # ifconfig vlan 10 1.1.1.1/24 vlan 10 vlandev lagg0 # ifconfig vlan0 up 4) Ping the peer interface # ping 1.1.1.2 5)>Detached the active slave from lagg0. # ifconfig lagg0 -laggport cxl0 ------------------------------------------------------- Unread portion of the kernel message buffer: lock order reversal: (sleepable after non-sleepable) 1st 0xfffff800095d8408 if_lagg rmlock (if_lagg rmlock) @ /usr/src/sys/modul= es/if_lagg/../../net/if_lagg.c:1139 2nd 0xffffffff81aa7228 vlan_global (vlan_global) @ /usr/src/sys/net/if_vlan= .c:542 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe0123668= 5e0 kdb_backtrace() at kdb_backtrace+0x39/frame 0xfffffe0123668690 witness_checkorder() at witness_checkorder+0xdc2/frame 0xfffffe0123668720 _sx_xlock() at _sx_xlock+0x75/frame 0xfffffe0123668760 vlan_iflladdr() at vlan_iflladdr+0x36/frame 0xfffffe0123668790 lagg_lladdr() at lagg_lladdr+0xee/frame 0xfffffe01236687c0 lagg_port_destroy() at lagg_port_destroy+0x1cd/frame 0xfffffe0123668810 lagg_ioctl() at lagg_ioctl+0xa23/frame 0xfffffe01236688f0 in_control() at in_control+0x30b/frame 0xfffffe0123668970 ifioctl() at ifioctl+0xba8/frame 0xfffffe0123668a30 kern_ioctl() at kern_ioctl+0x22b/frame 0xfffffe0123668a90 sys_ioctl() at sys_ioctl+0x13c/frame 0xfffffe0123668ae0 amd64_syscall() at amd64_syscall+0x25a/frame 0xfffffe0123668bf0 Xfast_syscall() at Xfast_syscall+0xfb/frame 0xfffffe0123668bf0 --- syscall (54, FreeBSD ELF64, sys_ioctl), rip =3D 0x8011ced2a, rsp =3D 0x= 7fffffffe218, rbp =3D 0x7fffffffe290 --- panic: rm_rlock: wlock already held for if_lagg rmlock @ /usr/src/sys/modul= es/if_lagg/../../net/if_lagg.c:1325 cpuid =3D 1 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe0123668= 320 kdb_backtrace() at kdb_backtrace+0x39/frame 0xfffffe01236683d0 vpanic() at vpanic+0x189/frame 0xfffffe0123668450 kassert_panic() at kassert_panic+0x198/frame 0xfffffe01236684e0 _rm_rlock_debug() at _rm_rlock_debug+0x1c3/frame 0xfffffe0123668520 lagg_transmit() at lagg_transmit+0x4d/frame 0xfffffe01236685a0 vlan_transmit() at vlan_transmit+0x14f/frame 0xfffffe01236685f0 ether_output() at ether_output+0x5b1/frame 0xfffffe0123668660 arprequest() at arprequest+0x287/frame 0xfffffe01236686d0 arp_ifinit() at arp_ifinit+0x59/frame 0xfffffe0123668700 if_setlladdr() at if_setlladdr+0x1fc/frame 0xfffffe0123668760 vlan_iflladdr() at vlan_iflladdr+0xa0/frame 0xfffffe0123668790 lagg_lladdr() at lagg_lladdr+0xee/frame 0xfffffe01236687c0 lagg_port_destroy() at lagg_port_destroy+0x1cd/frame 0xfffffe0123668810 lagg_ioctl() at lagg_ioctl+0xa23/frame 0xfffffe01236688f0 in_control() at in_control+0x30b/frame 0xfffffe0123668970 ifioctl() at ifioctl+0xba8/frame 0xfffffe0123668a30 kern_ioctl() at kern_ioctl+0x22b/frame 0xfffffe0123668a90 sys_ioctl() at sys_ioctl+0x13c/frame 0xfffffe0123668ae0 amd64_syscall() at amd64_syscall+0x25a/frame 0xfffffe0123668bf0 Xfast_syscall() at Xfast_syscall+0xfb/frame 0xfffffe0123668bf0 --- syscall (54, FreeBSD ELF64, sys_ioctl), rip =3D 0x8011ced2a, rsp =3D 0x= 7fffffffe218, rbp =3D 0x7fffffffe290 --- KDB: enter: panic Thanks, Hariprasad