qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2] linux-user: Let user specify random seed
@ 2014-10-09  8:36 Magnus Reftel
  2014-10-09  8:36 ` [Qemu-devel] [PATCH] " Magnus Reftel
  2014-10-09 19:43 ` [Qemu-devel] [PATCH v2] " Tom Musta
  0 siblings, 2 replies; 16+ messages in thread
From: Magnus Reftel @ 2014-10-09  8:36 UTC (permalink / raw)
  To: qemu-devel

This patch introduces the -seed command line option and the
QEMU_RAND_SEED environment variable for setting the random seed, which
is used for the AT_RANDOM ELF aux entry.

This is an updated version of the patch, addressing review comments
from Eric Blake.

^ permalink raw reply	[flat|nested] 16+ messages in thread
* [Qemu-devel] [PATCH v5] linux-user: Let user specify random seed
@ 2014-10-14 15:18 Magnus Reftel
  2014-10-14 15:18 ` [Qemu-devel] [PATCH] " Magnus Reftel
  0 siblings, 1 reply; 16+ messages in thread
From: Magnus Reftel @ 2014-10-14 15:18 UTC (permalink / raw)
  To: qemu-devel, riku.voipio

linux-user uses the rand function for generating the value of the AT_RANDOM elf
aux vector entry, and explicitly seeds the random number generator with the
current time. This makes it impossible to reproduce runs that use the AT_RANDOM
bytes.

This patch adds a command line option and a matching environment variable for
setting the random seed, so that the AT_RANDOM values can be predictable when
the user chooses. The default is still to seed the random number generator
with the current time.

The difference from version 4 of the patch is only the addition of the line
  Reviewed-by: Eric Blake <eblake@redhat.com>
to the commit message.

^ permalink raw reply	[flat|nested] 16+ messages in thread
* [Qemu-devel] [PATCH v4] linux-user: Let user specify random seed
@ 2014-10-14  9:50 Magnus Reftel
  2014-10-14  9:50 ` [Qemu-devel] [PATCH] " Magnus Reftel
  0 siblings, 1 reply; 16+ messages in thread
From: Magnus Reftel @ 2014-10-14  9:50 UTC (permalink / raw)
  To: qemu-devel

linux-user uses the rand function for generating the value of the AT_RANDOM elf
aux vector entry, and explicitly seeds the random number generator with the
current time. This makes it impossible to reproduce runs that use the AT_RANDOM
bytes.

This patch adds a command line option and a matching environment variable for
setting the random seed, so that the AT_RANDOM values can be predictable when
the user chooses. The default is still to seed the random number generator
with the current time.

This is an updated version of the patch, addressing a review comment from
Eric Blake on version 3.

^ permalink raw reply	[flat|nested] 16+ messages in thread
* [Qemu-devel] [PATCH v3] linux-user: Let user specify random seed
@ 2014-10-09 19:12 Magnus Reftel
  2014-10-09 19:12 ` [Qemu-devel] [PATCH] " Magnus Reftel
  0 siblings, 1 reply; 16+ messages in thread
From: Magnus Reftel @ 2014-10-09 19:12 UTC (permalink / raw)
  To: qemu-devel

This patch introduces the -seed command line option and the
QEMU_RAND_SEED environment variable for setting the random seed, which
is used for the AT_RANDOM ELF aux entry.

^ permalink raw reply	[flat|nested] 16+ messages in thread
* [Qemu-devel] [PATCH] Let user specify random seed for linux-user
@ 2014-10-08 12:13 Magnus Reftel
  2014-10-08 12:13 ` [Qemu-devel] [PATCH] linux-user: Let user specify random seed Magnus Reftel
  0 siblings, 1 reply; 16+ messages in thread
From: Magnus Reftel @ 2014-10-08 12:13 UTC (permalink / raw)
  To: qemu-devel

linux-user uses the rand function for generating the value of the AT_RANDOM elf
aux vector entry, and explicitly seeds the random number generator with the
current time. This makes it impossible to reproduce runs that use the AT_RANDOM
bytes.

This patch adds a command line option and a matching environment variable for
setting the random seed, so that the AT_RANDOM values can be predictable when
the user chooses. The default is still to seed the random number generator
with the current time.

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

end of thread, other threads:[~2014-10-14 15:20 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-09  8:36 [Qemu-devel] [PATCH v2] linux-user: Let user specify random seed Magnus Reftel
2014-10-09  8:36 ` [Qemu-devel] [PATCH] " Magnus Reftel
2014-10-09 15:27   ` Eric Blake
2014-10-09 19:10     ` Magnus Reftel
2014-10-09 19:43 ` [Qemu-devel] [PATCH v2] " Tom Musta
2014-10-10  8:00   ` Magnus Reftel
  -- strict thread matches above, loose matches on Subject: below --
2014-10-14 15:18 [Qemu-devel] [PATCH v5] " Magnus Reftel
2014-10-14 15:18 ` [Qemu-devel] [PATCH] " Magnus Reftel
2014-10-14  9:50 [Qemu-devel] [PATCH v4] " Magnus Reftel
2014-10-14  9:50 ` [Qemu-devel] [PATCH] " Magnus Reftel
2014-10-14 15:07   ` Eric Blake
2014-10-09 19:12 [Qemu-devel] [PATCH v3] " Magnus Reftel
2014-10-09 19:12 ` [Qemu-devel] [PATCH] " Magnus Reftel
2014-10-09 21:30   ` Eric Blake
2014-10-10  8:16     ` Magnus Reftel
2014-10-10 16:20       ` Eric Blake
2014-10-14  9:46         ` Magnus Reftel
2014-10-08 12:13 [Qemu-devel] [PATCH] Let user specify random seed for linux-user Magnus Reftel
2014-10-08 12:13 ` [Qemu-devel] [PATCH] linux-user: Let user specify random seed Magnus Reftel
2014-10-08 14:45   ` Eric Blake

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).