Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 May 2013 02:15:11 +0000 (UTC)
From:      Attilio Rao <attilio@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r250548 - user/attilio/jeff-numa/sys/vm
Message-ID:  <201305120215.r4C2FBME079299@svn.freebsd.org>

index | next in thread | raw e-mail

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;


help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201305120215.r4C2FBME079299>