freebsd-dev/sys/arm
Conrad Meyer f8e8a06d23 random(4) FenestrasX: Push root seed version to arc4random(3)
Push the root seed version to userspace through the VDSO page, if
the RANDOM_FENESTRASX algorithm is enabled.  Otherwise, there is no
functional change.  The mechanism can be disabled with
debug.fxrng_vdso_enable=0.

arc4random(3) obtains a pointer to the root seed version published by
the kernel in the shared page at allocation time.  Like arc4random(9),
it maintains its own per-process copy of the seed version corresponding
to the root seed version at the time it last rekeyed.  On read requests,
the process seed version is compared with the version published in the
shared page; if they do not match, arc4random(3) reseeds from the
kernel before providing generated output.

This change does not implement the FenestrasX concept of PCPU userspace
generators seeded from a per-process base generator.  That change is
left for future discussion/work.

Reviewed by:	kib (previous version)
Approved by:	csprng (me -- only touching FXRNG here)
Differential Revision:	https://reviews.freebsd.org/D22839
2020-10-10 21:52:00 +00:00
..
allwinner aw_pwm: add a check and some comments related to long periods 2020-09-25 07:41:51 +00:00
altera/socfpga arm: clean up empty lines in .c and .h files 2020-09-01 21:17:24 +00:00
amlogic/aml8726 arm: clean up empty lines in .c and .h files 2020-09-01 21:17:24 +00:00
annapurna/alpine arm: clean up empty lines in .c and .h files 2020-09-01 21:17:24 +00:00
arm random(4) FenestrasX: Push root seed version to arc4random(3) 2020-10-10 21:52:00 +00:00
broadcom/bcm2835 bcm2838_pci.c: Respect DMA limits of controller. 2020-09-12 23:49:43 +00:00
cloudabi32 Get rid of sa->narg. It serves no purpose; use sa->callp->sy_narg instead. 2020-09-27 18:47:06 +00:00
conf Create in-tree LINT files 2020-10-09 01:48:14 +00:00
freescale arm: clean up empty lines in .c and .h files 2020-09-01 21:17:24 +00:00
include Get rid of sa->narg. It serves no purpose; use sa->callp->sy_narg instead. 2020-09-27 18:47:06 +00:00
linux Regen after r366145. 2020-09-25 10:05:38 +00:00
mv arm: clean up empty lines in .c and .h files 2020-09-01 21:17:24 +00:00
nvidia arm: clean up empty lines in .c and .h files 2020-09-01 21:17:24 +00:00
qemu arm: Add kern_clocksource.c directly in files.arm 2019-04-16 20:04:22 +00:00
rockchip arm: clean up empty lines in .c and .h files 2020-09-01 21:17:24 +00:00
samsung/exynos arm: clean up empty lines in .c and .h files 2020-09-01 21:17:24 +00:00
ti arm: clean up empty lines in .c and .h files 2020-09-01 21:17:24 +00:00
versatile arm: clean up empty lines in .c and .h files 2020-09-01 21:17:24 +00:00
xilinx arm: clean up empty lines in .c and .h files 2020-09-01 21:17:24 +00:00