From nobody Sun Aug 07 08:37:42 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4M0t4k3G8Zz4YCnc; Sun, 7 Aug 2022 08:37:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4M0t4k2d62z41RC; Sun, 7 Aug 2022 08:37:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659861462; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=BvbUFc0053659Q670/Wqc6jQmzjrS1leHByhbi+60i4=; b=PrzYR+jh92QUONHhZpaccS14Axx9cWOSeIWaw69I3lr6Uipa1jXvDCj9PaG+kNMgPLGAb6 ZAcP0wSb4Xrgl1V4UdXeMC+0sDnSSYfVKWtZQZdpdJp17b9Oli2/VuVRvAvetPJOuAxUtz IbI4APBYY/sVq0Q4nU2OiN/+/dKURbZFil3+hYQ4x7+Lq9rHB2W27HSOShn9i8ZXkKX2Nz jjzHEMDWdFB5vMQl8DAmVLtflJ1yF+GjmKT6GKZ++UmFwJ7nLI6Ev2zQ8MX23bAezOcu9y lb7evB2NPEqqbI7/ymCNPmDc1nXcKacaJlNCbRtW3uX56cDnsisHiU1Qnz35HQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4M0t4k1ZXmz15f8; Sun, 7 Aug 2022 08:37:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2778bg8m085735; Sun, 7 Aug 2022 08:37:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2778bggC085734; Sun, 7 Aug 2022 08:37:42 GMT (envelope-from git) Date: Sun, 7 Aug 2022 08:37:42 GMT Message-Id: <202208070837.2778bggC085734@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Peter Holm Subject: git: ac79b5f32794 - main - stress2: Do not run a fuzz test as root. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: pho X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ac79b5f327941115f58c0ac4d00bd72b19d43543 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659861462; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=BvbUFc0053659Q670/Wqc6jQmzjrS1leHByhbi+60i4=; b=OLUNZgnhH+cx1GlXrqKYikfnfGbfCBq1+XlwHmoaG5eL4KOC/0nUKFU9viabuwGPbcuB7L U6ui519Ke4wJa777rjs2xctNrCdPlx4d3ecVasISlC6D60YkP9flS5XoAbh5CfeuHelOXx 34lYUwCWxigi/hhsrk399YxrlMEFl//LGSf0clz19NYLEU1ymxCfVyjPAzw5k1bf8lBZC2 SKLO2RjLFq4J1qEmEbV2BMcXhmf3GGsFt+oV7RVLhWC8zVdqr6H0LCBFTcd1IDNjrA3jus /sNbpsb1D0W0gi4Iq+FnsCdjDoEOcd3Y5BMMk0Un8GpsTWPiHt8UEHvWob/6fA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659861462; a=rsa-sha256; cv=none; b=QIvFvzyqMW6t1b8vyzFcfvpAvZes74UGXMHI1YthD1CPLPAji6yiLWrTObrDIil/JoPixy ln40/Ms9Z4XVgtC/Cc3uq+0WFy5q2eXtPN3QBNE6S/fMFceqHZR1Py52KfSNJD5Uqc83dy ClP3T9YxSlpeLS10z4PShczYkB0gN42iUv7Dlmxorh+saFAs+96gxuxsovZaUCwGOWWZ0a wojgluwYU2ijUqKjYkF6Ym9eNqyAJiEIBvJbCCyEoE7ZDHhJ1yBCZRkunbKsKpAEn+7Uc2 +ETd8oX/fHEHGmtfx8M29t4PTkalxk9cVJG3X+5aWafryDi11lgb08uSjQaDoQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by pho: URL: https://cgit.FreeBSD.org/src/commit/?id=ac79b5f327941115f58c0ac4d00bd72b19d43543 commit ac79b5f327941115f58c0ac4d00bd72b19d43543 Author: Peter Holm AuthorDate: 2022-08-07 08:35:47 +0000 Commit: Peter Holm CommitDate: 2022-08-07 08:35:47 +0000 stress2: Do not run a fuzz test as root. --- tools/test/stress2/misc/badcode3.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/test/stress2/misc/badcode3.sh b/tools/test/stress2/misc/badcode3.sh index e0a10d0074a4..61dce1cb82c3 100755 --- a/tools/test/stress2/misc/badcode3.sh +++ b/tools/test/stress2/misc/badcode3.sh @@ -39,13 +39,18 @@ mdconfig -a -t swap -s 1g -u $mdstart newfs $newfs_flags md$mdstart > /dev/null mount /dev/md$mdstart $mntpoint chmod 777 $mntpoint +export badcodeLOAD=100 +export RUNDIR=$mntpoint/stressX +mkdir -p $RUNDIR +chmod 0777 $RUNDIR here=`pwd` cd $mntpoint (cd $here/../testcases/swap; ./swap -t 5m -i 20) & sleep 2 while pgrep -q swap; do - timeout 1m limits -c 0 $here/../testcases/badcode/badcode -t 1m -i 20 + su $testuser -c \ + "timeout 1m limits -c 0 $here/../testcases/badcode/badcode -t 1m -i 20" done wait cd $here