svn commit: r325889 - user/pho/stress2/misc

Peter Holm pho at FreeBSD.org
Thu Nov 16 10:47:22 UTC 2017


Author: pho
Date: Thu Nov 16 10:47:21 2017
New Revision: 325889
URL: https://svnweb.freebsd.org/changeset/base/325889

Log:
  Fix misunderstandings.
  
  Sponsored by:	Dell EMC Isilon

Modified:
  user/pho/stress2/misc/stack_guard_page.sh

Modified: user/pho/stress2/misc/stack_guard_page.sh
==============================================================================
--- user/pho/stress2/misc/stack_guard_page.sh	Thu Nov 16 10:15:17 2017	(r325888)
+++ user/pho/stress2/misc/stack_guard_page.sh	Thu Nov 16 10:47:21 2017	(r325889)
@@ -28,9 +28,8 @@
 # $FreeBSD$
 #
 
-# Setting a negative guard page size will cause "Abort trap"
-# Reported by Shawn Webb <shawn.webb at hardenedbsd.org>
-# Fixed in r320560.
+# Test with stack_guard_page set between 1 and 512.
+# A negative value is considered invalid.
 
 [ `sysctl -n security.bsd.stack_guard_page` -eq 0 ] && exit 0
 
@@ -41,7 +40,7 @@ trap "sysctl security.bsd.stack_guard_page=$old" EXIT 
 
 start=`date +%s`
 while [ $((`date +%s` - start)) -lt 60 ]; do
-	sysctl security.bsd.stack_guard_page=`jot -r 1 -1 512` > \
+	sysctl security.bsd.stack_guard_page=`jot -r 1 1 512` > \
 	    /dev/null 2>&1
 	sleep 1
 done


More information about the svn-src-user mailing list