From nobody Tue Sep 30 15:23:44 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 4cbhfT2txvz69Djx; Tue, 30 Sep 2025 15:23:45 +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 "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cbhfT0nk3z3M0Z; Tue, 30 Sep 2025 15:23:45 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1759245825; 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=IHi85eoZXGNhBb8tJfIDkhiQe21tBbTPzgyUGpBKA0w=; b=yAcUP4F1kI9Np5v4ne93YEGJrklEDd5d9Ff+aCMtqkXxw4voBW/PcwsNpdoCLsG8s1Nvcm hu04uyDtimIEr8TK3n9w0HK0pLnd54QgcudVFM7cjgF7htroPbLWgcMJfxA2IcnllbigMc 27GH47i04ZLBpF/zyInJjSq0y8XIvfuMsSwAw9/rMPii7oA25sdnIpxLW79ihiS+ZFwhER r2HhN5853pAhIm7Btwt3s0IH6KvO3TzoDtmBrAjqJhoVk0xtPv9mrGIVXpFN+rg/tIdil3 85GPgjHCRpB/nm34/LxFYAv7k4ELmC3dCXXRY9lHVbnEbAZ+bFgp8JiEyvvmZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1759245825; 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=IHi85eoZXGNhBb8tJfIDkhiQe21tBbTPzgyUGpBKA0w=; b=juQr4v26OmTqFK3k/P0vgJ3axXYyR8D7+feSU4FZAGnaBjZsRclBVn8J7JA8NIsGRwI2Ds uYLbLjVl9HEOPZUQOaYKrE1Vv+HUBs2q8ELqhW26LFAiCKZN0mn9G4fkWUQyRjcRDbyjWh Ko/3KNSGAhqWy9wij6vtAH3iWVr6aWO1hMIkLh17feG/Ec9XLjLk/575P9SyA8Kqk3Sw1a b+z37hBERe40GUP4w7TUPuEquvJbWt0bgBdacLpOvmfipA4F/gS2mHEiWKBBUMHchKyBZg x8NEgEkHN5orzJPg1IXHGaGdeZZ7AXlXGu7EvYL2P3Egc04SlF+2w7xpLBFEvA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1759245825; a=rsa-sha256; cv=none; b=cHtCXsSAYer6qcBZoZrW91kDlIEXM6JQ0JeXMRlj1TvmPhkyoaW/OUkdQLyaonpRh0XjQW sqXU10kjJYCmlbvjAfnO31C3cNQF2BQHEhMoPIaSrQ/GBrHhUnVBATrJskP43gFMW9klOv FyVX4gYmPPepYBRDQyKdjXaZWryvRhoyYFRuNyKiCYAsDoouR5hBDuvRtMKZl/3NxQcv+0 5rXTpS1eeGE9HakCJDaQLysMfml4XWmRNnoN64yJVWvVBKKJ/RPP0o0RNlR4pqn9oml4Ek +rRASq5ceJImMMYGsZAEDdF/eTFftNuAGJ+une8qO/KgbqxEf3i4tQW14hvtTQ== 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 4cbhfT0MV1zjQT; Tue, 30 Sep 2025 15:23:45 +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 58UFNiR8045907; Tue, 30 Sep 2025 15:23:44 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 58UFNivw045903; Tue, 30 Sep 2025 15:23:44 GMT (envelope-from git) Date: Tue, 30 Sep 2025 15:23:44 GMT Message-Id: <202509301523.58UFNivw045903@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: e5cb6859e285 - stable/15 - random.4: Document the kern.random.nist_healthtest_enabled tunable 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/15 X-Git-Reftype: branch X-Git-Commit: e5cb6859e285e76cae855810f6470b6db2a64331 Auto-Submitted: auto-generated The branch stable/15 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=e5cb6859e285e76cae855810f6470b6db2a64331 commit e5cb6859e285e76cae855810f6470b6db2a64331 Author: Mark Johnston AuthorDate: 2025-09-08 14:45:08 +0000 Commit: Mark Johnston CommitDate: 2025-09-30 09:43:08 +0000 random.4: Document the kern.random.nist_healthtest_enabled tunable Reviewed by: cem, emaste MFC after: 2 weeks Sponsored by: Stormshield Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D52231 (cherry picked from commit 27e2afa4f27cda036bd81d72357cc6be98869783) --- share/man/man4/random.4 | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/share/man/man4/random.4 b/share/man/man4/random.4 index 840bc0c3234b..04d46e4d32aa 100644 --- a/share/man/man4/random.4 +++ b/share/man/man4/random.4 @@ -21,7 +21,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd April 19, 2019 +.Dd August 28, 2025 .Dt RANDOM 4 .Os .Sh NAME @@ -132,6 +132,17 @@ are listed in square brackets. See .Xr random_harvest 9 for more on the harvesting of entropy. +.Pp +The +.Va kern.random.nist_healthtest_enabled +tunable can be used to enable the entropy source health tests outlined +in section 4 of NIST Special Publication 800-90B. +When enabled, all entropy sources will be subject to the repetition +count and adaptive proportion tests described in that document. +If one of the tests fails, the source will be disabled, i.e., all +subsequent entropy samples from that source will be discarded. +The implementation performs startup testing, during which entropy +sources are discarded. .Sh FILES .Bl -tag -width ".Pa /dev/urandom" .It Pa /dev/random