From nobody Mon Sep 8 15:26:33 2025 X-Original-To: dev-commits-src-main@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 4cL9lt30qJz66kb6; Mon, 08 Sep 2025 15:26:34 +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 4cL9ls5Fp8z3N14; Mon, 08 Sep 2025 15:26:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1757345193; 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=E3NdjxLALEqLieyUEfHHYKY5hx+XY9568ECE/5rA+i8=; b=XyY3gXDr3cfQ1Y6XsqBVn5hFz5vZshmUi1Td+herTixI1Z8ZzZUbqxvP5C4x+g0TcdHiZ2 E90cKbhQCCdL6CsWMYPZ1KJPjE5k+GNu/qLAYPzc8+R0TIan5WGJZf6f4Zw1qcklx/mNUF xM8CMK/9ilg57OEPuwtO4VaDkcve1vc6yofDsjDlFvVCaN7tih/2pSzzwpYq3Xa1ElbPjC itDZIYXfXRxipkPD80WA1Tf0U3BX/7CQUXiWv8LBpO8rQCNZ3KC5ZagHCRs3jp7emvNabZ 6s82Ec6YBLn1qIfVXlqiCqRuUPJy0erVDAJk0s5VvHF66rgj2vRhu1bSeaTqvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1757345193; 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=E3NdjxLALEqLieyUEfHHYKY5hx+XY9568ECE/5rA+i8=; b=lr+cxRhSipM3+K/uOjUbsbOLFClroesMGcH3dNon+gU5rpavoWXNNbbB/No0Yj71Zx4N0I LF6WkCOzuU8LX9pqw1U2zVScqCBTZzrqZwfTlH4mRJ2WE8xm+g6MnBCEQMtDIdx1c+84Io My8abiwaGBS+44S58Z/TYKx8xo+MP2BZTLS2x3ALX3BdgPVPxJlGD5udw0bh8uHMqdLrQL Nexv7ThVgZnVV0y70O69yL3qv96AAP1c7nrYVD1z2irhLqCet92HrwyiH40xi2Z05NYuxB Qh3x9P1EowuNbxnUIw3BZE4qJzR+4YZyJLCrGrPJl5UvL2jqqVErRjf/TXu5FA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1757345193; a=rsa-sha256; cv=none; b=wvLjDCwGKoXgycOQWkdQVADSiKH230GdEtTOwhYZsI4QdECpp4nwNQVuX7FMoCBGTvt5cs /eZsHLz76wrJKUJdm+nKuuxLArPh2h03aMcwhZJKEqK1bjB6AJnckdv3zDboEDVb7xbc0R ideIqLZU6bidvgGPgBTGRDxhbEEhnBP+AvKpdI1E9tzRFua+SRBLYkA8aNLWeIx8xaClOL 4K/8QioS4wYBKK7NwKEejmJw82murLMB0P86pRao1tg+QBjk2jNlAJq9xbRQ16vqNsFuVt I3UARcCdA7FmZjwjA/gZMDt40yQrfb9KoW8g+CnT+9KbEyN2pHq/E5wPsamCdA== 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 4cL9ls4ZPnz1B5c; Mon, 08 Sep 2025 15:26:33 +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 588FQXf8076601; Mon, 8 Sep 2025 15:26:33 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 588FQXEN076598; Mon, 8 Sep 2025 15:26:33 GMT (envelope-from git) Date: Mon, 8 Sep 2025 15:26:33 GMT Message-Id: <202509081526.588FQXEN076598@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: 27e2afa4f27c - main - random.4: Document the kern.random.nist_healthtest_enabled tunable List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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: 27e2afa4f27cda036bd81d72357cc6be98869783 Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=27e2afa4f27cda036bd81d72357cc6be98869783 commit 27e2afa4f27cda036bd81d72357cc6be98869783 Author: Mark Johnston AuthorDate: 2025-09-08 14:45:08 +0000 Commit: Mark Johnston CommitDate: 2025-09-08 15:21:43 +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 --- 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