Conrad Meyer 3782136ff1 random(4): Restore availability tradeoff prior to r346250
As discussed in that commit message, it is a dangerous default.  But the
safe default causes enough pain on a variety of platforms that for now,
restore the prior default.

Some of this is self-induced pain we should/could do better about; for
example, programmatic CI systems and VM managers should introduce entropy
from the host for individual VM instances.  This is considered a future work
item.

On modern x86 and Power9 systems, this may be wholly unnecessary after
D19928 lands (even in the non-ideal case where early /boot/entropy is
unavailable), because they have fast hardware random sources available early
in boot.  But D19928 is not yet landed and we have a host of architectures
which do not provide fast random sources.

This change adds several tunables and diagnostic sysctls, documented
thoroughly in UPDATING and sys/dev/random/random_infra.c.

PR:		230875 (reopens)
Reported by:	adrian, jhb, imp, and probably others
Reviewed by:	delphij, imp (earlier version), markm (earlier version)
Discussed with:	adrian
Approved by:	secteam(delphij)
Relnotes:	yeah
Security:	related
Differential Revision:	https://reviews.freebsd.org/D19944
2019-04-18 20:48:54 +00:00
..
2019-03-20 17:27:00 +00:00
2018-07-07 15:55:52 +00:00
2019-02-25 21:59:01 +00:00
2019-01-25 21:38:28 +00:00
2018-10-15 18:39:33 +00:00
2018-06-15 02:28:36 +00:00
2019-03-19 14:34:53 +00:00
2019-02-19 19:37:02 +00:00
2019-02-04 21:28:25 +00:00
2018-12-17 21:34:09 +00:00
2019-03-20 17:27:00 +00:00
2019-04-02 04:12:06 +00:00
2018-03-14 18:27:06 +00:00
2018-08-07 17:13:42 +00:00
2018-08-21 10:08:12 +00:00
2019-04-10 20:44:54 +00:00
2017-11-30 20:33:45 +00:00
2019-02-22 19:54:28 +00:00
2019-01-08 05:41:04 +00:00
2019-02-05 21:37:34 +00:00
2019-03-11 14:26:45 +00:00
2017-11-30 20:33:45 +00:00
2018-04-13 20:30:49 +00:00
2019-02-05 21:37:34 +00:00
2018-09-26 19:41:00 +00:00
2019-02-05 21:37:34 +00:00
2018-07-27 10:40:48 +00:00
2019-03-20 17:21:17 +00:00
2019-02-04 21:28:25 +00:00
2019-04-16 02:46:21 +00:00
2019-04-15 17:32:38 +00:00
2019-04-12 18:54:09 +00:00
2018-01-03 00:56:30 +00:00
2018-01-13 16:31:07 +00:00
2019-02-26 19:55:03 +00:00