linux/arch
Jason A. Donenfeld e10e2f5803 xtensa: 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.

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>
Acked-by: Max Filippov <jcmvbkbc@gmail.com>
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: use fallback for random_get_entropy() instead of zero 2022-05-13 23:59:23 +02: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: use fallback for random_get_entropy() instead of just c0 random 2022-05-13 23:59:23 +02:00
nios2 nios2: use fallback for random_get_entropy() instead of zero 2022-05-13 23:59:23 +02: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 riscv: use fallback for random_get_entropy() instead of zero 2022-05-13 23:59:23 +02: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: use fallback for random_get_entropy() instead of zero 2022-05-13 23:59:23 +02:00
um um: use fallback for random_get_entropy() instead of zero 2022-05-13 23:59:23 +02:00
x86 x86/tsc: Use fallback for random_get_entropy() instead of zero 2022-05-13 23:59:23 +02:00
xtensa xtensa: use fallback for random_get_entropy() instead of zero 2022-05-13 23:59:23 +02:00
.gitignore
Kconfig vmalloc: replace VM_NO_HUGE_VMAP with VM_ALLOW_HUGE_VMAP 2022-04-19 12:08:57 -07:00