Re: [PATCH RFC v2 5/8] security/keys: ensure RNG is seeded before use

From: Jason A. Donenfeld
Date: Mon Jun 05 2017 - 19:18:23 EST


On Mon, Jun 5, 2017 at 5:47 AM, Jason A. Donenfeld <Jason@xxxxxxxxx> wrote:
> - get_random_bytes(&key->serial, sizeof(key->serial));
> + ret = get_random_bytes_wait(&key->serial, sizeof(key->serial));

This actually isn't okay at bootup, but I've got a different change
for this section that will be in the v3.