All of lore.kernel.org
 help / color / mirror / Atom feed
From: KASHI Takahiro <takahiro.akashi@linaro.org>
To: Simon Glass <sjg@chromium.org>
Cc: Ilias Apalodimas <ilias.apalodimas@linaro.org>,
	U-Boot Mailing List <u-boot@lists.denx.de>,
	Heinrich Schuchardt <xypron.glpk@gmx.de>,
	Alexander Graf <agraf@csgraf.de>,
	Masami Hiramatsu <masami.hiramatsu@linaro.org>,
	Sughosh Ganu <sughosh.ganu@linaro.org>
Subject: Re: [PATCH] Revert "efi_capsule: Move signature from DTB to .rodata"
Date: Tue, 3 Aug 2021 09:21:33 +0900	[thread overview]
Message-ID: <20210803002133.GA44851@laputa> (raw)
In-Reply-To: <CAPnjgZ3HN81AeY5zwYsH0q7G8ZgDOXJ=RMsB5xK2bwnxXRc+aA@mail.gmail.com>

On Mon, Aug 02, 2021 at 08:44:41AM -0600, Simon Glass wrote:
> Hi,
> 
> On Mon, 2 Aug 2021 at 01:15, KASHI Takahiro <takahiro.akashi@linaro.org> wrote:
> >
> > On Sun, Aug 01, 2021 at 08:47:15PM -0600, Simon Glass wrote:
> > > Hi Ilias,
> > >
> > > On Sun, 1 Aug 2021 at 20:28, Ilias Apalodimas
> > > <ilias.apalodimas@linaro.org> wrote:
> > > >
> > > > Hi Simon,
> > > >
> > > > On Sun, Aug 01, 2021 at 07:46:21PM -0600, Simon Glass wrote:
> > > > > This was unfortunately applied despite much discussion about it being
> > > > > the wrong way to implement this feature.
> > > >
> > > > No this was applied *before* the discussion, not despite.
> > >
> > > Oh sorry...I didn't notice either way. Normally there is an email on
> > > the patch saying it was applied. Perhaps I missed it.
> > >
> > > >
> > > > >
> > > > > Revert it before too many other things are built on top of it.
> > > >
> > > > I don't really mind if this gets reverted but there's things that haven't
> > > > been answered on that discussion [1] and my concern is what happens if
> > > > CONFIG_OF_EMBED is not selected.
> > >
> > > Can we start a new discussion perhaps? Or use one of the contributor
> > > calls to talk about it?
> > >
> > > We should not be using OF_EMBED except for testing.
> > >
> > > >
> > > > Also you need to revert the entire series, not just one of the patches,
> > > > as it changes the QEMU documentation for enabling authenticated capsule
> > > > updates, as well as the mkeficapsule app.
> > >
> > > Heinrich, do you have any thoughts on this?
> >
> > # I'm not Heinrich :)
> 
> Perhaps you could impersonate him :-) I ask because he had been doing
> a lot of EFI work.

I know. I was just kidding :)

> >
> > As far as the authentication logic itself is concerned,
> > it is utterly generic except how and from where a public key is
> > retrieved. (It can potentially be platform-specific.)
> > Moreover, mkeficapsule really doesn't care where the key is.
> >
> > So I don't think we need revert all those changes.
> 
> I agree. Having another look, I think perhaps three patches is enough.
> I will try again.
> 
> >
> > For testing, we can run a test on sandbox by having sandbox-specific
> > efi_get_public_key_data() function, i.e. we may want to contain
> > the key in a file on ESP or just in a specific flash partition.
> >
> > Obviously, it's not safe, but it's just a test to verify that the logic
> > is sane.
> >
> > If the discussion goes on for an unexpected spell of time,
> > I would like to take this workaround for now.
> 
> I think this effort should go back to before the change to putting
> things in rodata. That was when things went really off the rails.
> 
> With things back in the DT, you should be able to write a test with
> the existing sandbox build without any special-case code.

Well, that is the way I have adopted in my v1 patch[1].
I hope that the discussion be settled first.

-Takahiro Akashi

[1] https://lists.denx.de/pipermail/u-boot/2021-May/449575.html


> [..]
> 
> Regards,
> Simon

  reply	other threads:[~2021-08-03  0:21 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-02  1:46 [PATCH] Revert "efi_capsule: Move signature from DTB to .rodata" Simon Glass
2021-08-02  2:28 ` Ilias Apalodimas
2021-08-02  2:47   ` Simon Glass
2021-08-02  7:15     ` KASHI Takahiro
2021-08-02 14:44       ` Simon Glass
2021-08-03  0:21         ` KASHI Takahiro [this message]
2021-08-04 16:06           ` Simon Glass

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=20210803002133.GA44851@laputa \
    --to=takahiro.akashi@linaro.org \
    --cc=agraf@csgraf.de \
    --cc=ilias.apalodimas@linaro.org \
    --cc=masami.hiramatsu@linaro.org \
    --cc=sjg@chromium.org \
    --cc=sughosh.ganu@linaro.org \
    --cc=u-boot@lists.denx.de \
    --cc=xypron.glpk@gmx.de \
    /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.