From nobody Fri Feb 14 19:25:35 2025 X-Original-To: dev-commits-src-branches@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 4Yvhpm62mcz5nXYy; Fri, 14 Feb 2025 19:25:36 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Yvhpl6n1dz48tp; Fri, 14 Feb 2025 19:25:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1739561136; 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=qC0AdHjvBCcwTuatNtyqqFuuQUwiFHAGZP4qefGlcFQ=; b=M7reGQq7VOWt0pYR+IBbweZUrh3xg2f5sS8dGeT9ybPgvG8kypLuglxk3iDJxC/IoTPheO Hzr6GeeeURBCi1un6SPBE7wc2HSENz1JvFhVrR+Ipq3u3yvaqtYmgOBIAcRKkqFYvPPFep joy/mAKaorsCXdwrgxt71iOKxXEIwe131kHljVAazkifGVuyWhokWvmbjEj+41+wYiaLyp a+XT7fcPyYTxgtqb+KTwZJuU1U3x4ohZeh1e0p0RYMMIZZJMENkLrXhfX/LzQR9Eyk35XD MdMHyj2sM50Q5Yvt/+ZM20BhMU28oK8Q4zeomHptrzsbfBfFo5Xst4zNM6aaHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1739561136; 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=qC0AdHjvBCcwTuatNtyqqFuuQUwiFHAGZP4qefGlcFQ=; b=E/XCVMw2FzEtNThZdoOBxhiS+mEvumj7u15G4vfr68qYnkxy9ZNWlWlWR+0n25rjf5MH+g bQjPB+0pzmDP7myGXOk3CP9zD1f0pQlKX+C2x8cEN4l572vf6cIL+346RrVdRsC0iE8L3h g9L/xmwviwadPWP8VOiYewPNxK4i3Ol3anMU4bavOSBrqik2LHQOppmw/n4S2jzGi2SonM ohyuEGMHGm+qVUSrUnV0ridcULJGoiKzP0Wxq8WItuaF4FLYuRkSxsVxzzHyoa9xFiJbyD /UIBV9lsMdy3+h5vMAxdfXBR2moxZ0hqqwAkn3roMw9+HSvV2GAkxkQ0He/h/A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1739561136; a=rsa-sha256; cv=none; b=ChAHovjeOuWs8I4Of6KFakuDswgdPDZnpB15l7gHOTWvb3grTao3dirl1Izg8P6oOtjN5D WoRedHP/9fz2fnOf3wzkk83tPt4czNtdjc2540HYC86nc6UMUBgIjOTIMfbyqOIkA8imDq gHxECnS3G38Eb1t7PLFTaBlPhSc3WtRdNGNjnlKnfH0Jr4/N1/h/zQP4NcY6OLaWmjoYeL 1Ta2MWznLminue5THqwQskAfrcxxfhZsWb0IHAGa5IQwBFEy7dWALE/JpvVZ+G6qAWvbD/ oUDjqX/Q51mE1JAf6ceTlNh0WEIBAeWDNE3Xp6CfHNorN1F4ocdynor6TGoxKQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4Yvhpl6HgBzkwc; Fri, 14 Feb 2025 19:25:35 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 51EJPZCn039031; Fri, 14 Feb 2025 19:25:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 51EJPZoB039028; Fri, 14 Feb 2025 19:25:35 GMT (envelope-from git) Date: Fri, 14 Feb 2025 19:25:35 GMT Message-Id: <202502141925.51EJPZoB039028@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Johnston Subject: git: d1b263065a83 - stable/14 - geli tests: Use shorter passphrases in setkey_passphrase List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@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/stable/14 X-Git-Reftype: branch X-Git-Commit: d1b263065a83ede4e30be7b2dedb6e2cc8c32ad7 Auto-Submitted: auto-generated The branch stable/14 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=d1b263065a83ede4e30be7b2dedb6e2cc8c32ad7 commit d1b263065a83ede4e30be7b2dedb6e2cc8c32ad7 Author: Mark Johnston AuthorDate: 2023-10-02 20:55:26 +0000 Commit: Mark Johnston CommitDate: 2025-02-14 19:25:19 +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") (cherry picked from commit c4b927c341e23eea17f75d139aafcf58545c5b0e) --- 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}