Bug 1211406
Summary: | rngd assume all entropy to be 8-bit | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Yi Hao <leongyihao> | ||||||
Component: | rng-tools | Assignee: | Neil Horman <nhorman> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Vilém Maršík <vmarsik> | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | 7.1 | CC: | emcnabb, leongyihao, nhorman | ||||||
Target Milestone: | rc | ||||||||
Target Release: | --- | ||||||||
Hardware: | All | ||||||||
OS: | Linux | ||||||||
URL: | https://sourceforge.net/p/gkernel/bugs/138/ | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2015-11-19 03:30:51 UTC | Type: | Bug | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Bug Depends On: | |||||||||
Bug Blocks: | 1254223 | ||||||||
Attachments: |
|
Description
Yi Hao
2015-04-13 23:10:02 UTC
Created attachment 1014318 [details]
patch to add entropy count option
Untested, please let me know if this works for you. Thanks.
Hi, Thanks for the patch. if ((sscanf(arg,"%i", &e) == 0) || (e < 0) || (e > 8)) Actually should be (e < 1) Missing manpage entry. Other than that looks fine. I cannot see the new switch documented in the man page (see Comment #3). Did it get lost during the process? didn't add it to the documentation, I'll do that in a separate patch Used a Systemtap probe to see what data are sent. From what I know about the entropy pool, it rather looks correct - kernel entropy count is increased by (number of data added) * (number you specified by '-e' option) : rngd -f -e 1: Tue Aug 18 15:13:03 2015 :: rngd ioctl("/dev/random", RNDADDENTROPY, {entropy_count = 64, buf_size= 64}) ... rngd -f -e 8: Tue Aug 18 15:13:12 2015 :: rngd ioctl("/dev/random", RNDADDENTROPY, {entropy_count = 512, buf_size= 64}) ... Created attachment 1064370 [details]
stap probe
thanks to Jeffrey Bastian and Will Cohen
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, 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://rhn.redhat.com/errata/RHBA-2015-2179.html |