Intel RDRAND not supported by rng-tools, init script bails out

Bug #1377131 reported by Dimitri John Ledkov
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
intel
Fix Released
Undecided
Unassigned
rng-tools (Ubuntu)
Fix Released
Low
Dimitri John Ledkov
Trusty
Fix Released
Low
Dimitri John Ledkov
Utopic
Fix Released
Low
Dimitri John Ledkov
Vivid
Fix Released
Low
Dimitri John Ledkov

Bug Description

I've noticed that on cpu's that support rdrand feature rng-tools daemon is not starting. On closer inspection it appears to be a bug in the init script, which only checks for kernel devices, but doesn't check for cpu features to provide random number source.

== Testcase ==

1) Using an Ivybridge Intel CPU machine or better
2) Check that rdrand feature is supported (grep rdrand /proc/cpuinfo)
3) Install and attempt to start rng-tools daemon

With this fix, rng-tools daemon should start.
Without this fix (and no other Hardware TRNG available) rng-tools daemon fails to start.

Revision history for this message
Dimitri John Ledkov (xnox) wrote :
Changed in rng-tools (Ubuntu Trusty):
status: New → Confirmed
Changed in rng-tools (Ubuntu Utopic):
status: New → Confirmed
importance: Undecided → Low
Changed in rng-tools (Ubuntu Trusty):
importance: Undecided → Low
assignee: nobody → Dimitri John Ledkov (xnox)
Changed in rng-tools (Ubuntu Utopic):
assignee: nobody → Dimitri John Ledkov (xnox)
tags: added: patch
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package rng-tools - 5-0ubuntu2

---------------
rng-tools (5-0ubuntu2) vivid; urgency=medium

  * Fix capability detection for Intel RDRAND cpu feature in the init
    script and thus start rngd daemon on compatible cpus. (LP: #1377131)
 -- Dimitri John Ledkov <email address hidden> Fri, 31 Oct 2014 11:27:17 +0000

Changed in rng-tools (Ubuntu Vivid):
status: Confirmed → Fix Released
description: updated
Changed in rng-tools (Ubuntu Utopic):
status: Confirmed → In Progress
Revision history for this message
Yingying Zhao (yingying-zhao) wrote :

Hi Dimitri,
Just let you know that I verified your fix with Vivid on Broadwell. Once the fix for Utopic is out, I can help to do verification as well.

Revision history for this message
Chris J Arges (arges) wrote : Please test proposed package

Hello Dimitri, or anyone else affected,

Accepted rng-tools into utopic-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/rng-tools/5-0ubuntu1.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in rng-tools (Ubuntu Utopic):
status: In Progress → Fix Committed
tags: added: verification-needed
Revision history for this message
Yingying Zhao (yingying-zhao) wrote :

Hi Chris,
I verified the rng-tools 5-0ubuntu1.1 in Utopic and this version fixed the bug. So I change the tag to "verification-done".

Mathew Hodson (mhodson)
tags: added: verification-done
removed: verification-needed
Revision history for this message
Chris J Arges (arges) wrote : Update Released

The verification of the Stable Release Update for rng-tools has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package rng-tools - 5-0ubuntu1.1

---------------
rng-tools (5-0ubuntu1.1) utopic; urgency=medium

  * Fix capability detection for Intel RDRAND cpu feature in the init
    script and thus start rngd daemon on compatible cpus. (LP: #1377131)
 -- Dimitri John Ledkov <email address hidden> Tue, 25 Nov 2014 23:49:11 +0000

Changed in rng-tools (Ubuntu Utopic):
status: Fix Committed → Fix Released
Revision history for this message
Paul Donohue (s-launchpad-paulsd-com) wrote :

Any chance of getting this fixed in Trusty as well?

Thanks!

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

You can check status of pending SRUs here:
http://people.canonical.com/~ubuntu-archive/pending-sru.html

There are links to upload queue at a glance, of the not yet approved SRUs:
https://launchpad.net/ubuntu/trusty/+queue?queue_state=1

There you can see rng-tools pending approval for trusty.

Revision history for this message
Chris J Arges (arges) wrote : Please test proposed package

Hello Dimitri, or anyone else affected,

Accepted rng-tools into trusty-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/rng-tools/4-0ubuntu2.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in rng-tools (Ubuntu Trusty):
status: Confirmed → Fix Committed
tags: removed: verification-done
tags: added: verification-needed
Revision history for this message
Paul Donohue (s-launchpad-paulsd-com) wrote :

I tested the amd64 build of 4-0ubuntu2.1, and it fixed the problem for me.

Thanks!

tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package rng-tools - 4-0ubuntu2.1

---------------
rng-tools (4-0ubuntu2.1) trusty; urgency=medium

  * Fix capability detection for Intel RDRAND cpu feature in the init
    script and thus start rngd daemon on compatible cpus. (LP: #1377131)
 -- Dimitri John Ledkov <email address hidden> Sun, 21 Dec 2014 05:34:14 +0000

Changed in rng-tools (Ubuntu Trusty):
status: Fix Committed → Fix Released
Changed in intel:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.