From owner-freebsd-current@FreeBSD.ORG Tue Mar 18 19:11:14 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 42E2D106564A for ; Tue, 18 Mar 2008 19:11:14 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.170]) by mx1.freebsd.org (Postfix) with ESMTP id D7E6F8FC13 for ; Tue, 18 Mar 2008 19:11:13 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: by ug-out-1314.google.com with SMTP id y2so1101261uge.37 for ; Tue, 18 Mar 2008 12:11:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=4pRhIAJNmNPgISkcOMC1TIi6p4RnbzN4fDk31LKotCg=; b=m+wkFrKG24YsTP46PpcJzQmKhYEAaQ/L/GAeUSTz+2d/+PmxPszkQ1uVJ7UgN2yEj5wPXeAW6gOIbmpG5yWXciqdZImi2GRazKv/GhIzcyrnjb3cuQB0svB8cX2Eppuamdm2qXHGP6+dl83Gl0RJtP8zDw+KqEByaRWNQozWqxQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=aPbna2EQZkXinF7wjZvmKk2gbf8aoCt8b+Kqy21u1NVE2H7xMNcKZbDhfrWk8n6Y+Cd/3cVZeOq4/0NRfgRtulTSP6fw9Ay/a4QaOBNpJaWGegBvTrV/quJoKcld/wUS3Uy2hdw/ualLF5FH4k2wGf0dp9wNwiwL19/5gs78+F8= Received: by 10.78.155.4 with SMTP id c4mr2965236hue.73.1205867469599; Tue, 18 Mar 2008 12:11:09 -0700 (PDT) Received: by 10.78.16.10 with HTTP; Tue, 18 Mar 2008 12:11:09 -0700 (PDT) Message-ID: Date: Tue, 18 Mar 2008 22:11:09 +0300 From: pluknet To: "Attilio Rao" In-Reply-To: <3bbf2fe10803181145m79e89955re785e1b5048cafd7@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <3bbf2fe10803181145m79e89955re785e1b5048cafd7@mail.gmail.com> Cc: freebsd-current@freebsd.org, Alex Goncharov Subject: Re: Seeing lock order reversal X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Mar 2008 19:11:14 -0000 On 18/03/2008, Attilio Rao wrote: > 2008/3/18, pluknet : > > > > Thought taking that into account I could obtain a new one yesterday. I > > didn't see this before. > > > > Mar 17 03:17:14 pl sudo: pluknet : TTY=ttyv1 ; PWD=/usr/home/pluknet > > ; USER=root ; COMMAND=/usr/libexec/getty 3wire.9600 ttyd0 > > Mar 17 03:17:14 pl kernel: lock order reversal: > > Mar 17 03:17:14 pl kernel: 1st 0xc07e9274 proctree (proctree) @ > > /usr/src/sys/kern/kern_exit.c:291 > > Mar 17 03:17:14 pl kernel: 2nd 0xc2fc49e8 devfs (devfs) @ > > /usr/src/sys/kern/vfs_subr.c:2158 > > > This one seems interesting. > Next time you experience it can you please drop in DDB and print-out > the correct order revealed by WITNESS? > Fortunately I could reproduce it. lock order reversal: 1st 0xc07e9274 proctree (proctree) @ /usr/src/sys/kern/kern_exit.c:291 2nd 0xc3c18278 devfs (devfs) @ /usr/src/sys/kern/vfs_subr.c:2158 KDB: stack backtrace: db_trace_self_wrapper(c07682d0,d6078b24,c0573236,c076a615,c3c18278,...) at db_trace_self_wrapper+0x26 kdb_backtrace(c076a615,c3c18278,c075bcfb,c075bcfb,c0770a8c,...) at kdb_backtrace+0x29 witness_checkorder(c3c18278,9,c0770a8c,86e,c07edcd4,...) at witness_checkorder+0x6d6 _lockmgr_args(c3c18278,20002,c3c182a8,0,ffffffff,...) at _lockmgr_args+0x519 vop_stdlock(d6078bc4,d6078bbc,c0572a1c,20002,c3c182a8,...) at vop_stdlock+0x51 VOP_LOCK1_APV(c07a07e0,d6078bc4,851,d6078be4,c3c182a8,...) at VOP_LOCK1_APV+0xa5 _vn_lock(c3c18220,20002,c0770a8c,86e,4,...) at _vn_lock+0xf2 vrele(c3c18220,0,c07619a2,14e,ffffffff,...) at vrele+0x142 exit1(c2fdd690,0,d6078d2c,c0729ed3,c2fdd690,...) at exit1+0x8a1 sys_exit(c2fdd690,d6078cfc,4,c07625a5,c07a3d38,...) at sys_exit+0x1d syscall(d6078d38) at syscall+0x2b3 Xint0x80_syscall() at Xint0x80_syscall+0x20 --- syscall (1, FreeBSD ELF32, sys_exit), eip = 0x2811964f, esp = 0xbfbfeacc, ebp = 0xbfbfead8 --- Something else? wbr, pluknet