From owner-freebsd-stable@FreeBSD.ORG Wed Jan 13 07:30:11 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EA38C1065670 for ; Wed, 13 Jan 2010 07:30:10 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from mail-bw0-f213.google.com (mail-bw0-f213.google.com [209.85.218.213]) by mx1.freebsd.org (Postfix) with ESMTP id 7CF728FC14 for ; Wed, 13 Jan 2010 07:30:10 +0000 (UTC) Received: by bwz5 with SMTP id 5so15202391bwz.3 for ; Tue, 12 Jan 2010 23:30:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=gIVCAa5DNfJFIan77w35en1HrOJJpbtnkxTJGh+0ks8=; b=o+Abme6V/1j9j9wGXs86l9ruh1DhGkgBUu4Kbtj1OAB+J/SyP0U39FRNbxuo3UeQLj JDhAISB9VWvRZMJ8BUJKwnCWIG9OGN+9sx9odPNJy7BhamTrwGKEmHwSxiS6VvoQIkFl hLXoSdWbktCtjd26NP9mjJv8plOxlI6waHzEw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=vDdxtjhr5vc4eRC0D/JONcrSzPLurz5+J1UunLBku9lpOlHqCES6bH9oIzClpaHKq1 LHuDYa4XZWfJvUZL/O19c/Ss3csSWygoBgSWODnDIqV73Zw2syBqaAXzTbfcbwvN4bzJ 0ToV09UNcKIGeYiVUHt7cCnAIbbELg4Dj6fLA= MIME-Version: 1.0 Received: by 10.204.15.15 with SMTP id i15mr2773907bka.191.1263367804411; Tue, 12 Jan 2010 23:30:04 -0800 (PST) In-Reply-To: <4B4CEE78.4080708@rogers.com> References: <4B4CEE78.4080708@rogers.com> Date: Wed, 13 Jan 2010 10:30:04 +0300 Message-ID: From: pluknet To: Gardner Bell Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-stable@freebsd.org Subject: Re: LOR - 8.0-STABLE r202128 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jan 2010 07:30:11 -0000 2010/1/13 Gardner Bell : > I got this lock order reversal while running a windows executable through > wine. I'm guess that is a regression w.r.t S/G pager, which uses kmem_alloc/free with vm_object locked and doesn't respect vm_map locks can sleep. I'm curious it was back order before 5.1-R. vm_object.c 741: /* 742: * Let the pager know object is dead. 743: */ 744: vm_pager_deallocate(object); 745: VM_OBJECT_UNLOCK(object); > > lock order reversal: > =A01st 0xc5e757f8 vm object (standard object) @ > /usr/src/sys/vm/vm_object.c:482 > =A02nd 0xc1c900e8 system map (system map) @ /usr/src/sys/vm/vm_map.c:2772 > KDB: stack backtrace: > db_trace_self_wrapper(c07632b0,e955d8a4,c05c7496,c05bbe7f,c076508c,...) a= t > db_trace_self_wrapper+0x26 > kdb_backtrace(c05bbe7f,c076508c,c0923520,c48dd278,e955d8fc,...) at > kdb_backtrace+0x29 > _witness_debugger(c076508c,c1c900e8,c0765236,c48d9110,c077536f,...) at > _witness_debugger+0x1e > witness_checkorder(c1c900e8,9,c077536f,ad4,0,...) at > witness_checkorder+0x697 > _mtx_lock_flags(c1c900e8,0,c077536f,ad4,c6089000,...) at > _mtx_lock_flags+0x36 > _vm_map_lock(c1c9008c,c077536f,ad4,c66437c4,c5e757f8,...) at > _vm_map_lock+0x31 > vm_map_remove(c1c9008c,c6087000,c6089000,e955d988,c06c0417,...) at > vm_map_remove+0x2a > kmem_free(c1c9008c,c6087000,2000,e955d9a0,c06c1000,...) at kmem_free+0x30 > page_free(c6087000,2000,22,2000,e955d9b8,...) at page_free+0x46 > uma_large_free(c66437c4,c4ec09a4,c1c8c014,c5e757f8,e955d9c8,...) at > uma_large_free+0x87 > free(c6087000,c07aae1c,e955d9e0,c06bb552,c6087000,...) at free+0xb8 > sglist_free(c6087000,c598d7e0,0) at sglist_free+0x28 > sg_pager_dealloc(c5e757f8,e955da14,c06d1587,c5e757f8,0,...) at > sg_pager_dealloc+0x69 > vm_pager_deallocate(c5e757f8,0,c0775baa,2dc,0,...) at > vm_pager_deallocate+0x1a > vm_object_terminate(c5e757f8,0,c0775baa,1e2,e955da40,...) at > vm_object_terminate+0x171 > vm_object_deallocate(c5e757f8,c077536f,ad7,c5548b40,0,...) at > vm_object_deallocate+0x4ae > _vm_map_unlock(c513d740,c077536f,ad7,1,c513d740,...) at _vm_map_unlock+0x= 74 > vm_map_remove(c513d740,0,bfc00000,0,c54e1550,...) at vm_map_remove+0x69 > vmspace_exit(c4ec0900,0,c075d9eb,12d,c07a6e7c,...) at vmspace_exit+0xbc > exit1(c4ec0900,f,c0761073,b15,1,...) at exit1+0x4f3 > sigexit(c4ec0900,f,c0761073,aa5,e955dcdc,...) at sigexit+0x9f2 > postsig(f,64,c07644d3,e8,c54e1550,...) at postsig+0x1b6 > ast(e955dd38) at ast+0x308 > doreti_ast() at doreti_ast+0x17 > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > --=20 wbr, pluknet