linux-stable/arch/m68k
Jason A. Donenfeld fb4434de3b m68k: use fallback for random_get_entropy() instead of zero
commit 0f392c9539 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.

Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Arnd Bergmann <arnd@arndb.de>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-06-25 11:45:13 +02:00
..
68000 m68k: Use vsprintf %pM extension 2015-06-16 16:45:38 +10:00
amiga m68k: Call timer_interrupt() with interrupts disabled 2020-01-29 10:24:36 +01:00
apollo char/genrtc: remove m68k support 2016-06-04 00:23:28 +02:00
atari m68k: Call timer_interrupt() with interrupts disabled 2020-01-29 10:24:36 +01:00
bvme6000 m68k: Call timer_interrupt() with interrupts disabled 2020-01-29 10:24:36 +01:00
coldfire m68k: set dma and coherent masks for platform FEC ethernets 2018-05-30 07:50:43 +02:00
configs m68k/defconfig: Update defconfigs for v4.9-rc1 2016-10-30 10:13:19 +01:00
emu m68k: emu: Fix invalid free in nfeth_cleanup() 2021-09-22 11:42:59 +02:00
fpsp040
hp300 m68k: Call timer_interrupt() with interrupts disabled 2020-01-29 10:24:36 +01:00
ifpsp060 m68k: Assorted spelling fixes 2016-07-03 14:05:28 +02:00
include m68k: use fallback for random_get_entropy() instead of zero 2022-06-25 11:45:13 +02:00
kernel m68k: fix command-line parsing when passed from u-boot 2019-11-28 18:28:22 +01:00
lib m68k: move exports to definitions 2016-08-07 23:47:19 -04:00
mac m68k: mac: Fix IOP status/control register writes 2020-08-21 11:01:57 +02:00
math-emu m68k: Assorted spelling fixes 2016-07-03 14:05:28 +02:00
mm m68k/mm: Adjust VM area to be unmapped by gap size for __iounmap() 2018-07-03 11:23:05 +02:00
mvme16x m68k: Call timer_interrupt() with interrupts disabled 2020-01-29 10:24:36 +01:00
mvme147 m68k: Call timer_interrupt() with interrupts disabled 2020-01-29 10:24:36 +01:00
q40 m68k: q40: Fix info-leak in rtc_ioctl 2020-10-01 20:40:01 +02:00
sun3 m68k: Call timer_interrupt() with interrupts disabled 2020-01-29 10:24:36 +01:00
sun3x m68k: Call timer_interrupt() with interrupts disabled 2020-01-29 10:24:36 +01:00
tools/amiga
Kconfig m68k: move CONFIG_FPU set to per-CPU configuration 2016-09-26 12:02:58 +10:00
Kconfig.bus
Kconfig.cpu m68k: math-emu: Fix dependencies of math emulation support 2022-06-14 16:52:32 +02:00
Kconfig.debug m68knommu: remove obsolete 68360 support 2016-03-07 10:07:17 +10:00
Kconfig.devices
Kconfig.machine m68knommu: fix undefined reference to `_init_sp' 2022-06-14 16:52:38 +02:00
Makefile m68k: Add -ffreestanding to CFLAGS 2019-03-23 13:19:47 +01:00
install.sh