Edge Security Profile picture
May 22 10 tweets 3 min read
Linux 5.19 will have more exciting random number generator evolution. I just submitted this pull to Linus: lkml.org/lkml/2022/5/22… which notes that random.c now clocks in at 931 lines of code and 466 lines of comments. 1/9
Most exciting from a crypto perspective is that the Linux RNG no longer pretends to deal with the "premature next" problem, one of the design goals of Fortuna that Linux has never had. 2/9
After an interesting thread between kernel developers and cryptographers, it became clear this isn't a threat model that's particularly practical, and winds up hurting security more than it helps. 3/9
This thread is worth a read, in particular messages from Nadia Heninger, Yevgeniy Dodis, and Tom Ristenpart, of whom I'm very grateful for chiming in: lore.kernel.org/lkml/YmlMGx6+u… 4/9
An update on the attempt to merge /dev/urandom and /dev/random: after it was initially backed out of 5.18, we made it instead "opportunistically the same". It tries to be the same on platforms where it can, 5/9
without hindering platforms where it can't. With 5.19, plumbing work on several architectures has been done and fallback clock sources have been wired in, so that the number of platforms where /dev/urandom and /dev/random aren't the same 6/9
is very small. This means probably the platform you're running on has a unified /dev/random and /dev/urandom for all intents and purposes. And if 5.19 is relatively smooth sailing, we may revisit full unification down the road. 7/9
Check the pull request for a full summary, and for full details, some of the commit messages tend to be rather lengthy and detailed: git.kernel.org/pub/scm/linux/… 8/9
Finally, if you've ever wondered in the first place how the RNG works, the code should be ~short and readable: git.kernel.org/pub/scm/linux/… 9/9
Addendum a few days later: looks like Linus merged the changes - git.kernel.org/pub/scm/linux/… Image

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Edge Security

Edge Security Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(