From owner-freebsd-current@FreeBSD.ORG Sun Apr 5 15:47:32 2015 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 36815975; Sun, 5 Apr 2015 15:47:32 +0000 (UTC) Received: from cell.glebius.int.ru (glebius.int.ru [81.19.69.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "cell.glebius.int.ru", Issuer "cell.glebius.int.ru" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id B3CA3A99; Sun, 5 Apr 2015 15:47:30 +0000 (UTC) Received: from cell.glebius.int.ru (localhost [127.0.0.1]) by cell.glebius.int.ru (8.14.9/8.14.9) with ESMTP id t35FlLwb085534 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sun, 5 Apr 2015 18:47:21 +0300 (MSK) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.glebius.int.ru (8.14.9/8.14.9/Submit) id t35FlLFU085533; Sun, 5 Apr 2015 18:47:21 +0300 (MSK) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.glebius.int.ru: glebius set sender to glebius@FreeBSD.org using -f Date: Sun, 5 Apr 2015 18:47:21 +0300 From: Gleb Smirnoff To: David Wolfskill , current@freebsd.org Subject: Re: panic: Lock vm object not exclusively locked @ /usr/src/sys/vm/vm_page.c:2637 Message-ID: <20150405154721.GO64665@FreeBSD.org> References: <20150405133758.GA40261@albert.catwhisker.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150405133758.GA40261@albert.catwhisker.org> User-Agent: Mutt/1.5.23 (2014-03-12) Cc: alc@FreeBSD.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 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: Sun, 05 Apr 2015 15:47:32 -0000 On Sun, Apr 05, 2015 at 06:37:58AM -0700, David Wolfskill wrote: D> It ocurred rather late in the transition to multi-user mode, but D> prior to starting xdm (on my laptop). D> D> Previous (working) head/i386 for this machine was r281074. D> D> Here's the first bit of the crashinfo (yes, I have a crash dump): D> D> g1-254.catwhisker.org dumped core - see /var/crash/vmcore.3 D> D> Sun Apr 5 06:18:44 PDT 2015 D> D> FreeBSD g1-254.catwhisker.org 11.0-CURRENT FreeBSD 11.0-CURRENT #1561 r281106M/281106:1100067: Sun Apr 5 06:01:06 PDT 2015 root@g1-254.catwhisker.org:/common/S4/obj/usr/src/sys/CANARY i386 D> D> panic: Lock vm object not exclusively locked @ /usr/src/sys/vm/vm_page.c:2637 This is r281079. Since vm_page_advise() may call vm_page_dirty() in the MADV_DONTNEED case, the assertion is valid. So, looks like vm_fault_dontneed() needs W-lock on the first_object. -- Totus tuus, Glebius.