Skip to content

random pt3: More core and accounting cleanups

Matt Mackall lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12random pt3: More meaningful pool namesdrivers/char/random.c+49 -500 replies
2/12random pt3: Static allocation of poolsdrivers/char/random.c+79 -1240 replies
3/12random pt3: Static sysctl bitsdrivers/char/random.c+6 -240 replies
4/12random pt3: Catastrophic reseed checksdrivers/char/random.c+23 -140 replies
5/12random pt3: Entropy reservation accountingdrivers/char/random.c+17 -130 replies
6/12random pt3: Reservation flag in pool structdrivers/char/random.c+9 -170 replies
7/12random pt3: Reseed pointer in pool structdrivers/char/random.c+9 -130 replies
8/12random pt3: Break up extract_userdrivers/char/random.c+107 -830 replies
9/12random pt3: Remove dead MD5 copydrivers/char/random.c+8 -1450 replies
10/12random pt3: Simplify hash foldingdrivers/char/random.c+3 -80 replies
11/12random pt3: Clean up hash bufferingdrivers/char/random.c+19 -170 replies
12/12random pt3: Remove entropy batchingdrivers/char/random.c+17 -1340 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/12] random pt3: More core and accounting cleanups

This is a third series of various cleanups for drivers/char/random.c. It applies on top of the previous 10.

These bits greatly simplify the setup:

1  More meaningful pool names
2  Static allocation of pools
3  Static sysctl bits

These bits make the accounting safer and the code easier to follow:

4  Catastrophic reseed checks
5  Entropy reservation accounting
6  Reservation flag in pool struct
7  Reseed pointer in pool struct
8  Break up extract_user

These bits clean up the hashing functions:
9 Remove dead MD5 copy
10 Simplify hash folding
11 Clean up hash buffering

This bit drops a bunch of code and reduces lock hold times:
12 Remove entropy batching

The next series focuses on moving and sharing code more appropriately.