From: "Jason A. Donenfeld" <Jason@zx2c4.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: "Michael S. Tsirkin" <mst@redhat.com>,
qemu-devel@nongnu.org,
"Marcel Apfelbaum" <marcel.apfelbaum@gmail.com>,
"Richard Henderson" <richard.henderson@linaro.org>,
"Eduardo Habkost" <eduardo@habkost.net>,
"Peter Maydell" <peter.maydell@linaro.org>,
"Philippe Mathieu-Daudé" <f4bug@amsat.org>,
"Laurent Vivier" <laurent@vivier.eu>
Subject: Re: [PATCH v6] hw/i386: pass RNG seed via setup_data entry
Date: Thu, 21 Jul 2022 14:16:53 +0200 [thread overview]
Message-ID: <YtlDtSlRel1UUd71@zx2c4.com> (raw)
In-Reply-To: <1ee57e75-94a1-cf75-7d49-0d399607fee9@redhat.com>
Hi Paolo,
On Thu, Jul 21, 2022 at 01:47:02PM +0200, Paolo Bonzini wrote:
> On 7/21/22 13:00, Michael S. Tsirkin wrote:
> > Well why not.
> >
> > Reviewed-by: Michael S. Tsirkin<mst@redhat.com>
> >
> > who's merging this? Paolo me or you?
>
> I don't think this should be merged as is.
>
> The linuxboot ROM takes the data from fw_cfg, and (with the exception of
> ACPI tables) that data is not migrated. Because reading it into the
> guest is not atomic, both sides must match. This version of the patches
> at least doesn't move the preexisting DTB entry of the setup_data, but
> it still has a mismatching size and that can be a problem when migrating
> backwards.
As discussed online, this seems absolutely preposterous and will never
happen anywhere real ever at all. Trying to account for it is adding
needless complexity for no real world benefit; it's the type of thinking
that results in a mess. Further, conditionalizing the RNG seed on
something else means fewer users receive the increased security of
having an early boottime seed. This seems like a silly direction go go
in.
But to assess things in the open here:
- On upgrades, there's no problem because the old bytes don't move.
- On downgrades, there's mostly no problem because next will point to 0.
- On downgrade there could be some ridiculous theoretical problem if the
reader has already read a non-zero next. But this will never actually
happen in practice.
So we really should just stick with the simple and straight forward path
that this v6 accomplishes, and not muck things up with stupidity.
Jason
next prev parent reply other threads:[~2022-07-21 12:20 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-11 14:54 [PATCH v3] hw/i386: pass RNG seed via setup_data entry Jason A. Donenfeld
2022-07-19 11:53 ` [PATCH resend " Jason A. Donenfeld
2022-07-20 13:03 ` Jason A. Donenfeld
2022-07-21 9:19 ` Paolo Bonzini
2022-07-21 9:47 ` Jason A. Donenfeld
2022-07-21 9:56 ` Jason A. Donenfeld
2022-07-21 10:09 ` [PATCH v4] " Jason A. Donenfeld
2022-07-21 10:35 ` Michael S. Tsirkin
2022-07-21 10:42 ` Jason A. Donenfeld
2022-07-21 10:47 ` [PATCH v5] " Jason A. Donenfeld
2022-07-21 10:49 ` [PATCH v6] " Jason A. Donenfeld
2022-07-21 11:00 ` Michael S. Tsirkin
2022-07-21 11:00 ` Jason A. Donenfeld
2022-07-21 11:47 ` Paolo Bonzini
2022-07-21 12:16 ` Jason A. Donenfeld [this message]
2022-07-21 12:27 ` Daniel P. Berrangé
2022-07-21 12:41 ` Paolo Bonzini
2022-07-21 12:52 ` Jason A. Donenfeld
2022-07-21 12:56 ` [PATCH v7] " Jason A. Donenfeld
2022-07-21 13:00 ` Paolo Bonzini
2022-07-21 13:00 ` Paolo Bonzini
2022-07-21 13:04 ` Jason A. Donenfeld
2022-07-22 6:10 ` Paolo Bonzini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YtlDtSlRel1UUd71@zx2c4.com \
--to=jason@zx2c4.com \
--cc=eduardo@habkost.net \
--cc=f4bug@amsat.org \
--cc=laurent@vivier.eu \
--cc=marcel.apfelbaum@gmail.com \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.