Skip to content

Use RNG to get random behaviour

matthias.bgg at kernel.org u-boot 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 1 replyIn review
  2. v22 patches 0 repliesSuperseded
  3. v12 patches 0 repliesSuperseded

Changes in v3 from the cover letter

- use IS_ENABLED instead of #if
- use 4 byte for entropy
- use IS_ENABLED instead of #if

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2lib: uuid: use RNG device if presentlib/uuid.c+18 -33 replies
2/2net: Use NDRNG device in srand_mac()net/net_rand.h+18 -12 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchTorsten Duwe
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/2] Use RNG to get random behaviour

From: Matthias Brugger <[email protected]>

For now bootp and uuid code use a weak seed for generating random data. U-Boot as support for RNG devices now, so we should change to code to use them if they are present. This will help mitigate issues like seen in CVE-2019-11690.

Changes in v3:
- use IS_ENABLED instead of #if
- use 4 byte for entropy
- use IS_ENABLED instead of #if

Changes in v2:
- fix dm_rng_read() parameters
- add missing include
- fix dm_rng_read() parameters
- add missing include file

Matthias Brugger (2):
lib: uuid: use RNG device if present
net: Use NDRNG device in srand_mac()

 lib/uuid.c     | 21 ++++++++++++++++++---
 net/net_rand.h | 19 ++++++++++++++++++-
 2 files changed, 36 insertions(+), 4 deletions(-)
Signature · 1 line
2.29.2