From owner-svn-src-all@FreeBSD.ORG Sat Oct 30 23:49:37 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 75DE9106564A; Sat, 30 Oct 2010 23:49:37 +0000 (UTC) (envelope-from alc@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 644908FC08; Sat, 30 Oct 2010 23:49:37 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o9UNnb4u031858; Sat, 30 Oct 2010 23:49:37 GMT (envelope-from alc@svn.freebsd.org) Received: (from alc@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o9UNnbJ8031856; Sat, 30 Oct 2010 23:49:37 GMT (envelope-from alc@svn.freebsd.org) Message-Id: <201010302349.o9UNnbJ8031856@svn.freebsd.org> From: Alan Cox Date: Sat, 30 Oct 2010 23:49:37 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r214576 - head/sys/amd64/amd64 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Oct 2010 23:49:37 -0000 Author: alc Date: Sat Oct 30 23:49:37 2010 New Revision: 214576 URL: http://svn.freebsd.org/changeset/base/214576 Log: Add another safety belt to pmap_demote_DMAP(). Modified: head/sys/amd64/amd64/pmap.c Modified: head/sys/amd64/amd64/pmap.c ============================================================================== --- head/sys/amd64/amd64/pmap.c Sat Oct 30 23:09:56 2010 (r214575) +++ head/sys/amd64/amd64/pmap.c Sat Oct 30 23:49:37 2010 (r214576) @@ -4973,7 +4973,7 @@ pmap_demote_DMAP(vm_paddr_t base, vm_siz KASSERT(powerof2(len), ("pmap_demote_DMAP: len is not a power of 2")); KASSERT((base & (len - 1)) == 0, ("pmap_demote_DMAP: base is not a multiple of len")); - if (len < NBPDP) { + if (len < NBPDP && base < dmaplimit) { va = PHYS_TO_DMAP(base); changed = FALSE; PMAP_LOCK(kernel_pmap);