From nobody Mon Oct 02 20:58:05 2023 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 4RztZj3Yqlz4wTcq; Mon, 2 Oct 2023 20:58:05 +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 4RztZj34Q9z3M1v; Mon, 2 Oct 2023 20:58:05 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1696280285; 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=JQTiz4wMJsH2LUfGmfYtvXPrNkXtRjRFjRlZXtdt0Wc=; b=IfEsNwppaE0vomOVypaok3byiy92lXA5clZ96Fm3PoODDI0/snIwj53ceCDKM/aRANK7zH PI2g89G16DAfEKak0hnosCdrYnB1LbxCGbo4/U7SkZi2ykYIzJCQv6nQ4KYcH6JvWSuyZN DSMYN+h90kyS2UdaMR7dws26KVn4DQaSeVVcr8rfwW2eCb62HmpXQMGqItAJpc4H6ek8Q/ ah1riKEkGVuOiiMf/+5dMIOokJ0tzFz2+D8gCAE63kEwtf+7kkZqp0rhG8P3bDGZ13uU17 OUg9RY2Yip9JXKIa28AQHW+6UPnuG/3jr5Hm3nRStntw65fwcMKyrkbWTKgUag== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1696280285; a=rsa-sha256; cv=none; b=pf0x9gWrOt/BHzfDhMREp+Gzy0OHuKcXw6ziNoQOVxTNl7nDDgcPQK37YAXKsWwyjCHKMr FC2tpO+QaQW4PK9NJq3zW4gH1/F6ZwNOBlm7fVQGqKGtHSV2JEQQ8oSE2bTx2E6MmxLq8m nU2DJxYpQ3w9swDFrTXZdk7JD8RiL2FQNv6JnjvGdFKuum49lDJkeCdYSpRN0SjNBsTliF CB4idwbQ5knz5Chg8CwDlnuL3J6FN1WIAlILQufsO8lg7TXXlHREq+Cc9ZcFM3sFzv9SCg VTe13exLaGdDhFZ0Tjnvj9jH1F5oUJ4ihKg14+GNqXI3O7TGuVGKlzr8pjJSIg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1696280285; 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=JQTiz4wMJsH2LUfGmfYtvXPrNkXtRjRFjRlZXtdt0Wc=; b=HPh1OlCidCtnEgwHriPkJKpImSllCawWNVX+afuENmZaWvBT8HvoH0t5BcmrNlU9KoHl87 M5PvoSToGhk/JoJw5JsDVjxv3AGDpQY9XU/Fxdia7bkIjHkJJ+Rzms3+d7Iu3qVDmq+2Jx RFMWswfPdsPucfTc89ZL9EqEiVXVwaiYFTAIy7OmDVquA+zmpWTXGdRrV1p94uYPnQgZbX dXFcRSPtEyMEOi4TuxaXzf2TnCj/ZItXo/CJRjw9e7bsDzPuk4JbVhKp1RrvWkyBA8LRKd ZUGX2kI7DkykIey1dlE98kCZz0D6ssLCUdxXiC2W+6itIf8dVKNE4Fc6s7MMKA== 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 4RztZj29LMzCYP; Mon, 2 Oct 2023 20:58:05 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 392Kw5js035989; Mon, 2 Oct 2023 20:58:05 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 392Kw5dE035986; Mon, 2 Oct 2023 20:58:05 GMT (envelope-from git) Date: Mon, 2 Oct 2023 20:58:05 GMT Message-Id: <202310022058.392Kw5dE035986@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: c4b927c341e2 - main - geli tests: Use shorter passphrases in setkey_passphrase 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: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c4b927c341e23eea17f75d139aafcf58545c5b0e Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=c4b927c341e23eea17f75d139aafcf58545c5b0e commit c4b927c341e23eea17f75d139aafcf58545c5b0e Author: Mark Johnston AuthorDate: 2023-10-02 20:55:26 +0000 Commit: Mark Johnston CommitDate: 2023-10-02 20:57:51 +0000 geli tests: Use shorter passphrases in setkey_passphrase There is an undocumented limit on the length of a GELI passphrase, and the test exceeded that. Most of the time it worked because a nul terminator would appear early enough in the string. Reported by: Jenkins Fixes: 2b7b09ac9675 ("geli tests: Add a regression test for geli setkey -J") --- tests/sys/geom/class/eli/setkey_test.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/sys/geom/class/eli/setkey_test.sh b/tests/sys/geom/class/eli/setkey_test.sh index ce3833f5fe0c..34fb8221ab04 100644 --- a/tests/sys/geom/class/eli/setkey_test.sh +++ b/tests/sys/geom/class/eli/setkey_test.sh @@ -108,9 +108,9 @@ setkey_passphrase_body() atf_check dd if=/dev/random of=rnd bs=512 count=${sectors} status=none hash1=`dd if=rnd bs=512 count=${sectors} status=none | md5` atf_check_equal 0 $? - atf_check dd if=/dev/random of=pass1 bs=512 count=32 status=none - atf_check dd if=/dev/random of=pass2 bs=512 count=32 status=none - atf_check dd if=/dev/random of=pass3 bs=512 count=32 status=none + atf_check dd if=/dev/random of=pass1 bs=512 count=1 status=none + atf_check dd if=/dev/random of=pass2 bs=512 count=1 status=none + atf_check dd if=/dev/random of=pass3 bs=512 count=1 status=none atf_check geli init -B none -J pass1 ${md} atf_check geli attach -j pass1 ${md}