prandom fixes/improvements
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest6 patches 12 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | random32: fix off-by-one in seeding requirementinclude/ lib/ | +10 | 0 replies | |
| 2/6 | random32: add periodic reseedinglib/ | +23 | 0 replies | |
| 3/6 | random32: add prandom_reseed_late() and call when nonblocking pool becomes initializeddrivers/ include/ lib/ | +27 | 19 replies | |
| 4/6 | random32: move rnd_state to linux/random.hinclude/ include/ | +4 | 0 replies | |
| 5/6 | random32: upgrade taus88 generator to taus113 from errata paperinclude/ lib/ | +52 | 0 replies | |
| 6/6 | random32: add test cases for taus113 implementationlib/ lib/ | +196 | 0 replies |
Reviews trailers per patch
1 of 6 patches has a Reviewed-by or Acked-by.
| Patch | Theodore Ts'o |
|---|---|
| 1/6 | |
| 2/6 | |
| 3/6 | A-b |
| 4/6 | |
| 5/6 | |
| 6/6 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH net-next 0/6] prandom fixes/improvements
Hi Dave,
It would be great if you could still consider this series that fixes and improves prandom for 3.13. We have sent it to netdev as prandom() originally came from net/core/utils.c and networking is its main user. For a detailled description, please see individual patches.
For patch 3 in this series, there will be a minor merge conflict with the random tree that is for 3.13. See below how to resolve it.
====
Hannes says: on merge with the random tree I would suggest to resolve the conflict in drivers/char/random.c like this:
if (r->entropy_total > 128) {
r->initialized = 1;
r->entropy_total = 0;
if (r == &nonblocking_pool) {
prandom_reseed_late();
pr_notice("random: %s pool is initialized\n",
r->name);
}
}So it won't generate a warning if DEBUG_RANDOM_BOOT gets activated.
====
Patch 1 should probably also go to -stable.
Set tested on 32 and 64 bit machines.
Thanks a lot!
Ref. original discussion: http://patchwork.ozlabs.org/patch/289951/
Daniel Borkmann (4):
random32: fix off-by-one in seeding requirement
random32: move rnd_state to linux/random.h
random32: upgrade taus88 generator to taus113 from errata paper
random32: add test cases for taus113 implementation
Hannes Frederic Sowa (2):
random32: add periodic reseeding
random32: add prandom_reseed_late() and call when nonblocking pool
becomes initialized
drivers/char/random.c | 5 +- include/linux/random.h | 14 +- include/uapi/linux/random.h | 7 - lib/Kconfig | 7 + lib/random32.c | 307 +++++++++++++++++++++++++++++++++++++++----- 5 files changed, 294 insertions(+), 46 deletions(-)
Signature · 1 line
1.8.3.1