grub-devel.gnu.org archive mirror
 help / color / mirror / Atom feed
From: Daniel Kiper <dkiper@net-space.pl>
To: Julian Andres Klode <julian.klode@canonical.com>
Cc: grub-devel@gnu.org
Subject: Re: [PATCH] efi: Set shim_lock_enabled even if validation is disabled
Date: Mon, 20 Nov 2023 19:41:27 +0100	[thread overview]
Message-ID: <20231120184127.znpatluwsf4deqlt@tomti.i.net-space.pl> (raw)
In-Reply-To: <20231120152045.gaowxy6maid74ajp@jak-t14-g3>

On Mon, Nov 20, 2023 at 04:21:08PM +0100, Julian Andres Klode wrote:
> On Tue, Oct 31, 2023 at 07:19:13PM +0100, Daniel Kiper wrote:
> > On Wed, Jul 19, 2023 at 03:16:00PM +0200, Julian Andres Klode wrote:
> > > If validation has been disabled via MokSbState, secure boot on the
> > > firmware is still enabled, and the kernel fails to boot.
> > >
> > > This is a bit hacky, because shim_lock is not *fully* enabled, but
> > > it triggers the right code paths.
> > >
> > > Ultimately, all this will be resolved by shim gaining it's own image
> > > loading and starting protocol, so this is more a temporary workaround.
> > >
> > > Fixes: 6425c12cd (efi: Fallback to legacy mode if shim is loaded on x86 archs)
> > >
> > > Signed-off-by: Julian Andres Klode <julian.klode@canonical.com>
> > > ---
> > >  grub-core/kern/efi/sb.c | 1 +
> > >  1 file changed, 1 insertion(+)
> > >
> > > diff --git a/grub-core/kern/efi/sb.c b/grub-core/kern/efi/sb.c
> > > index 60550a6da..ea15d4514 100644
> > > --- a/grub-core/kern/efi/sb.c
> > > +++ b/grub-core/kern/efi/sb.c
> > > @@ -95,6 +95,7 @@ grub_efi_get_secureboot (void)
> > >    if (!(attr & GRUB_EFI_VARIABLE_RUNTIME_ACCESS) && *moksbstate == 1)
> > >      {
> > >        secureboot = GRUB_EFI_SECUREBOOT_MODE_DISABLED;
> > > +      shim_lock_enabled = true;
> > 
> > I am not happy with this change but I understand we need it. So, I will
> > accept the change but it has to be marked as "TODO" thing in the comment.
> > Additionally, the comment has to explain why we need it. Please do not
> > forget CC distro maintainers and other folks who may be interested in
> > this change. If you do that you can add my RB.
> 
> I just found this email today while actively searching my notmuch
> for replies to my threads, it somehow got filtered out of the inbox.
> 
> I do not know who to CC tbh. I do not have a giant list of grub
> maintainers from all distributions; and I would expect they'd be
> required to be subscribed here anyhow...

My experience is that people usually do not care if they are not CC-ed.
So, please just CC folks who you are aware can be interested in taking
a look at this patch. I do not expect this list will be exhaustive.

Daniel

_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

      reply	other threads:[~2023-11-20 18:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-19 13:16 [PATCH] efi: Set shim_lock_enabled even if validation is disabled Julian Andres Klode
2023-10-10 16:26 ` Julian Andres Klode
2023-10-31 18:19 ` Daniel Kiper
2023-11-20 15:21   ` Julian Andres Klode
2023-11-20 18:41     ` Daniel Kiper [this message]

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=20231120184127.znpatluwsf4deqlt@tomti.i.net-space.pl \
    --to=dkiper@net-space.pl \
    --cc=grub-devel@gnu.org \
    --cc=julian.klode@canonical.com \
    /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 read-only IMAP folder(s) and NNTP newsgroup(s).