[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190917153620.GG6762@mit.edu>
Date: Tue, 17 Sep 2019 11:36:20 -0400
From: "Theodore Y. Ts'o" <tytso@....edu>
To: Laurent Vivier <lvivier@...hat.com>
Cc: linux-kernel@...r.kernel.org, Amit Shah <amit@...nel.org>,
linux-crypto@...r.kernel.org, Matt Mackall <mpm@...enic.com>,
Herbert Xu <herbert@...dor.apana.org.au>
Subject: Re: [PATCH] hw_random: don't wait on add_early_randomness()
On Tue, Sep 17, 2019 at 11:54:50AM +0200, Laurent Vivier wrote:
> add_early_randomness() is called by hwrng_register() when the
> hardware is added. If this hardware and its module are present
> at boot, and if there is no data available the boot hangs until
> data are available and can't be interrupted.
>
> To avoid that, call rng_get_data() in non-blocking mode (wait=0)
> from add_early_randomness().
>
> Signed-off-by: Laurent Vivier <lvivier@...hat.com>
Looks good, you can add:
Reviewed-by: Theodore Ts'o <tytso@....edu>
Powered by blists - more mailing lists