From owner-freebsd-stable@FreeBSD.ORG Sun Sep 6 11:35:51 2009 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6A35C1065670 for ; Sun, 6 Sep 2009 11:35:51 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (skuns.zoral.com.ua [91.193.166.194]) by mx1.freebsd.org (Postfix) with ESMTP id DDA908FC12 for ; Sun, 6 Sep 2009 11:35:50 +0000 (UTC) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id n86B2c6I070131 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 6 Sep 2009 14:02:38 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3) with ESMTP id n86B2cao006750; Sun, 6 Sep 2009 14:02:38 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3/Submit) id n86B2cb9006749; Sun, 6 Sep 2009 14:02:38 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Sun, 6 Sep 2009 14:02:38 +0300 From: Kostik Belousov To: Thierry Herbelot Message-ID: <20090906110238.GH47688@deviant.kiev.zoral.com.ua> References: <200909061102.40450.thierry.herbelot@free.fr> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ewQ5hdP4CtoTt3oD" Content-Disposition: inline In-Reply-To: <200909061102.40450.thierry.herbelot@free.fr> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: stable@freebsd.org, jhb@freebsd.org Subject: Re: Panic in recent 7.2-Stable 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: Sun, 06 Sep 2009 11:35:51 -0000 --ewQ5hdP4CtoTt3oD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Sep 06, 2009 at 11:02:39AM +0200, Thierry Herbelot wrote: > Hello, >=20 > I'm having a panic with the latest kernel build of my -Stable file server= =20 > (sources cvsupped around yesterday evening, CEST). The panic happens soon= =20 > after entering multi-user : >=20 > panic: vm_phys_paddr_to_vm_page: paddr 0xf0000 is not in any segment > KDB: enter: panic > [thread pid 1005 tid 100154 ] > Stopped at kdb_enter_why+0x3a: movl $0,kdb_why > db> where > Tracing pid 1005 tid 100154 td 0x8ecad480 > kdb_enter_why(80ba731f,80ba731f,80bc1ad6,fb301a94,fb301a94,...) at=20 > kdb_enter_why+0x3a > panic(80bc1ad6,f0000,0,8ecad480,0,...) at panic+0xd1 > vm_phys_paddr_to_vm_page(f0000,f0000,fb301ad8,1,80a36a78,...) at=20 > vm_phys_paddr_to_vm_page+0x4d > dev_pager_getpages(92b8d980,fb301c04,1,0,fb301bcc,...) at=20 > dev_pager_getpages+0xe1 > vm_fault(89267bfc,33d90000,1,0,89b0b50c,...) at vm_fault+0x1020 > trap_pfault(202,7,8583b900,80cd9800,89b0eb00,...) at trap_pfault+0x15b > trap(fb301d38) at trap+0x247 >=20 > An excerpt of the dmesg is : >=20 > Copyright (c) 1992-2009 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > The Regents of the University of California. All rights reserved. > FreeBSD is a registered trademark of The FreeBSD Foundation. > FreeBSD 7.2-STABLE #35: Sun Sep 6 10:04:40 CEST 2009 > XXX@YYY:/usr/obj/usr/src/sys/GENERIC > Preloaded elf kernel "/boot/kernel/kernel" at 0x8101a000. > Preloaded elf module "/boot/kernel/zfs.ko" at 0x8101a188. > Preloaded elf module "/boot/kernel/opensolaris.ko" at 0x8101a230. > Preloaded elf module "/boot/kernel/snd_cmi.ko" at 0x8101a2e0. > Preloaded elf module "/boot/kernel/sound.ko" at 0x8101a38c. > Preloaded /boot/zfs/zpool.cache "/boot/zfs/zpool.cache" at 0x8101a438. > Preloaded elf module "/boot/kernel/acpi.ko" at 0x8101a490. >=20 > The previous kernel is older (around 22 august) and works as expected. >=20 > Some idents for the panic kernel are : (ie after SVN rev 196838) > $FreeBSD: src/sys/i386/i386/pmap.c,v 1.594.2.20 2009/09/04 19:59:32 jhb E= xp $ > $FreeBSD: src/sys/kern/kern_mbuf.c,v 1.32.2.6 2009/09/04 19:59:32 jhb Exp= $ > $FreeBSD: src/sys/vm/device_pager.c,v 1.84.2.3 2009/09/04 19:59:32 jhb Ex= p $ > $FreeBSD: src/sys/vm/vm_object.c,v 1.385.2.7 2009/09/04 19:59:32 jhb Exp $ > $FreeBSD: src/sys/vm/vm_page.c,v 1.357.2.10 2009/09/04 19:59:32 jhb Exp $ > $FreeBSD: src/sys/vm/vm_phys.c,v 1.4.2.2 2009/09/04 19:59:32 jhb Exp $ I expect that the following patch, that is the partial merge of r194459, would fix it. It patches sys/vm/vm_phys.c. Index: vm_phys.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- vm_phys.c (revision 194458) +++ vm_phys.c (revision 194459) @@ -382,8 +382,7 @@ if (pa >=3D seg->start && pa < seg->end) return (&seg->first_page[atop(pa - seg->start)]); } - panic("vm_phys_paddr_to_vm_page: paddr %#jx is not in any segment", - (uintmax_t)pa); + return (NULL); } =20 /* --ewQ5hdP4CtoTt3oD Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (FreeBSD) iEYEARECAAYFAkqjlssACgkQC3+MBN1Mb4hczACg09EEqUwHW42cTveQh1y+RxFH +egAn0UvVDUL5aD0pjooYN1JKPMwG0G/ =hcK2 -----END PGP SIGNATURE----- --ewQ5hdP4CtoTt3oD--