Re: [PATCH] random: use init_utsname() instead of utsname()

From: Kees Cook
Date: Tue Sep 27 2022 - 10:17:24 EST


On Tue, Sep 27, 2022 at 11:29:20AM +0200, Jason A. Donenfeld wrote:
> Rather than going through the current-> indirection for utsname, at this
> point in boot, init_utsname()==utsname(), so just use it directly that
> way. Additionally, init_utsname() appears to be available nearly always,
> so move it into random_init_early().
>
> Suggested-by: Kees Cook <keescook@xxxxxxxxxxxx>
> Signed-off-by: Jason A. Donenfeld <Jason@xxxxxxxxx>

Reviewed-by: Kees Cook <keescook@xxxxxxxxxxxx>

--
Kees Cook