Bug 1745333 - Infinite loop on Ryzen 3000 CPUs due to broken rdrand
Summary: Infinite loop on Ryzen 3000 CPUs due to broken rdrand
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: json-c
Version: 30
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Björn Esser (besser82)
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-08-25 13:01 UTC by Miroslav Lichvar
Modified: 2019-11-23 01:12 UTC (History)
4 users (show)

Fixed In Version: json-c-0.13.1-7.fc31 json-c-0.13.1-7.fc30
Clone Of:
Environment:
Last Closed: 2019-11-15 03:01:41 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Miroslav Lichvar 2019-08-25 13:01:51 UTC
Description of problem:
The rdrand instruction is apparently broken on some motherboards with the new Ryzen 3000 CPUs. This issue is supposed to be fixed by BIOS update, but that's not available for all boards yet.

json-c seems to use the rdrand in its initialization. On the broken boards it enters an infinite loop. This causes the boot to hang on systems with encrypted storage (due to cryptsetup using json-c?).

Please consider disabling the rdrand support in json-c. It doesn't seem to be very useful and causes problems. Alternatively, check first if rdrand is reported in /proc/cpuinfo to make the nordrand option effective for json-c.

A similar issue was in systemd (bug #1729268).

Version-Release number of selected component (if applicable):
json-c-0.13.1-4.fc30

Comment 1 Miroslav Lichvar 2019-11-06 16:37:08 UTC
Submitted pull request to disable rdrand support:
https://src.fedoraproject.org/rpms/json-c/pull-request/1

Comment 2 Björn Esser (besser82) 2019-11-09 20:02:29 UTC
PR has been merged, updates are on their way.  Thank you!

Comment 3 Fedora Update System 2019-11-09 20:04:32 UTC
FEDORA-2019-e06b410ade has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2019-e06b410ade

Comment 4 Fedora Update System 2019-11-09 20:04:36 UTC
FEDORA-2019-f806bc58e5 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-f806bc58e5

Comment 5 Fedora Update System 2019-11-11 01:29:21 UTC
json-c-0.13.1-7.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-f806bc58e5

Comment 6 Fedora Update System 2019-11-11 01:38:20 UTC
json-c-0.13.1-7.fc31 has been pushed to the Fedora 31 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-e06b410ade

Comment 7 Harald Reindl 2019-11-11 11:53:47 UTC Comment hidden (abuse)
Comment 8 Fedora Update System 2019-11-15 03:01:41 UTC
json-c-0.13.1-7.fc31 has been pushed to the Fedora 31 stable repository. If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2019-11-23 01:12:14 UTC
json-c-0.13.1-7.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.


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