From owner-freebsd-stable@FreeBSD.ORG Tue Dec 17 13:15:10 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 74070309; Tue, 17 Dec 2013 13:15:10 +0000 (UTC) Received: from mrout1.yahoo.com (mrout1.yahoo.com [216.145.54.171]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 3C425111B; Tue, 17 Dec 2013 13:15:09 +0000 (UTC) Received: from [127.0.0.1] (proxy7.corp.yahoo.com [216.145.48.98]) by mrout1.yahoo.com (8.14.4/8.14.4/y.out) with ESMTP id rBHD4Wic049988; Tue, 17 Dec 2013 05:04:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yahoo-inc.com; s=cobra; t=1387285473; bh=W2oYgV3ZF5VvqIixV/pg5jkcoScOtkWF0ttO/zrbYs4=; h=Subject:From:To:Cc:In-Reply-To:References:Content-Type:Date: Message-ID:Mime-Version:Content-Transfer-Encoding; b=RzsOElokn1aXTdJM4opFUG1Ngsna858wWuhgZr7H55GIcq1HGHaYwrUj1ZOXfxqWL 9OjAlDKt0qO7d7e2ZdcF/X+yOBwmT9aptUKqn7IWS3zI/v4vuYwq1Erckd/d0455Qh j7mLs0qFIgwmdyEFylCdP747RaE8Iai/1Y0LX4vU= Subject: Re: 10.0 BETA 3 with redports kernel panic From: Sean Bruno To: Konstantin Belousov In-Reply-To: <20131217120019.GD59496@kib.kiev.ua> References: <1384029731.1819.7.camel@powernoodle.corp.yahoo.com> <20131109205030.GF59496@kib.kiev.ua> <1387217065.1407.3.camel@powernoodle.corp.yahoo.com> <1387219558.1407.6.camel@powernoodle.corp.yahoo.com> <20131217120019.GD59496@kib.kiev.ua> Content-Type: text/plain; charset="us-ascii" Date: Tue, 17 Dec 2013 05:04:32 -0800 Message-ID: <1387285472.2372.2.camel@powernoodle.corp.yahoo.com> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit X-Milter-Version: master.31+4-gbc07cd5+ X-CLX-ID: 285472002 Cc: "freebsd-stable@freebsd.org" X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Dec 2013 13:15:10 -0000 On Tue, 2013-12-17 at 14:00 +0200, Konstantin Belousov wrote: > On Mon, Dec 16, 2013 at 10:45:58AM -0800, Sean Bruno wrote: > > On Mon, 2013-12-16 at 10:04 -0800, Sean Bruno wrote: > > > > What is the source line for memrw+0x195 ? > > > > > > My apologies for the delay on this. Its been frustrating getting a > > > crashdump on these machines due to their very large tmpfs usage. > > > Currently, I am dumping a crash of 13+GB to a third HD that we had > > > installed for this purpose. > > > > > > The machines are still running RC3 of 10.0r. > > > > > > I will attempt to get the requested information shortly. > > > > > > sean > > > > > > > > > > I've updated http://people.freebsd.org/~sbruno/redbuild_panic.txt > > > > It looks like its dying in uiomove() ? > > I believe I already posted the following patch, with no feedback. > > diff --git a/sys/amd64/amd64/mem.c b/sys/amd64/amd64/mem.c > index abbbb21..e371499 100644 > --- a/sys/amd64/amd64/mem.c > +++ b/sys/amd64/amd64/mem.c > @@ -98,7 +98,11 @@ memrw(struct cdev *dev, struct uio *uio, int flags) > kmemphys: > o = v & PAGE_MASK; > c = min(uio->uio_resid, (u_int)(PAGE_SIZE - o)); > - error = uiomove((void *)PHYS_TO_DMAP(v), (int)c, uio); > + v = PHYS_TO_DMAP(v); > + if (v < DMAP_MIN_ADDRESS || v >= DMAP_MAX_ADDRESS || > + pmap_kextract(v) == 0) > + return (EFAULT); > + error = uiomove((void *)v, (int)c, uio); > continue; > } > else if (dev2unit(dev) == CDEV_MINOR_KMEM) { Will begin testing immediately sean