An error occurred while fetching folder content.
timekeeping: Add raw clock fallback for random_get_entropy()
Jason A. Donenfeld authored
commit 1366992e upstream.

The addition of random_get_entropy_fallback() provides access to
whichever time source has the highest frequency, which is useful for
gathering entropy on platforms without available cycle counters. It's
not necessarily as good as being able to quickly access a cycle counter
that the CPU has, but it's still something, even when it falls back to
being jiffies-based.

In the event that a given arch does not define get_cycles(), falling
back to the get_cycles() default implementation that returns 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....
9aaae713
Name Last commit Last update
..
bpf bpf: Adjust BPF stack helper functions to accommodate skip > 0
cgroup cgroup/cpuset: Remove cpus_allowed/mems_allowed setup in cpuset_init_smp()
configs configs/debug: restore DEBUG_INFO=y for overriding
debug lockdown: also lock down previous kgdb use
dma dma-direct: avoid redundant memory sync for swiotlb
entry entry: Snapshot thread flags
events perf: Fix sys_perf_event_open() race against self
futex Merge branch 'signal-for-v5.17' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace
gcov gcov: Remove compiler version check
irq genirq: Remove WARN_ON_ONCE() in generic_handle_domain_irq()
kcsan Merge tag 'kcsan.2022.01.09a' of git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu
livepatch livepatch: Fix build failure on 32 bits processors
locking locking/lockdep: Iterate lock_classes directly when reading lockdep files
power PM: suspend: fix return value of __setup handler
printk printk: fix return value of printk.devkmsg __setup handler
rcu rcu: Mark writes to the rcu_segcblist structure's ->flags field
sched sched/pelt: Fix attach_entity_load_avg() corner case
time timekeeping: Add raw clock fallback for random_get_entropy()
trace tracing: Have type enum modifications copy the strings
.gitignore .gitignore: prefix local generated files with a slash
Kconfig.freezer treewide: Add SPDX license identifier - Makefile/Kconfig
Kconfig.hz treewide: Add SPDX license identifier - Makefile/Kconfig
Kconfig.locks locking/rwlock: Provide RT variant
Kconfig.preempt preempt: Restore preemption model selection configs
Makefile static_call: Don't make __static_call_return0 static
acct.c
async.c
audit.c
audit.h
audit_fsnotify.c
audit_tree.c
audit_watch.c
auditfilter.c
auditsc.c
backtracetest.c
bounds.c
capability.c
cfi.c
compat.c
configs.c
context_tracking.c
cpu.c
cpu_pm.c
crash_core.c
crash_dump.c
cred.c
delayacct.c
dma.c
exec_domain.c
exit.c
extable.c
fail_function.c
fork.c
freezer.c
gen_kheaders.sh
groups.c
hung_task.c
iomem.c
irq_work.c
jump_label.c
kallsyms.c
kcmp.c
kcov.c
kexec.c
kexec_core.c
kexec_elf.c
kexec_file.c
kexec_internal.h
kheaders.c
kmod.c
kprobes.c
ksysfs.c
kthread.c
latencytop.c
module-internal.h
module.c
module_decompress.c
module_signature.c
module_signing.c
notifier.c
nsproxy.c
padata.c
panic.c
params.c
pid.c
pid_namespace.c
profile.c
ptrace.c
range.c
reboot.c
regset.c
relay.c
resource.c
resource_kunit.c
rseq.c
scftorture.c
scs.c
seccomp.c
signal.c
smp.c