From owner-svn-src-user@freebsd.org Thu Sep 6 07:10:50 2018 Return-Path: Delivered-To: svn-src-user@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 32FA5FF1703 for ; Thu, 6 Sep 2018 07:10:50 +0000 (UTC) (envelope-from pho@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DCF5E8A33D; Thu, 6 Sep 2018 07:10:49 +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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D828F13EF; Thu, 6 Sep 2018 07:10:49 +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 w867An1M084355; Thu, 6 Sep 2018 07:10:49 GMT (envelope-from pho@FreeBSD.org) Received: (from pho@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w867Anrm084354; Thu, 6 Sep 2018 07:10:49 GMT (envelope-from pho@FreeBSD.org) Message-Id: <201809060710.w867Anrm084354@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pho set sender to pho@FreeBSD.org using -f From: Peter Holm Date: Thu, 6 Sep 2018 07:10:49 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r338488 - in user/pho/stress2: lib testcases/badcode X-SVN-Group: user X-SVN-Commit-Author: pho X-SVN-Commit-Paths: in user/pho/stress2: lib testcases/badcode X-SVN-Commit-Revision: 338488 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.27 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, 06 Sep 2018 07:10:50 -0000 Author: pho Date: Thu Sep 6 07:10:49 2018 New Revision: 338488 URL: https://svnweb.freebsd.org/changeset/base/338488 Log: arc4random_stir() is not needed. Remove it. Sponsored by: Dell EMC Isilon Modified: user/pho/stress2/lib/main.c user/pho/stress2/testcases/badcode/badcode.c Modified: user/pho/stress2/lib/main.c ============================================================================== --- user/pho/stress2/lib/main.c Thu Sep 6 02:10:59 2018 (r338487) +++ user/pho/stress2/lib/main.c Thu Sep 6 07:10:49 2018 (r338488) @@ -109,7 +109,6 @@ run_tests(int i) signal(SIGHUP, run_test_handler); signal(SIGINT, exit_handler); atexit(callcleanup); - arc4random_stir(); setup(i); if ((strcmp(getprogname(), "run") != 0) && (op->nodelay == 0)) sleep(random_int(1,10)); Modified: user/pho/stress2/testcases/badcode/badcode.c ============================================================================== --- user/pho/stress2/testcases/badcode/badcode.c Thu Sep 6 02:10:59 2018 (r338487) +++ user/pho/stress2/testcases/badcode/badcode.c Thu Sep 6 07:10:49 2018 (r338488) @@ -104,7 +104,6 @@ test(void) rl.rlim_max = rl.rlim_cur = 0; if (setrlimit(RLIMIT_CORE, &rl) == -1) warn("setrlimit"); - arc4random_stir(); st = (void *)trunc_page((unsigned long)tobemangled); if (mprotect(st, PAGE_SIZE, PROT_WRITE | PROT_READ | PROT_EXEC) == -1) err(1, "mprotect()"); From owner-svn-src-user@freebsd.org Sat Sep 8 08:52:55 2018 Return-Path: Delivered-To: svn-src-user@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F0B5DFED5E7 for ; Sat, 8 Sep 2018 08:52:54 +0000 (UTC) (envelope-from pho@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A48F88C5B4; Sat, 8 Sep 2018 08:52:54 +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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 9E54B98D; Sat, 8 Sep 2018 08:52:54 +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 w888qs2g027991; Sat, 8 Sep 2018 08:52:54 GMT (envelope-from pho@FreeBSD.org) Received: (from pho@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w888qqhm027982; Sat, 8 Sep 2018 08:52:52 GMT (envelope-from pho@FreeBSD.org) Message-Id: <201809080852.w888qqhm027982@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pho set sender to pho@FreeBSD.org using -f From: Peter Holm Date: Sat, 8 Sep 2018 08:52:52 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r338532 - 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: 338532 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.27 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: Sat, 08 Sep 2018 08:52:55 -0000 Author: pho Date: Sat Sep 8 08:52:52 2018 New Revision: 338532 URL: https://svnweb.freebsd.org/changeset/base/338532 Log: arc4random_stir() is not needed. Sponsored by: Dell EMC Isilon Modified: user/pho/stress2/misc/fifo2.sh user/pho/stress2/misc/ftruncate.sh user/pho/stress2/misc/ftruncate2.sh user/pho/stress2/misc/mlockall3.sh user/pho/stress2/misc/msync.sh user/pho/stress2/misc/suj5.sh user/pho/stress2/misc/suj6.sh user/pho/stress2/misc/tmpfs16.sh Modified: user/pho/stress2/misc/fifo2.sh ============================================================================== --- user/pho/stress2/misc/fifo2.sh Sat Sep 8 04:10:26 2018 (r338531) +++ user/pho/stress2/misc/fifo2.sh Sat Sep 8 08:52:52 2018 (r338532) @@ -193,7 +193,6 @@ main(void) start = time(NULL); while ((time(NULL) - start) < 120) { if (fork() == 0) { - arc4random_stir(); for (j = 0; j < 1; j++) if ((e = pthread_create(&cp[j], NULL, calls, NULL)) != 0) errc(1, e,"pthread_create"); Modified: user/pho/stress2/misc/ftruncate.sh ============================================================================== --- user/pho/stress2/misc/ftruncate.sh Sat Sep 8 04:10:26 2018 (r338531) +++ user/pho/stress2/misc/ftruncate.sh Sat Sep 8 08:52:52 2018 (r338532) @@ -181,7 +181,6 @@ main(int argc, char **argv) err(1, "Can't drop privileges to \"nobody\""); endpwent(); - arc4random_stir(); if ((e = pthread_create(&rp, NULL, test, NULL)) != 0) errc(1, e, "pthread_create"); usleep(1000); Modified: user/pho/stress2/misc/ftruncate2.sh ============================================================================== --- user/pho/stress2/misc/ftruncate2.sh Sat Sep 8 04:10:26 2018 (r338531) +++ user/pho/stress2/misc/ftruncate2.sh Sat Sep 8 08:52:52 2018 (r338532) @@ -198,7 +198,6 @@ main(int argc, char **argv) err(1, "Can't drop privileges to \"nobody\""); endpwent(); - arc4random_stir(); if ((e = pthread_create(&rp, NULL, test, NULL)) != 0) errc(1, e, "pthread_create"); usleep(1000); Modified: user/pho/stress2/misc/mlockall3.sh ============================================================================== --- user/pho/stress2/misc/mlockall3.sh Sat Sep 8 04:10:26 2018 (r338531) +++ user/pho/stress2/misc/mlockall3.sh Sat Sep 8 08:52:52 2018 (r338532) @@ -150,7 +150,6 @@ main(void) alarm(180); for (i = 0; i < 8000; i++) { if ((pid = fork()) == 0) { - arc4random_stir(); for (j = 0; j < N; j++) r[j] = arc4random(); for (j = 0; j < 50; j++) Modified: user/pho/stress2/misc/msync.sh ============================================================================== --- user/pho/stress2/misc/msync.sh Sat Sep 8 04:10:26 2018 (r338531) +++ user/pho/stress2/misc/msync.sh Sat Sep 8 08:52:52 2018 (r338532) @@ -186,7 +186,6 @@ main(void) alarm(180); for (i = 0; i < 8000; i++) { if (fork() == 0) { - arc4random_stir(); for (j = 0; j < N; j++) r[j] = arc4random(); for (j = 0; j < 50; j++) Modified: user/pho/stress2/misc/suj5.sh ============================================================================== --- user/pho/stress2/misc/suj5.sh Sat Sep 8 04:10:26 2018 (r338531) +++ user/pho/stress2/misc/suj5.sh Sat Sep 8 08:52:52 2018 (r338532) @@ -172,7 +172,6 @@ main() for (i = 0; i < 100; i++) { for (j = 0; j < PARALLEL; j++) { if (fork() == 0) { - arc4random_stir(); test(random_int(1, size) * 1024); } } Modified: user/pho/stress2/misc/suj6.sh ============================================================================== --- user/pho/stress2/misc/suj6.sh Sat Sep 8 04:10:26 2018 (r338531) +++ user/pho/stress2/misc/suj6.sh Sat Sep 8 08:52:52 2018 (r338532) @@ -175,7 +175,6 @@ main() for (i = 0; i < 100; i++) { for (j = 0; j < PARALLEL; j++) { if (fork() == 0) { - arc4random_stir(); test(random_int(1, size) * 1024); } } Modified: user/pho/stress2/misc/tmpfs16.sh ============================================================================== --- user/pho/stress2/misc/tmpfs16.sh Sat Sep 8 04:10:26 2018 (r338531) +++ user/pho/stress2/misc/tmpfs16.sh Sat Sep 8 08:52:52 2018 (r338532) @@ -192,7 +192,6 @@ main(int argc, char **argv) err(1, "Can't drop privileges to \"nobody\""); endpwent(); - arc4random_stir(); if ((e = pthread_create(&rp, NULL, test, NULL)) != 0) errc(1, e, "pthread_create"); usleep(1000);