Bug 803292
Summary: | some generators (at least /dev/{u,}random) are broken | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Sami Farin <hvtaifwkbgefbaei> | ||||
Component: | dieharder | Assignee: | Jiri Hladky <hladky.jiri> | ||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 17 | CC: | hladky.jiri, jhladky | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | dieharder-3.31.1-9.fc19 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2013-08-01 17:04:47 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Sami Farin
2012-03-14 11:44:26 UTC
I have reproduced the problem on different boxes running different OSes. It seems like a bug in the software. I will try to investigate it further and contact developers if needed. I will keep you posted. Thanks Jirka Hi, my findings are that -g 500 and -g 501 works fine on 32-bit Linux systems but failing on all 64-bit OSes. I have dived into the source code and it seems I have found a route cause. Check the files libdieharder/rng_dev_random.c libdieharder/rng_dev_urandom.c etc static unsigned long int dev_urandom_get (void *vstate) will return 64-bit integer on 64-bit linux but UINT_MAX is just 32-bit integer. I would propose to review all files where UINT_MAX is used and consider using #include <stdint.h> uint32_t UINT32_MAX instead of unsigned long int and UINT_MAX respectively. Fixed file libdieharder/rng_dev_urandom.c is attached. I have informed the upstream and I will wait for their reaction to decide the next actions. Thanks Jirka Created attachment 570454 [details]
Fixed source code for /dev/urandom (501) generator
Fixed file libdieharder/rng_dev_urandom.c
Added:
#include <stdint.h>
Changed unsigned long int => uint32_t
Changed UINT_MAX => UINT32_MAX
This message is a reminder that Fedora 17 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 17. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '17'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version prior to Fedora 17's end of life. Bug Reporter: Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 17 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior to Fedora 17's end of life. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. Fedora 17 changed to end-of-life (EOL) status on 2013-07-30. Fedora 17 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. Thank you for reporting this bug and we are sorry it could not be fixed. dieharder-3.31.1-9.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/dieharder-3.31.1-9.fc19 dieharder-3.31.1-9.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/dieharder-3.31.1-9.fc20 Fixed in F19 and F20 dieharder-3.31.1-9.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report. dieharder-3.31.1-9.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report. |