getrandom() In The vDSO Aims For Linux 6.11 To Provide Faster Yet Secure User-Space RNG

Written by Michael Larabel in Linux Security on 3 July 2024 at 04:00 PM EDT. Add A Comment
In the making the past two years by developer Jason Donenfeld (of WireGuard fame) is adding getrandom() to the vDSO in the name of better performance. In some tests this has yielded as much as a ~15x speed-up to performance for user-space obtaining crypographically secure random number generation. It's looking like for the upcoming Linux 6.11 merge window, this work will finally be merged.

Recently there's been renewed work by Jason Donenfeld in getting getrandom() in the vDSO over the finish line. As noted last month the latest code has been looking good and hopeful and it continues looking that way with the "v20" patches sent out today.


Donenfeld reaffirmed his intent on submitting these getrandom() in the vDSO patches for the upcoming Linux 6.11 merge window. The plan at this point is merging it in through his random.git tree for the Linux 6.11 kernel. The v20 patches are now out on the Linux kernel mailing list.

More details on the implementation can be found via this patch message.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via

Popular News This Week