From owner-svn-src-user@freebsd.org Thu Nov 16 10:47:22 2017 Return-Path: Delivered-To: svn-src-user@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 85C43DD8E09 for ; Thu, 16 Nov 2017 10:47:22 +0000 (UTC) (envelope-from pho@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 50A9975B3C; Thu, 16 Nov 2017 10:47:22 +0000 (UTC) (envelope-from pho@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAGAlLDH012855; Thu, 16 Nov 2017 10:47:21 GMT (envelope-from pho@FreeBSD.org) Received: (from pho@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAGAlL5H012854; Thu, 16 Nov 2017 10:47:21 GMT (envelope-from pho@FreeBSD.org) Message-Id: <201711161047.vAGAlL5H012854@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pho set sender to pho@FreeBSD.org using -f From: Peter Holm Date: Thu, 16 Nov 2017 10:47:21 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r325889 - user/pho/stress2/misc X-SVN-Group: user X-SVN-Commit-Author: pho X-SVN-Commit-Paths: user/pho/stress2/misc X-SVN-Commit-Revision: 325889 X-SVN-Commit-Repository: base 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.25 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: Thu, 16 Nov 2017 10:47:22 -0000 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 -# 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