git: d1b263065a83 - stable/14 - geli tests: Use shorter passphrases in setkey_passphrase
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 14 Feb 2025 19:25:35 UTC
The branch stable/14 has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=d1b263065a83ede4e30be7b2dedb6e2cc8c32ad7
commit d1b263065a83ede4e30be7b2dedb6e2cc8c32ad7
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2023-10-02 20:55:26 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
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}