From owner-svn-src-head@FreeBSD.ORG Thu Jul 11 05:15:31 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 590A1DA; Thu, 11 Jul 2013 05:15:31 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 4CA3E10B0; Thu, 11 Jul 2013 05:15:31 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r6B5FVG9033847; Thu, 11 Jul 2013 05:15:31 GMT (envelope-from kib@svn.freebsd.org) Received: (from kib@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r6B5FVlX033846; Thu, 11 Jul 2013 05:15:31 GMT (envelope-from kib@svn.freebsd.org) Message-Id: <201307110515.r6B5FVlX033846@svn.freebsd.org> From: Konstantin Belousov Date: Thu, 11 Jul 2013 05:15:31 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r253186 - head/sys/i386/i386 X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Jul 2013 05:15:31 -0000 Author: kib Date: Thu Jul 11 05:15:30 2013 New Revision: 253186 URL: http://svnweb.freebsd.org/changeset/base/253186 Log: Explicitely panic instead of possibly doing undefined things when ptelist KVA is exhausted. Currently this cannot happen, the added panic serves as assert. Discussed with: alc Sponsored by: The FreeBSD Foundation Modified: head/sys/i386/i386/pmap.c Modified: head/sys/i386/i386/pmap.c ============================================================================== --- head/sys/i386/i386/pmap.c Thu Jul 11 05:10:36 2013 (r253185) +++ head/sys/i386/i386/pmap.c Thu Jul 11 05:15:30 2013 (r253186) @@ -680,7 +680,7 @@ pmap_ptelist_alloc(vm_offset_t *head) va = *head; if (va == 0) - return (va); /* Out of memory */ + panic("pmap_ptelist_alloc: exhausted ptelist KVA"); pte = vtopte(va); *head = *pte; if (*head & PG_V)