socsvn commit: r271376 - soc2014/op/freebsd-base/sys/kern

op at FreeBSD.org op at FreeBSD.org
Fri Jul 25 15:40:50 UTC 2014


Author: op
Date: Fri Jul 25 15:40:49 2014
New Revision: 271376
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=271376

Log:
  KSP: convert KASSERT to panic
  
  Signed-off-by: Oliver Pinter <oliver.pntr at gmail.com>
  
  git: https://github.com/opntr/opBSD/tree/op/gsoc2014/smap+kpatch

Modified:
  soc2014/op/freebsd-base/sys/kern/kern_selfpatch.c

Modified: soc2014/op/freebsd-base/sys/kern/kern_selfpatch.c
==============================================================================
--- soc2014/op/freebsd-base/sys/kern/kern_selfpatch.c	Fri Jul 25 15:35:51 2014	(r271375)
+++ soc2014/op/freebsd-base/sys/kern/kern_selfpatch.c	Fri Jul 25 15:40:49 2014	(r271376)
@@ -175,8 +175,8 @@
 		return;
 	}
 
-	KASSERT(p->patch_size == p->patchable_size,
-	    ("%s: patch_size != patchable_size", __func__));
+	if (p->patch_size != p->patchable_size)
+		panic("%s: patch_size != patchable_size", __func__);
 
 	page_offset = (vm_offset_t)p->patchable & (vm_offset_t)PAGE_MASK;
 	page_number = (p->patchable_size >> PAGE_SHIFT) +


More information about the svn-soc-all mailing list