Re: Hashed pointer issues

From: Linus Torvalds
Date: Mon Apr 30 2018 - 16:01:32 EST


On Mon, Apr 30, 2018 at 12:16 PM Kees Cook <keescook@xxxxxxxxxxxx> wrote:

> I just noticed: there are _no_ users of get_random_bytes_arch() ...
> didn't we once use it to feed entropy to the CRNG?

We use arch_get_random_long() for that. See "crng_initialize()".

But if there are no actual users of get_random_bytes_arch(), maybe we can
just remove the fallback to the non-arch code, and add that return value
(and the __must_check()).

Linus