From owner-freebsd-net@freebsd.org Tue Sep 18 20:52:53 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C636A10A8E62 for ; Tue, 18 Sep 2018 20:52:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 659E38370B for ; Tue, 18 Sep 2018 20:52:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 298B210A8E60; Tue, 18 Sep 2018 20:52:53 +0000 (UTC) Delivered-To: net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1856C10A8E5F for ; Tue, 18 Sep 2018 20:52:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B07DF83705 for ; Tue, 18 Sep 2018 20:52:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 1A0FA1F68B for ; Tue, 18 Sep 2018 20:52:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w8IKqpnb021020 for ; Tue, 18 Sep 2018 20:52:51 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w8IKqphg021019 for net@FreeBSD.org; Tue, 18 Sep 2018 20:52:51 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 230655] vlan(4) holds non-sleepable locks around driver ioctls Date: Tue, 18 Sep 2018 20:52:52 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: erj@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Sep 2018 20:52:54 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230655 Eric Joyner changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |erj@freebsd.org --- Comment #1 from Eric Joyner --- We also see this when using iflib drivers: lock order reversal: (sleepable after non-sleepable) 1st 0xfffff807b4884d08 vlan (vlan) @ /usr/src/sys/net/if_vlan.c:1931 2nd 0xfffff80549c87560 iflib ctx lock (iflib ctx lock) @ /usr/src/sys/net/iflib.c:4218 stack backtrace: #0 0xffffffff80bc1c83 at witness_debugger+0x73 #1 0xffffffff80bc19d3 at witness_checkorder+0xab3 #2 0xffffffff80b62e68 at _sx_xlock+0x68 #3 0xffffffff80c7a2bc at iflib_if_ioctl+0x8c #4 0xffffffff80c5beca at if_addmulti+0x24a #5 0xffffffff80c6c9c6 at vlan_setmulti+0x196 #6 0xffffffff80c6bb89 at vlan_ioctl+0xa9 #7 0xffffffff80c5beca at if_addmulti+0x24a #8 0xffffffff80ce0075 at in_joingroup_locked+0x235 #9 0xffffffff80cdfe12 at in_joingroup+0x42 #10 0xffffffff80cdb358 at in_control+0xb08 #11 0xffffffff80c5af73 at ifioctl+0x1853 #12 0xffffffff80bc6bba at kern_ioctl+0x2ba #13 0xffffffff80bc688e at sys_ioctl+0x15e #14 0xffffffff8102ce0c at amd64_syscall+0x28c #15 0xffffffff810095fd at fast_syscall_common+0x101 --=20 You are receiving this mail because: You are the assignee for the bug.=