qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 00/11] rerandomize RNG seeds on reboot and handle record&replay
@ 2022-10-25  0:43 Jason A. Donenfeld
  2022-10-25  0:43 ` [PATCH v4 01/11] reset: allow registering handlers that aren't called by snapshot loading Jason A. Donenfeld
                   ` (11 more replies)
  0 siblings, 12 replies; 31+ messages in thread
From: Jason A. Donenfeld @ 2022-10-25  0:43 UTC (permalink / raw)
  To: peter.maydell, pbonzini, qemu-devel, richard.henderson; +Cc: Jason A. Donenfeld

When the system reboots, the rng seed that QEMU passes should be
re-randomized, so that the new boot gets a new seed. This series wires
that up for FDT.

Then, since the record&replay subsystem makes use of reset as well, we
add a new reset cause for record&replay, so that we can avoid
re-randomizing in these cases.

Version 4 prevents the new reset type from leaking over QAPI, documents
this alongside which version it was introduced, and adds mips and m68k
machine types to the queue.

Jason A. Donenfeld (11):
  reset: allow registering handlers that aren't called by snapshot
    loading
  device-tree: add re-randomization helper function
  x86: do not re-randomize RNG seed on snapshot load
  arm: re-randomize rng-seed on reboot
  riscv: re-randomize rng-seed on reboot
  m68k/virt: do not re-randomize RNG seed on snapshot load
  m68k/q800: do not re-randomize RNG seed on snapshot load
  mips/boston: re-randomize rng-seed on reboot
  mips/malta: pass RNG seed via env var and re-randomize on reboot
  openrisc: re-randomize rng-seed on reboot
  rx: re-randomize rng-seed on reboot

 hw/arm/aspeed.c              |  4 ++--
 hw/arm/boot.c                |  2 ++
 hw/arm/mps2-tz.c             |  4 ++--
 hw/core/reset.c              | 15 ++++++++++++++-
 hw/hppa/machine.c            |  4 ++--
 hw/i386/microvm.c            |  4 ++--
 hw/i386/pc.c                 |  6 +++---
 hw/i386/x86.c                |  2 +-
 hw/m68k/q800.c               | 33 +++++++++++++--------------------
 hw/m68k/virt.c               | 20 +++++++++++---------
 hw/mips/boston.c             |  3 +++
 hw/mips/malta.c              | 25 +++++++++++++++++++++++++
 hw/openrisc/boot.c           |  3 +++
 hw/ppc/pegasos2.c            |  4 ++--
 hw/ppc/pnv.c                 |  4 ++--
 hw/ppc/spapr.c               |  4 ++--
 hw/riscv/boot.c              |  3 +++
 hw/rx/rx-gdbsim.c            |  3 +++
 hw/s390x/s390-virtio-ccw.c   |  4 ++--
 include/hw/boards.h          |  2 +-
 include/sysemu/device_tree.h |  9 +++++++++
 include/sysemu/reset.h       |  5 ++++-
 migration/savevm.c           |  2 +-
 qapi/run-state.json          |  5 ++++-
 softmmu/device_tree.c        | 21 +++++++++++++++++++++
 softmmu/runstate.c           | 11 ++++++++---
 26 files changed, 145 insertions(+), 57 deletions(-)

-- 
2.38.1



^ permalink raw reply	[flat|nested] 31+ messages in thread

end of thread, other threads:[~2022-10-25 17:30 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-25  0:43 [PATCH v4 00/11] rerandomize RNG seeds on reboot and handle record&replay Jason A. Donenfeld
2022-10-25  0:43 ` [PATCH v4 01/11] reset: allow registering handlers that aren't called by snapshot loading Jason A. Donenfeld
2022-10-25  6:11   ` Markus Armbruster
2022-10-25 12:09     ` Jason A. Donenfeld
2022-10-25 12:26       ` Peter Maydell
2022-10-25 12:32         ` Jason A. Donenfeld
2022-10-25 12:34           ` Peter Maydell
2022-10-25 12:42             ` Jason A. Donenfeld
2022-10-25 12:50               ` Jason A. Donenfeld
2022-10-25 13:54                 ` Peter Maydell
2022-10-25 13:58                   ` Jason A. Donenfeld
2022-10-25 15:19                     ` Jason A. Donenfeld
2022-10-25  0:43 ` [PATCH v4 02/11] device-tree: add re-randomization helper function Jason A. Donenfeld
2022-10-25  1:32   ` Alistair Francis
2022-10-25 13:30   ` Philippe Mathieu-Daudé
2022-10-25 13:32     ` Jason A. Donenfeld
2022-10-25  0:43 ` [PATCH v4 03/11] x86: do not re-randomize RNG seed on snapshot load Jason A. Donenfeld
2022-10-25  0:43 ` [PATCH v4 04/11] arm: re-randomize rng-seed on reboot Jason A. Donenfeld
2022-10-25  0:43 ` [PATCH v4 05/11] riscv: " Jason A. Donenfeld
2022-10-25  1:31   ` Alistair Francis
2022-10-25  0:43 ` [PATCH v4 06/11] m68k/virt: do not re-randomize RNG seed on snapshot load Jason A. Donenfeld
2022-10-25  0:43 ` [PATCH v4 07/11] m68k/q800: " Jason A. Donenfeld
2022-10-25  0:43 ` [PATCH v4 08/11] mips/boston: re-randomize rng-seed on reboot Jason A. Donenfeld
2022-10-25  0:43 ` [PATCH v4 09/11] mips/malta: pass RNG seed via env var and re-randomize " Jason A. Donenfeld
2022-10-25 16:46   ` Peter Maydell
2022-10-25 16:56     ` Jason A. Donenfeld
2022-10-25 17:28       ` [PATCH v5] " Jason A. Donenfeld
2022-10-25  0:43 ` [PATCH v4 10/11] openrisc: re-randomize rng-seed " Jason A. Donenfeld
2022-10-25  0:43 ` [PATCH v4 11/11] rx: " Jason A. Donenfeld
2022-10-25 16:39 ` [PATCH v4 00/11] rerandomize RNG seeds on reboot and handle record&replay Peter Maydell
2022-10-25 16:53   ` Jason A. Donenfeld

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).