From: James Bottomley <jejb@linux.ibm.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: "Jason A. Donenfeld" <Jason@zx2c4.com>,
QEMU Developers <qemu-devel@nongnu.org>,
Gerd Hoffmann <kraxel@redhat.com>,
DOV MURIK <Dov.Murik1@il.ibm.com>
Subject: Re: [PATCH] x86: fix q35 kernel measurements broken due to rng seeding
Date: Wed, 01 Feb 2023 14:35:31 -0500 [thread overview]
Message-ID: <b9d15b656ed91d594132029b8ac0cc61552e68bd.camel@linux.ibm.com> (raw)
In-Reply-To: <CAFEAcA8Qem0QWz5R79Djt-n8mPBf4o+Q1dJ41O4oyTU19XZ5Hw@mail.gmail.com>
On Wed, 2023-02-01 at 16:50 +0000, Peter Maydell wrote:
> On Wed, 1 Feb 2023 at 15:25, James Bottomley <jejb@linux.ibm.com>
> wrote:
> >
> > On Wed, 2023-02-01 at 10:10 -0500, Jason A. Donenfeld wrote:
> > > This is already fixed via the patch that MST just sent in his
> > > pull.
> > > So wait a few days for that to be merged and it'll be all set.
> > >
> > > No need for this patch here. Do not merge.
> >
> > If it's not a secret, would it be too much trouble to point to the
> > branch so we can actually test it? It does seem that the biggest
> > problem this issue shows is that there wasn't wide enough
> > configuration
> > testing done on the prior commits before they were merged.
>
> In general you shouldn't expect commits to be visible in
> a git branch before they get merged -- the QEMU process
> is not exactly identical to the kernel one.
>
> For a particular patch on the mailing list, you can get a git branch
> with it applied by looking for the patch in https://patchew.org/QEMU/
> if that's more convenient than just applying it by hand.
The real issue is there have been so many patches flying around for
this, it's not clear exactly what combination needed to be tested. Dov
found the branch in tags/for_upstream but it's still failing measured
direct boot, although the failure has shifted from the hash check of
the kernel to the hash check of the command line.
All I really wanted was a link to the patch ... I don't need the tree
because inspection will tell me that it adds unexpected data at the end
of an integrity checked file.
> We also don't tend to want patches hanging around for testing
> before they get merged[*] -- we figure that "in upstream git"
> is the place that actually gets tested in practice; almost
> nobody will be working with or testing anything else.
>
> [*] The fix Jason refers to here that's in MST's pullreq
> unfortunately hasn't made it upstream as quickly as I
> would like, due to a combination of things including us
> having to pause CI for a week when we ran out of minutes.
OK, so the problem is still the same as it was before: adding
unexpected data to an integrity checked file.
I don't get why there's all this dancing around trying to find space.
Surely when the parameter was added, since it was a fixed size, the
kernel header was expanded and the boot protocol version bumped? So we
can use that to identify kernels which can use this property and have
the space to insert it directly.
James
next prev parent reply other threads:[~2023-02-01 19:36 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-01 13:57 [PATCH] x86: fix q35 kernel measurements broken due to rng seeding James Bottomley
2023-02-01 14:35 ` Daniel P. Berrangé
2023-02-01 14:56 ` James Bottomley
2023-02-01 15:12 ` Jason A. Donenfeld
2023-02-01 15:14 ` Daniel P. Berrangé
2023-02-01 15:10 ` Jason A. Donenfeld
2023-02-01 15:24 ` James Bottomley
2023-02-01 16:41 ` Dov Murik
2023-02-01 16:50 ` Peter Maydell
2023-02-01 19:35 ` James Bottomley [this message]
2023-02-01 17:51 ` Jason A. Donenfeld
2023-02-01 20:38 ` James Bottomley
2023-02-01 20:48 ` Jason A. Donenfeld
2023-02-02 14:38 ` James Bottomley
2023-02-02 15:03 ` H. Peter Anvin
2023-02-02 15:17 ` James Bottomley
2023-02-02 18:56 ` H. Peter Anvin
2023-02-02 19:02 ` H. Peter Anvin
2023-02-02 19:13 ` H. Peter Anvin
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=b9d15b656ed91d594132029b8ac0cc61552e68bd.camel@linux.ibm.com \
--to=jejb@linux.ibm.com \
--cc=Dov.Murik1@il.ibm.com \
--cc=Jason@zx2c4.com \
--cc=kraxel@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.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 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).