Really fixing getrandom()
Really fixing getrandom()
Posted Oct 17, 2019 19:53 UTC (Thu) by azumanga (subscriber, #90158)Parent article: Really fixing getrandom()
Making sure getrandom() gets initialised seems like a sensible thing to do, and doing it from when the kernel starts (or as early as is reasonable), while the kernel is setting up hardware / running other activities, will increase the randomness and avoid the delay. I can't imagine the overhead introduced will be measurable.
Posted Oct 18, 2019 12:36 UTC (Fri)
by Funcan (subscriber, #44209)
[Link] (1 responses)
Posted Oct 18, 2019 12:59 UTC (Fri)
by smurf (subscriber, #17840)
[Link]
Posted Oct 18, 2019 13:20 UTC (Fri)
by ebiederm (subscriber, #35028)
[Link]
The problem is when those mechanisms that we have lots of confidence in don't always provide randomness in a timely manner.
What has been added is something that we have slightly less confidence in that the kernel performs on-demand.
This allows userspace to rely on the kernel to always do the best that it is possible to do in collecting
Really fixing getrandom()
Really fixing getrandom()
Really fixing getrandom()
randomness. Which keeps systems booting and hopefully prevents the generation of predictable long term keys.