From owner-freebsd-current@FreeBSD.ORG Mon Sep 19 20:30:40 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C6B2716A41F for ; Mon, 19 Sep 2005 20:30:40 +0000 (GMT) (envelope-from erik.winge@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6324343D45 for ; Mon, 19 Sep 2005 20:30:40 +0000 (GMT) (envelope-from erik.winge@gmail.com) Received: by zproxy.gmail.com with SMTP id z31so5207nzd for ; Mon, 19 Sep 2005 13:30:39 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=aJ6C89w71tXT2yiy3Jji81Kkd/qsGXDPf3qVXhjJ+ohqVWpDL8MuI8rAgo5HCqE4tcQXTr3PPie2bePjEtxix3wMXl4ow1cJxuEGT8UCcoxp0OEFOupeMqLcrxPWOEtBy96jyihVpOHlu0G9F9pyBJL5umUvS110v4BFB/Px400= Received: by 10.54.2.7 with SMTP id 7mr1331079wrb; Mon, 19 Sep 2005 13:30:39 -0700 (PDT) Received: by 10.54.80.20 with HTTP; Mon, 19 Sep 2005 13:30:39 -0700 (PDT) Message-ID: <4cf221cc050919133065a611b7@mail.gmail.com> Date: Mon, 19 Sep 2005 22:30:39 +0200 From: Erik Winge To: freebsd-current@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: lor in in.c and if_ural.c X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: erik.winge@gmail.com List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Sep 2005 20:30:40 -0000 Hi, I got this lock order reversal on 7.0-CURRENT today: lock order reversal: (Giant after non-sleepable) 1st 0xc06aaea0 in_multi_mtx (in_multi_mtx) @ /usr/src/sys/netinet/in.c:964 2nd 0xc065dee0 Giant (Giant) @ /usr/src/sys/dev/usb/if_ural.c:1401 KDB: stack backtrace: witness_checkorder(c065dee0,9,c0605e2e,579,7d1) at witness_checkorder+0x66d _mtx_lock_flags(c065dee0,0,c0605e2e,579,0) at _mtx_lock_flags+0x54 ural_ioctl(c165e000,80206931,0,7d1,c) at ural_ioctl+0x48 if_addmulti(c165e000,d61deb04,d61deb00,3c4,c1680aa0) at if_addmulti+0x177 in_addmulti(d61deb48,c165e000,1,c0611a7a,c1878bc8) at in_addmulti+0x66 in_ifinit(c18765d0,0,0,0,d61deb98) at in_ifinit+0x5cd in_control(c17ed6f4,8040691a,c18765c0,c165e000,c1873000) at in_control+0xf4= b ifioctl(c17ed6f4,8040691a,c18765c0,c1873000,2) at ifioctl+0x12d soo_ioctl(c1789678,8040691a,c18765c0,c154dc80,c1873000) at soo_ioctl+0x2cb ioctl(c1873000,d61ded04,c,424,3) at ioctl+0x118 syscall(3b,3b,3b,8057f60,0) at syscall+0x134 Xint0x80_syscall() at Xint0x80_syscall+0x1f --- syscall (54, FreeBSD ELF32, ioctl), eip =3D 0x281434a7, esp =3D 0xbfbfe5bc, ebp =3D 0xbfbfee28 --- Looks related to http://sources.zabbadoz.net/freebsd/lor.html#157, but with a different driver? Regards, Erik Winge