]> git.baikalelectronics.ru Git - kernel.git/commit
Merge tag '20201024-v4-5.10' of git://git.kernel.org/pub/scm/linux/kernel/git/wtarrea...
authorLinus Torvalds <torvalds@linux-foundation.org>
Sun, 25 Oct 2020 17:40:08 +0000 (10:40 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 25 Oct 2020 17:40:08 +0000 (10:40 -0700)
commit23946af536d621dacb56372dfe7276a1b2b244c1
treee095a831ada79f835d1d9310df529007665a498e
parentaa10da6a6150e2a3c982f90f71f45f2624121023
parent29d9364cf54d5b4ab09fa20edf90f5a3dd2865cf
Merge tag '20201024-v4-5.10' of git://git.kernel.org/pub/scm/linux/kernel/git/wtarreau/prandom

Pull random32 updates from Willy Tarreau:
 "Make prandom_u32() less predictable.

  This is the cleanup of the latest series of prandom_u32
  experimentations consisting in using SipHash instead of Tausworthe to
  produce the randoms used by the network stack.

  The changes to the files were kept minimal, and the controversial
  commit that used to take noise from the fast_pool (d1b61c3d6f0c) was
  reverted. Instead, a dedicated "net_rand_noise" per_cpu variable is
  fed from various sources of activities (networking, scheduling) to
  perturb the SipHash state using fast, non-trivially predictable data,
  instead of keeping it fully deterministic. The goal is essentially to
  make any occasional memory leakage or brute-force attempt useless.

  The resulting code was verified to be very slightly faster on x86_64
  than what is was with the controversial commit above, though this
  remains barely above measurement noise. It was also tested on i386 and
  arm, and build- tested only on arm64"

Link: https://lore.kernel.org/netdev/20200808152628.GA27941@SDF.ORG/
* tag '20201024-v4-5.10' of git://git.kernel.org/pub/scm/linux/kernel/git/wtarreau/prandom:
  random32: add a selftest for the prandom32 code
  random32: add noise from network and scheduling activity
  random32: make prandom_u32() output unpredictable