Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1860932
Summary: | segfault during a start | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Dan Horák <dan> | ||||
Component: | rng-tools | Assignee: | Vladis Dronov <vdronov> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 33 | CC: | ckaiser, hannsj_uhl, jaromir.capik, jgarzik, lewk, mark, vdronov | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | ppc64le | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2021-03-24 14:29:20 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: | 1071880 | ||||||
Attachments: |
|
Description
Dan Horák
2020-07-27 13:41:37 UTC
yup, looks like a loop between init_openssl and refill_rand. I'll set up a test build to fix it asap. Created attachment 1702669 [details] patch to ensure we never loop forever in darn https://koji.fedoraproject.org/koji/taskinfo?taskID=48019171 Making a scratch build for you of rng-tools with the above patch. Please confirm that it resolves your issue Thanks! So the crash is away, but now it says "initialization failed" for "darn", which doesn't look right. Jul 28 17:34:48 fedora-ppc systemd[1]: Started Hardware RNG Entropy Gatherer Daemon. Jul 28 17:34:48 fedora-ppc rngd[1763]: Initializing available sources Jul 28 17:34:48 fedora-ppc rngd[1763]: [hwrng ]: Initialization Failed Jul 28 17:34:48 fedora-ppc rngd[1763]: [darn ]: Initialization Failed Jul 28 17:34:48 fedora-ppc rngd[1763]: [jitter]: Initializing AES buffer Jul 28 17:34:48 fedora-ppc rngd[1763]: [jitter]: Unable to obtain AES key, disabling AES in JITTER source Jul 28 17:34:48 fedora-ppc rngd[1763]: [jitter]: Enabling JITTER rng support Jul 28 17:34:48 fedora-ppc rngd[1763]: [jitter]: Initialized Jul 28 17:34:48 fedora-ppc rngd[1763]: [pkcs11]: PKCS11 Engine /usr/lib64/opensc-pkcs11.so Error: No such file or directory Jul 28 17:34:48 fedora-ppc rngd[1763]: [pkcs11]: Initialization Failed Jul 28 17:34:48 fedora-ppc rngd[1763]: [rtlsdr]: Initialization Failed Jul 28 17:34:48 fedora-ppc rngd[1763]: Entropy Generation is slow, consider tuning/adding sources Jul 28 17:34:48 fedora-ppc rngd[1763]: Entropy Generation is slow, consider tuning/adding sources Jul 28 17:34:48 fedora-ppc rngd[1763]: Entropy Generation is slow, consider tuning/adding sources Jul 28 17:34:48 fedora-ppc rngd[1763]: Entropy Generation is slow, consider tuning/adding sources Jul 28 17:34:48 fedora-ppc rngd[1763]: Entropy Generation is slow, consider tuning/adding sources Jul 28 17:34:48 fedora-ppc rngd[1763]: Entropy Generation is slow, consider tuning/adding sources Jul 28 17:34:48 fedora-ppc rngd[1763]: Entropy Generation is slow, consider tuning/adding sources Jul 28 17:34:48 fedora-ppc rngd[1763]: Entropy Generation is slow, consider tuning/adding sources Jul 28 17:34:48 fedora-ppc rngd[1763]: Entropy Generation is slow, consider tuning/adding sources Jul 28 17:34:49 fedora-ppc rngd[1763]: Entropy Generation is slow, consider tuning/adding sources Jul 28 17:34:49 fedora-ppc rngd[1763]: Entropy Generation is slow, consider tuning/adding sources Jul 28 17:34:49 fedora-ppc rngd[1763]: Entropy Generation is slow, consider tuning/adding sources Jul 28 17:34:49 fedora-ppc rngd[1763]: Entropy Generation is slow, consider tuning/adding sources hmm, what system are you running this on, mind if I take a look at it? (In reply to Neil Horman from comment #4) > hmm, what system are you running this on, mind if I take a look at it? It's sitting on my desk :-) But it's a Rawhide VM running on F-32 host on a Talos Power9 system. I will try to reproduce that on a Boston P9 system in the morning. DARN is initialized OK in a F-32 VM with rng-tools-6.10-3.fc32.ppc64le (was locally rebuilt for F-32). So no, it 6.10-3 crashes in F-32 VM too, but it took 20 minutes from start to the crash (same backtrace as in Rawhide). I guess I can try it locally on bare-metal. I'll see if I can grab a p9 system in beaker as well Note to self: Got it reproduced. Looks like a problem with the AES mangling. Will look deeper in the aM https://github.com/nhorman/rng-tools/commit/0d6a4c1eb830c8a0c619e18378eba1761d2fa7a2 got it fixed upstream, will backport shortly This bug appears to have been reported against 'rawhide' during the Fedora 33 development cycle. Changing version to 33. And it seems Neil forgot to backport the fix. Vladis, could you take care of that, please? Or do you let me to do it? Another option is to rebase rng-tools to 6.11 for F>=33. rng-tools in F-32 are OK. (In reply to Dan Horák from comment #13) > And it seems Neil forgot to backport the fix. Vladis, could you take care of > that, please? Or do you let me to do it? Another option is to rebase > rng-tools to 6.11 for F>=33. rng-tools in F-32 are OK. Hello, Dan, It is a bit weird situation here. While I maintain rng-tools in RHEL, I do not maintain it in Fedora. Even if I want for make a fix, I do not have any permissions for the https://src.fedoraproject.org/rpms/rng-tools/ repo. Neil is formally still the package maintainer in Fedora and this bz should be for him. If, as you mention, you can do the fix, please, feel free to go ahead and fix. Thanks for the info, Vladis. I haven't noticed that it was Troy who merged your fix in November. I have opened https://src.fedoraproject.org/rpms/rng-tools/pull-request/6 with rebase to the latest 6.11 and also sent Neil an email. I'll give it some time, then I will commit it. Hello, Dan, Thank you for making this rebase PR. This PR was merged by Neil, but unfortunately fails the Zuul and CI tests. I cannot get if it is the package or a build infra issue. It might be also the CI test that got outdated :-) You should be able to run the test manually, to be able to review the results. https://docs.fedoraproject.org/en-US/ci/tests/#_executing has some docs, unfortunately they are unusable for my ppc64le system rng-tools-6.12-1 is in the Rawhide, F34, F33 and has been submitted for stable by bodhi for F32 as of today. closing as resolved. |