android_kernel_motorola_sm6375/arch
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jason A. Donenfeld 9bfbcb37e5 xtensa: use fallback for random_get_entropy() instead of zero
commit e10e2f58030c5c211d49042a8c2a1b93d40b2ffb 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 <[email protected]>
Cc: Arnd Bergmann <[email protected]>
Acked-by: Max Filippov <[email protected]>
Signed-off-by: Jason A. Donenfeld <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2022-06-22 14:11:15 +02:00
..
alpha alpha: define get_cycles macro for arch-override 2022-06-22 14:11:14 +02:00
arc ARC: entry: fix syscall_trace_exit argument 2022-04-27 13:50:49 +02:00
arm arm: use fallback for random_get_entropy() instead of zero 2022-06-22 14:11:15 +02:00
arm64 bpf, arm64: Clear prog->jited_len along prog->jited 2022-06-14 18:11:57 +02:00
c6x
csky perf: Protect perf_guest_cbs with RCU 2022-01-20 09:19:18 +01:00
h8300
hexagon hexagon: export raw I/O routines for modules 2021-11-26 10:47:21 +01:00
ia64 ia64: define get_cycles macro for arch-override 2022-06-22 14:11:14 +02:00
m68k m68k: use fallback for random_get_entropy() instead of zero 2022-06-22 14:11:15 +02:00
microblaze uaccess: fix nios2 and microblaze get_user_8() 2022-04-15 14:18:08 +02:00
mips mips: use fallback for random_get_entropy() instead of just c0 random 2022-06-22 14:11:15 +02:00
nds32 nds32: fix access_ok() checks in get/put_user 2022-03-28 08:46:48 +02:00
nios2 nios2: use fallback for random_get_entropy() instead of zero 2022-06-22 14:11:15 +02:00
openrisc openrisc: start CPU timer early in boot 2022-06-14 18:11:28 +02:00
parisc parisc: define get_cycles macro for arch-override 2022-06-22 14:11:14 +02:00
powerpc powerpc: define get_cycles macro for arch-override 2022-06-22 14:11:15 +02:00
riscv riscv module: remove (NOLOAD) 2022-04-15 14:18:31 +02:00
s390 s390: define get_cycles macro for arch-override 2022-06-22 14:11:14 +02:00
sh sh: define __BIG_ENDIAN for math-emu 2021-11-26 10:47:17 +01:00
sparc sparc: use fallback for random_get_entropy() instead of zero 2022-06-22 14:11:15 +02:00
um um: use fallback for random_get_entropy() instead of zero 2022-06-22 14:11:15 +02:00
unicore32
x86 x86/tsc: Use fallback for random_get_entropy() instead of zero 2022-06-22 14:11:15 +02:00
xtensa xtensa: use fallback for random_get_entropy() instead of zero 2022-06-22 14:11:15 +02:00
.gitignore
Kconfig