Re: [PING][PATCH v3] x86: Use `get_random_u8' for kernel stack offset randomization

From: Jason A. Donenfeld
Date: Wed Feb 22 2023 - 11:44:29 EST


On Tue, Feb 14, 2023 at 9:43 PM H. Peter Anvin <hpa@xxxxxxxxx> wrote:
> No, I do indeed agree. We're talking something that is a part of an operation that is already fairly expensive. Now, if RDRAND is available on the hardware then that could be used if someone really wants it to go faster... but get_random_*() seems saner than doing ad hoc hacks.

Do you want to go ahead and apply Maciej's patch in [1] then?

[1] https://lore.kernel.org/lkml/alpine.DEB.2.21.2301302011150.55843@xxxxxxxxxxxxxxxxx/