svn commit: r250548 - user/attilio/jeff-numa/sys/vm

Attilio Rao attilio at FreeBSD.org
Sun May 12 02:15:11 UTC 2013


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;


More information about the svn-src-user mailing list