Jason A. Donenfeld
e1ea0e26d3
sparc: use fallback for random_get_entropy() instead of zero
...
commit ac9756c79797bb98972736b13cfb239fd2cffb79 upstream.
In the event that random_get_entropy() can't access a cycle counter or
similar, falling back to returning 0 is really not the best we can do.
Instead, at least calling random_get_entropy_fallback() would be
preferable, because that always needs to return _something_, even
falling back to jiffies eventually. It's not as though
random_get_entropy_fallback() is super high precision or guaranteed to
be entropic, but basically anything that's not zero all the time is
better than returning zero all the time.
This is accomplished by just including the asm-generic code like on
other architectures, which means we can get rid of the empty stub
function here.
Cc: Thomas Gleixner <tglx@linutronix.de >
Cc: Arnd Bergmann <arnd@arndb.de >
Cc: David S. Miller <davem@davemloft.net >
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2022-05-30 09:33:42 +02:00
..
2019-06-19 17:09:52 +02:00
2018-03-18 07:38:46 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2009-12-12 13:08:14 +01:00
2017-12-04 18:03:39 -05:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2020-07-29 16:14:18 +02:00
2020-07-29 16:14:18 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-17 20:21:44 -08:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-02-21 15:35:43 -08:00
2017-11-02 11:10:55 +01:00
2020-10-25 14:51:49 -07:00
2020-06-08 11:05:57 -07:00
2020-06-08 11:05:57 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2020-08-20 15:45:21 -04:00
2020-08-20 15:45:21 -04:00
2020-08-20 15:45:21 -04:00
2017-11-02 11:10:55 +01:00
2008-07-27 23:00:59 +02:00
2017-11-15 14:21:03 +09:00
2017-11-17 20:21:44 -08:00
2018-10-26 15:39:49 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2020-09-17 13:00:46 -04:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-10-14 20:19:31 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-06-05 17:37:16 +02:00
2020-04-02 18:11:55 -07:00
2018-12-11 14:45:29 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2008-07-27 23:00:59 +02:00
2017-11-02 11:10:55 +01:00
2018-03-18 07:38:46 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2020-06-09 09:39:13 -07:00
2020-05-12 19:34:53 +03:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2008-07-27 23:00:59 +02:00
2020-03-27 23:58:52 -04:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-05-14 11:25:28 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2020-06-09 09:39:13 -07:00
2020-06-03 20:09:46 -07:00
2017-11-02 11:10:55 +01:00
2008-07-27 23:00:59 +02:00
2018-03-18 07:38:45 -07:00
2020-08-07 11:33:26 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2020-10-05 09:44:41 +01:00
2020-01-06 09:45:59 +01:00
2020-06-09 09:39:13 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-05-09 06:54:27 +02:00
2018-05-09 06:54:27 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2021-01-12 20:18:16 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-06-21 12:33:11 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-12-28 14:12:21 -08:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2021-03-17 17:06:24 +01:00
2017-11-02 11:10:55 +01:00
2018-03-18 07:38:48 -07:00
2017-11-02 11:10:55 +01:00
2018-03-18 07:38:48 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2020-05-13 15:32:00 -07:00
2020-04-10 15:36:21 -07:00
2017-11-02 11:10:55 +01:00
2018-11-18 13:35:21 -08:00
2017-11-02 11:10:55 +01:00
2019-08-08 15:12:07 -05:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2020-07-10 12:00:01 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2020-06-09 09:39:13 -07:00
2020-06-09 09:39:14 -07:00
2017-11-02 11:10:55 +01:00
2020-06-09 09:39:14 -07:00
2020-06-09 09:39:14 -07:00
2017-11-02 11:10:55 +01:00
2020-05-13 15:32:00 -07:00
2017-11-02 11:10:55 +01:00
2018-10-31 08:54:12 -07:00
2018-10-31 08:54:12 -07:00
2017-11-02 11:10:55 +01:00
2019-05-30 11:26:32 -07:00
2017-11-02 11:10:55 +01:00
2017-11-07 10:32:44 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2014-05-18 19:01:28 -07:00
2008-07-27 23:00:59 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2020-08-12 10:57:57 -07:00
2017-11-07 10:32:44 +01:00
2017-11-07 10:32:44 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2020-03-25 10:19:43 +09:00
2020-03-25 10:19:43 +09:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-10-26 15:04:41 -07:00
2017-11-02 11:10:55 +01:00
2019-05-07 19:06:04 -07:00
2020-06-23 10:49:54 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-01-09 23:21:02 +00:00
2018-10-22 16:09:27 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2020-08-06 16:13:13 +02:00
2017-11-02 11:10:55 +01:00
2022-05-30 09:33:42 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-04-03 10:32:54 +02:00
2020-08-07 11:33:26 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-17 16:10:04 -08:00
2017-11-02 11:10:55 +01:00
2020-07-10 12:00:01 +02:00
2017-11-02 11:10:55 +01:00
2017-11-17 20:21:44 -08:00
2017-11-02 11:10:55 +01:00
2018-03-18 07:38:45 -07:00
2017-11-02 11:10:55 +01:00
2020-08-12 10:57:58 -07:00
2020-08-12 10:57:58 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-02-07 00:13:28 +01:00
2017-11-02 11:10:55 +01:00
2019-05-21 11:28:45 +02:00
2008-07-27 23:00:59 +02:00
2017-11-02 11:10:55 +01:00
2018-10-25 10:36:19 -07:00
2017-11-02 11:10:55 +01:00
2020-05-13 15:32:00 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-12-10 10:12:55 +01:00
2020-08-06 16:13:13 +02:00
2017-11-02 11:10:55 +01:00
2019-05-24 17:27:13 +02:00
2019-05-24 17:27:13 +02:00
2017-11-02 11:10:55 +01:00