Skip to content

random: wire up in-kernel virtual machine fork notifications

Jason A. Donenfeld linux-crypto lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3random: replace custom notifier chain with standard onedrivers/char/random.c include/linux/random.h lib/random32.c +1 more+35 -653 replies
2/3random: provide notifier for VM forkdrivers/char/random.c include/linux/random.h+20 -02 replies
3/3wireguard: device: clear keys on VM forkdrivers/net/wireguard/device.c+14 -135 replies

Reviews trailers per patch

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

PatchJakub KicinskiDominik BrodowskiGreg Kroah-Hartman
1/3R-b
2/3R-b
3/3A-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 0/3] random: wire up in-kernel virtual machine fork notifications

As discussed, here is the notifier for learning when a virtual machine forks, as well as a first use case for it, which is unsurprisingly WireGuard, since I happen to know that case rather well.

The first patch is a small cleanup discovered when working on the second patch, which is adding the actual notifier. The third case then trivially adds it to WireGuard.

Jason A. Donenfeld (3):
random: replace custom notifier chain with standard one
random: provide notifier for VM fork
wireguard: device: clear keys on VM fork

 drivers/char/random.c          | 82 ++++++++++++++--------------------
 drivers/net/wireguard/device.c | 27 +++++------
 include/linux/random.h         | 16 +++----
 lib/random32.c                 | 12 ++---
 lib/vsprintf.c                 | 10 +++--
 5 files changed, 69 insertions(+), 78 deletions(-)
Signature · 1 line
2.35.1