From owner-svn-src-user@FreeBSD.ORG Sun May 12 02:15:11 2013 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id A74A4DDC; Sun, 12 May 2013 02:15:11 +0000 (UTC) (envelope-from attilio@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 9AE555FB; Sun, 12 May 2013 02:15:11 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r4C2FBlX079300; Sun, 12 May 2013 02:15:11 GMT (envelope-from attilio@svn.freebsd.org) Received: (from attilio@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r4C2FBME079299; Sun, 12 May 2013 02:15:11 GMT (envelope-from attilio@svn.freebsd.org) Message-Id: <201305120215.r4C2FBME079299@svn.freebsd.org> From: Attilio Rao Date: Sun, 12 May 2013 02:15:11 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r250548 - user/attilio/jeff-numa/sys/vm X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 May 2013 02:15:11 -0000 Author: attilio Date: Sun May 12 02:15:11 2013 New Revision: 250548 URL: http://svnweb.freebsd.org/changeset/base/250548 Log: In the unfortunate event that vm_ndomains and informations contained into mem_affinity are out-of-sync for some bug, panic when a wrong domain is provided. Sponsored by: EMC / Isilon storage division Modified: user/attilio/jeff-numa/sys/vm/vm_phys.c Modified: user/attilio/jeff-numa/sys/vm/vm_phys.c ============================================================================== --- user/attilio/jeff-numa/sys/vm/vm_phys.c Sun May 12 02:11:01 2013 (r250547) +++ user/attilio/jeff-numa/sys/vm/vm_phys.c Sun May 12 02:15:11 2013 (r250548) @@ -250,6 +250,8 @@ _vm_phys_create_seg(vm_paddr_t start, vm #endif KASSERT(vm_phys_nsegs < VM_PHYSSEG_MAX, ("vm_phys_create_seg: increase VM_PHYSSEG_MAX")); + KASSERT(domain < vm_ndomains, + ("vm_phys_create_seg: invalid domain provided")); seg = &vm_phys_segs[vm_phys_nsegs++]; seg->start = start; seg->end = end;