linux-sg2042/arch
Jason A. Donenfeld 0f392c9539 m68k: use fallback for random_get_entropy() instead of zero
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>
2022-05-13 23:59:23 +02:00
..
alpha alpha: define get_cycles macro for arch-override 2022-05-13 23:59:23 +02:00
arc ARC: remove redundant READ_ONCE() in cmpxchg loop 2022-04-18 14:47:05 -07:00
arm ARM: SoC fixes for 5.18, part 3 2022-04-29 15:51:05 -07:00
arm64 ARM: 2022-05-01 11:49:32 -07:00
csky ptrace: Cleanups for v5.18 2022-03-28 17:29:53 -07:00
h8300 Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2022-04-01 19:57:03 -07:00
hexagon ptrace: Cleanups for v5.18 2022-03-28 17:29:53 -07:00
ia64 ia64: define get_cycles macro for arch-override 2022-05-13 23:59:22 +02:00
m68k m68k: use fallback for random_get_entropy() instead of zero 2022-05-13 23:59:23 +02:00
microblaze Kbuild updates for v5.18 2022-03-31 11:59:03 -07:00
mips MIPS: Fix CP0 counter erratum detection for R4k CPUs 2022-04-29 15:52:00 +02:00
nios2 ptrace: Cleanups for v5.18 2022-03-28 17:29:53 -07:00
openrisc openrisc: start CPU timer early in boot 2022-05-13 23:59:23 +02:00
parisc parisc: define get_cycles macro for arch-override 2022-05-13 23:59:23 +02:00
powerpc powerpc: define get_cycles macro for arch-override 2022-05-13 23:59:23 +02:00
riscv RISC-V Fix for 5.18-rc6 2022-05-06 11:30:59 -07:00
s390 s390: define get_cycles macro for arch-override 2022-05-13 23:59:23 +02:00
sh Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2022-04-01 19:57:03 -07:00
sparc sparc: cacheflush_32.h needs struct page 2022-04-23 09:27:17 -07:00
um Kbuild fixes for v5.18 2022-04-02 12:33:31 -07:00
x86 A fix and an email address update: 2022-05-08 11:21:54 -07:00
xtensa xtensa: fix a7 clobbering in coprocessor context load/store 2022-04-15 18:44:02 -07:00
.gitignore
Kconfig vmalloc: replace VM_NO_HUGE_VMAP with VM_ALLOW_HUGE_VMAP 2022-04-19 12:08:57 -07:00