From owner-freebsd-current@FreeBSD.ORG Sun Apr 5 17:47:05 2015 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1DBB55AD; Sun, 5 Apr 2015 17:47:05 +0000 (UTC) Received: from albert.catwhisker.org (mx.catwhisker.org [198.144.209.73]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D015F7DE; Sun, 5 Apr 2015 17:47:04 +0000 (UTC) Received: from albert.catwhisker.org (localhost [127.0.0.1]) by albert.catwhisker.org (8.14.9/8.14.9) with ESMTP id t35Hl3gA003489; Sun, 5 Apr 2015 10:47:03 -0700 (PDT) (envelope-from david@albert.catwhisker.org) Received: (from david@localhost) by albert.catwhisker.org (8.14.9/8.14.9/Submit) id t35Hl3iY003488; Sun, 5 Apr 2015 10:47:03 -0700 (PDT) (envelope-from david) Date: Sun, 5 Apr 2015 10:47:03 -0700 From: David Wolfskill To: Konstantin Belousov Subject: Re: panic: Lock vm object not exclusively locked @ /usr/src/sys/vm/vm_page.c:2637 Message-ID: <20150405174703.GD1197@albert.catwhisker.org> Mail-Followup-To: David Wolfskill , Konstantin Belousov , Gleb Smirnoff , current@freebsd.org, alc@FreeBSD.org References: <20150405133758.GA40261@albert.catwhisker.org> <20150405154721.GO64665@FreeBSD.org> <20150405173723.GR2379@kib.kiev.ua> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="6Nae48J/T25AfBN4" Content-Disposition: inline In-Reply-To: <20150405173723.GR2379@kib.kiev.ua> User-Agent: Mutt/1.5.23 (2014-03-12) Cc: alc@FreeBSD.org, Gleb Smirnoff , current@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 17:47:05 -0000 --6Nae48J/T25AfBN4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Apr 05, 2015 at 08:37:23PM +0300, Konstantin Belousov wrote: > On Sun, Apr 05, 2015 at 06:47:21PM +0300, Gleb Smirnoff wrote: > > This is r281079. > >=20 > > Since vm_page_advise() may call vm_page_dirty() in the MADV_DONTNEED ca= se, > > the assertion is valid. So, looks like vm_fault_dontneed() needs W-lock= on > > the first_object. > >=20 > Either this, or vm_page_advise() could be changed to do nothing in the > case of MADV_DONTNEED operation and a need to call vm_page_dirty(), if > the object is only read-locked. I have since managed to build & (successfully) boot: s3:FreeBSD g1-254.catwhisker.org 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r281= 106M/281106:1100067: Sun Apr 5 09:57:39 PDT 2015 root@g1-254.catwhiske= r.org:/common/S3/obj/usr/src/sys/CANARY amd64 So I'm about to try re-building the i386 head (and be sure that it's quite "clean" in the process). (I had seen the panic for i386 twice out of two attempts, so I'm reasonably certain it wasn't a fluke. But it could be something "weird" in my head/i386 environment, as that is the only one where I've had a problem with today's builds & smoke-tests. I'm using both i386 & amd64, and both stable/10 and head -- 4 combinations; one for each of 4 slices on the same hardware.) Peace, david --=20 David H. Wolfskill david@catwhisker.org Those who murder in the name of God or prophet are blasphemous cowards. See http://www.catwhisker.org/~david/publickey.gpg for my public key. --6Nae48J/T25AfBN4 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQJ8BAEBCgBmBQJVIXUWXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ4RThEMDY4QTIxMjc1MDZFRDIzODYzRTc4 QTY3RjlDOERFRjQxOTNCAAoJEIpn+cje9Bk7ZIUP/j5LmM1NE+juL24GrxccDcAy lwgwgTm2eAbOGy6w43UyasKfRktmP9AvJmb4S7a147VArRkGSfLcIdnGy6y10BW0 +HR+bb0Q5mH09CIpz07WeFals3RbbcGd+kwXs3GDkRRKHil6soxfNd5oxtxgJwW8 nw3+iZ5MUWCNvjpQ/RTLpu6GxlKS+SygBRqzMNRLv5W22slQ4cJABP3Hpc52gX2m 6rKNsgK3qpAm7/53SDsBJZI+Of6zwCtK73d8A9a4vUI+cUezEc+63kERUjbbCZ/n PiETn/Kzi1gbA8Cw8lUswdk+TiB6JeJb+nEx3GBNxekIso+hMyeekxXODrw3pKdL LVMa0OPQ9mUEBgSxvaXA6gWNzQYAEnzDzMqJ2Pmt87yWuAUKA3xk8MCAxIPBmMXv f4dId1EV/QPDKg0/Mm6pGDO+GlBFFFfXxXQNtqcOQX1tV4qOTq0itCqs1mnpSSoF bjH9TPIhpf6YrsdNtwBm76hdd1d2tUp0YQF1YjKeoChoJLRNXWbN3NREXCIupxcQ C9B2moyYYdjtXVXs9elD0CR3WGkipalF0RrjfFSkuA+Nt/Y2WBsCzhddIHCARkEL Rq2L85V+fEeIOhYeIWIDt2VbwWH8RHc5xFJDr3NDFoFhXsHykE5VXmf2wcjX9PlA Wj9CiAhBSt8Z1UePjyqK =iPQU -----END PGP SIGNATURE----- --6Nae48J/T25AfBN4--