RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2015560 - [RHEL-9.0-GA] update jitterentropy to 3.3.1 + latest fixes
Summary: [RHEL-9.0-GA] update jitterentropy to 3.3.1 + latest fixes
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: jitterentropy
Version: 9.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: 9.0
Assignee: Vladis Dronov
QA Contact: Vilém Maršík
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-10-19 13:59 UTC by Vladis Dronov
Modified: 2022-05-17 16:31 UTC (History)
0 users

Fixed In Version: jitterentropy-3.3.1-2.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-05-17 15:58:59 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-100237 0 None None None 2021-10-19 14:19:11 UTC
Red Hat Product Errata RHBA-2022:3989 0 None None None 2022-05-17 15:59:01 UTC

Description Vladis Dronov 2021-10-19 13:59:32 UTC
this bug is a follow-up of bz1973157.

update jitterentropy lib to 3.3.0 + important upstream fixes (like "JENT: use proper pointer dereferencing").

upstream: https://github.com/smuellerDD/jitterentropy-library/
fedora: https://src.fedoraproject.org/rpms/jitterentropy/

Comment 1 Vladis Dronov 2021-11-23 22:06:31 UTC
[CI] [GATING] [DONE] jitterentropy-3.3.1-2.el9 passed gating because all required tests passed

Brew build: https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=1805076
CI Dashboard: https://dashboard.osci.redhat.com/#/artifact/brew-build/aid/41472626

Comment 2 Vladis Dronov 2021-11-25 15:25:13 UTC
could you please provide Verified:Tested for this bz, so i can proceed with its errata?
the test plan for both jitterentropy library (this bz) and rngd daemon (bz2015566) is the same as for the previous version:
https://bugzilla.redhat.com/show_bug.cgi?id=1973157#c5 (just the download links are different, see them above)

Comment 6 Vilém Maršík 2021-12-17 01:46:57 UTC
As of RHEL-9.0.0-20211212.3, even on aarch64, the kernel seems to gather its own entropy with no rngd running. Not sure why, RHEL8 is not doing that. Is there a way to prove that rngd/jitterentropy is working, i.e. to switch off all other entropy sources?

--- 

# systemctl status rngd
○ rngd.service - Hardware RNG Entropy Gatherer Daemon
     Loaded: loaded (/usr/lib/systemd/system/rngd.service; disabled; vendor preset: enabled)
     Active: inactive (dead)
# cat /proc/sys/kernel/random/entropy_avail
471
# rngtest -c 1000 </dev/random
(...)
rngtest: input channel speed: (min=733.596; avg=1313.149; max=1362.392)Mibits/s
rngtest: FIPS tests speed: (min=102.546; avg=125.036; max=127.157)Mibits/s
rngtest: Program run time: 167345 microseconds
# cat /proc/sys/kernel/random/entropy_avail
486
# rngtest -c 1000 </dev/random
(...)
# cat /proc/sys/kernel/random/entropy_avail
489
# uname -m
aarch64

Comment 7 Vladis Dronov 2021-12-18 00:31:09 UTC
(In reply to Vilém Maršík from comment #6)
> As of RHEL-9.0.0-20211212.3, even on aarch64, the kernel seems to gather its
> own entropy with no rngd running. Not sure why, RHEL8 is not doing that. Is
> there a way to prove that rngd/jitterentropy is working, i.e. to switch off
> all other entropy sources?

please, follow the suggested test procedure. it does not involve /dev/random
and so any other entropy sources.

Comment 8 Vilém Maršík 2021-12-21 20:09:26 UTC
Okay, you want to test rngd output directly, instead of kernel generator output. Makes sense.

Works good on RHEL-9.0.0-20211217.d.1 aarch64:

# dnf install rng-tools
(...)
Installed:
  jitterentropy-3.3.1-2.el9.aarch64
  rng-tools-6.14-2.git.b2b7934e.el9.aarch64
Complete!
# rngd -l
Entropy sources that are available but disabled
1: TPM RNG Device (tpm)
5: NIST Network Entropy Beacon (nist)
Available and enabled entropy sources:
0: Hardware RNG Device (hwrng)
6: JITTER Entropy generator (jitter)
Available entropy sources that failed initalization:
4: ARM v8.5 RNDR Instruction RNG (rndr)
# time rngd -x tpm -x nist -x hwrng -x rndr -n jitter -f -o /dev/stdout > /tmp/entropy
Disabling 1: TPM RNG Device (tpm)
Disabling 5: NIST Network Entropy Beacon (nist)
Disabling 0: Hardware RNG Device (hwrng)
Disabling 4: ARM v8.5 RNDR Instruction RNG (rndr)
Enabling 6: JITTER Entropy generator (jitter)
Initializing available sources
[jitter]: Initializing AES buffer
[jitter]: Enabling JITTER rng support
[jitter]: Initialized
^C[jitter]: Shutting down

real    0m22.259s
user    1m25.605s
sys     0m3.168s
# ls -lh /tmp/entropy
-rw-r--r--. 1 root root 54M Dec 21 15:04 /tmp/entropy
# cat /tmp/entropy | rngtest
rngtest 6.14
Copyright (c) 2004 by Henrique de Moraes Holschuh
This is free software; see the source for copying conditions.  There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

rngtest: starting FIPS tests...
rngtest: entropy source drained
rngtest: bits received from input: 447781888
rngtest: FIPS 140-2 successes: 22382
rngtest: FIPS 140-2 failures: 7
rngtest: FIPS 140-2(2001-10-10) Monobit: 1
rngtest: FIPS 140-2(2001-10-10) Poker: 2
rngtest: FIPS 140-2(2001-10-10) Runs: 4
rngtest: FIPS 140-2(2001-10-10) Long run: 0
rngtest: FIPS 140-2(2001-10-10) Continuous run: 0
rngtest: input channel speed: (min=205.091; avg=1976.324; max=6357.829)Mibits/s
rngtest: FIPS tests speed: (min=37.620; avg=90.208; max=94.423)Mibits/s
rngtest: Program run time: 4957102 microseconds

Comment 10 errata-xmlrpc 2022-05-17 15:58:59 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (new packages: jitterentropy), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:3989


Note You need to log in before you can comment on or make changes to this bug.