From owner-freebsd-stable@FreeBSD.ORG Thu Jan 9 01:20:04 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 524B0BAE for ; Thu, 9 Jan 2014 01:20:04 +0000 (UTC) Received: from nm27.bullet.mail.ne1.yahoo.com (nm27.bullet.mail.ne1.yahoo.com [98.138.90.90]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 0418C1587 for ; Thu, 9 Jan 2014 01:20:03 +0000 (UTC) Received: from [98.138.226.176] by nm27.bullet.mail.ne1.yahoo.com with NNFMP; 09 Jan 2014 01:13:51 -0000 Received: from [98.138.226.132] by tm11.bullet.mail.ne1.yahoo.com with NNFMP; 09 Jan 2014 01:13:51 -0000 Received: from [127.0.0.1] by smtp219.mail.ne1.yahoo.com with NNFMP; 09 Jan 2014 01:13:51 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1389230031; bh=3vm/7M75lil4+qHjRHYFjheaxjI8jrTxF7yBTUs8PbM=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Subject:From:Reply-To:To:Cc:In-Reply-To:References:Content-Type:Date:Message-ID:Mime-Version:X-Mailer:Content-Transfer-Encoding; b=uIPcY0+kylG21U7/a4cp1o7M6/bQ9ba/eHcLpYiN+qrYwI85OMzuqfMILWJwfkMpFkMMb+h9faSTCgBkZUoUvzljZB/21QvjRN4GdF0SWmN79VSyKHpPd7JrSxKLkELQVOyWwIOjYVM2dnXpNb3JGsdC8TRDOUkL9EEd0PWXDV8= X-Yahoo-Newman-Id: 811534.56266.bm@smtp219.mail.ne1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: KkUilNsVM1nzNPvC8n0_M6eQeSOmZhfNOnKXrFbGxwhhmVv 45LzSHaMaHdVVCno2Rlx.3nBpH_OVu926c468YSUDEMIghmDC.W0q6PeikHu S2EFssCMajJe_.6KAgGiaSec3opR9NjZpWLuGaETI1P_AsxirLUw5WSF.DYf WCERA1th54XM09ONtxdTbjah9CJ0aoZBHqOuIbri6TvLq5BCWnRls47.53BD uwSa.LQq.JmcXTs2gga4IaSKUPRY0UxBFRYzjitf0RhVO39m60qPz0f6etn1 n1FAe1WSeOl_1oNw19y8hRTRS28B2xBjxiKXinDqcljMDne6qJy.LgtKbEnG NhKLgMc0eflwyrYeabgduSNzBpPkAUFGkq_GisEAdlohD5YKzj0L_.B4uoVa K7JSlQNX80IHhuq8IkypiSINLjXUOPP1WKiWI6Ndovt4maS3CMEtpGBhTB2E TST71HzyRJ1HssyMq1yHEvhjMoqvKossGWVUM4egMuqp89InSmv9fOhlV4GS KqXxKpZLdOVaFbC146A1Jvx3qEkL7wTyWawcp8f80Of5BdrlLr_4sXMGIMwI hEA-- X-Yahoo-SMTP: u5BKR6OswBC_iZJVfGRoMkTIpc8pEA4- X-Rocket-Received: from [10.73.160.242] (sean_bruno@209.131.62.116 with plain [98.138.105.21]) by smtp219.mail.ne1.yahoo.com with SMTP; 08 Jan 2014 17:13:51 -0800 PST Subject: Re: 10.0 BETA 3 with redports kernel panic From: Sean Bruno To: Konstantin Belousov In-Reply-To: <20131228140843.GT59496@kib.kiev.ua> References: <1387492541.27693.5.camel@powernoodle.corp.yahoo.com> <20131220094835.GR59496@kib.kiev.ua> <1387554355.1491.4.camel@powernoodle.corp.yahoo.com> <20131220162254.GT59496@kib.kiev.ua> <20131221145534.GY59496@kib.kiev.ua> <1387818681.2431.0.camel@powernoodle.corp.yahoo.com> <1388170732.1530.2.camel@powernoodle.corp.yahoo.com> <20131228140843.GT59496@kib.kiev.ua> Content-Type: text/plain; charset="us-ascii" Date: Wed, 08 Jan 2014 17:13:50 -0800 Message-ID: <1389230030.6589.1.camel@powernoodle.corp.yahoo.com> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: decke , "freebsd-stable@freebsd.org" , Peter Wemm X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: sbruno@freebsd.org List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Jan 2014 01:20:04 -0000 On Sat, 2013-12-28 at 16:08 +0200, Konstantin Belousov wrote: > diff --git a/sys/amd64/amd64/mem.c b/sys/amd64/amd64/mem.c > index abbbb21..fd9c5df 100644 > --- a/sys/amd64/amd64/mem.c > +++ b/sys/amd64/amd64/mem.c > @@ -98,7 +98,13 @@ 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_MIN_ADDRESS + dmaplimit && > + 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) { > diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c > index 014020b..85be1f2 100644 > --- a/sys/amd64/amd64/pmap.c > +++ b/sys/amd64/amd64/pmap.c > @@ -321,7 +321,7 @@ SYSCTL_INT(_machdep, OID_AUTO, nkpt, CTLFLAG_RD, > &nkpt, 0, > "Number of kernel page table pages allocated on bootup"); > > static int ndmpdp; > -static vm_paddr_t dmaplimit; > +vm_paddr_t dmaplimit; > vm_offset_t kernel_vm_end = VM_MIN_KERNEL_ADDRESS; > pt_entry_t pg_nx; > > diff --git a/sys/amd64/include/pmap.h b/sys/amd64/include/pmap.h > index 3918282..e83e07e 100644 > --- a/sys/amd64/include/pmap.h > +++ b/sys/amd64/include/pmap.h > @@ -369,6 +369,7 @@ extern vm_paddr_t phys_avail[]; > extern vm_paddr_t dump_avail[]; > extern vm_offset_t virtual_avail; > extern vm_offset_t virtual_end; > +extern vm_paddr_t dmaplimit; > > #define pmap_page_get_memattr(m) ((vm_memattr_t)(m)->md.pat_mode) > #define pmap_page_is_write_mapped(m) (((m)->aflags & > PGA_WRITEABLE) != 0) I've updated 2/4 redbuild machines to stable/10 and applied this patch. I will monitor them for the rest of the week for stability. sean p.s. redbuild 03/04