grub-devel.gnu.org archive mirror
 help / color / mirror / Atom feed
From: Andrei Borzenkov <arvidjaar@gmail.com>
To: The development of GNU GRUB <grub-devel@gnu.org>,
	Matt Fleming <matt@codeblueprint.co.uk>,
	Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>,
	Colin Watson <cjwatson@debian.org>
Subject: Re: Bugs and tasks for 2.02[~rc1]
Date: Tue, 8 Mar 2016 07:57:35 +0300	[thread overview]
Message-ID: <56DE5BBF.5050108@gmail.com> (raw)
In-Reply-To: <20160308034010.GA19551@linux-dsax.tai.apac.novell.com>

08.03.2016 06:40, Michael Chang пишет:
> On Mon, Mar 07, 2016 at 05:01:33PM -0500, Peter Jones wrote:
>> On Tue, Mar 08, 2016 at 12:29:14AM +0300, Andrei Borzenkov wrote:
>>> 08.03.2016 00:20, Peter Jones пишет:
>>>> On Mon, Mar 07, 2016 at 11:57:33PM +0300, Andrei Borzenkov wrote:
>>>>>
>>>>>> How big part of it is related to secure boot? Just
>>>>>> changing Linux boot protocol doesn't need FSF involvement. Accepting secure
>>>>>
>>>>> Patches currently use EFI stub to launch kernel but I think this is done
>>>>> simply to make code easier. We can continue to use the same load
>>>>> protocol as before, just add image verification.
>>>>
>>>> No, they're doing it because that is the supported entry point for EFI
>>>> in Linux.  We do not want EFI machines using other entry points.  It
>>>> worked out terribly when we used to do this, and we don't want to start
>>>> again.  I've Cc'd Matt Fleming, the upstream kernel EFI maintainer,
>>>> because I'm sure he's going to agree with me.
>>>
>>> So you mean that linux loader is currently broken on EFI?
>>
>> None of the 3 OSes we produce ever uses it.  I don't know about what
>> other distros ship, but a lot of them are using the secure boot code by
>> default in all cases, so they're also going through the EFI stub.
>>

SUSE allows switching off secure boot in YaST, this is relatively
popular advice to users to work around some problems and quite a lot of
users simply do not want to use SB at all (judging by forum posts). So
it gets at least some use in the wild.

>> My expectation is that on many systems it does work, but there are a lot
>> of corner cases where things are not quite right.  In those cases you'll
>> see problems like:
>>
>> - less total memory available than expected due to e820 vs efi memory
>>   map issues

Do you have pointers to real-life examples?

>> - the very real issue recently where grub set the type incorrectly on
>>   some memory map entries, resulting in NVDIMMs winding up being marked
>>   as normal allocatable memory.

Fixed in beta3.

>> - 64-bit kernel on 32-bit platform like Baytrail can't work

Do you mean "32 bit EFI"? If yes, why is it a problem?

>> - some machines we won't get the virtual address map right and e.g. UEFI
>>   variables just won't work
>>

This sounds like bug in GRUB that needs fixing anyway.

>> It goes on like this.
> 
> On the other hand, other grub2 functions like gfxpayload is broken with
> linuxefi, as efi stub would set screen_info from scratch by gop protocol
> and also linuxefi doesn't initialize it at all (as it seems not relevant
> for the efi stub).
> 
> I think the switch to efi stub has to consider the existing grub.cfg
> could still service without changes and function regression, or we will
> end up in trouble of maintaining the config that is in continously
> running, espeically for those not created by grub-mkconfig. 
> 

Yes, any implementation should reuse as much of existing loader code as
possible and only change handover method.


  reply	other threads:[~2016-03-08  4:57 UTC|newest]

Thread overview: 57+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-02 15:01 Bugs and tasks for 2.02[~rc1] Vladimir 'phcoder' Serbinenko
2016-03-02 22:24 ` Daniel Kiper
2016-03-09 10:49   ` Daniel Kiper
     [not found]     ` <20160309144557.GA19753@char.us.oracle.com>
2016-03-09 14:51       ` Vladimir 'phcoder' Serbinenko
2016-03-09 20:05         ` Daniel Kiper
2016-03-04 20:06 ` Peter Jones
2016-03-05  8:38   ` Andrei Borzenkov
2016-03-07 19:00     ` Peter Jones
2016-03-07 19:57       ` Vladimir 'phcoder' Serbinenko
2016-03-07 20:33         ` Andrei Borzenkov
2016-03-07 20:40           ` Vladimir 'phcoder' Serbinenko
2016-03-07 20:57             ` Andrei Borzenkov
2016-03-07 21:03               ` Vladimir 'phcoder' Serbinenko
2016-03-07 21:20               ` Peter Jones
2016-03-07 21:29                 ` Andrei Borzenkov
2016-03-07 22:01                   ` Peter Jones
2016-03-07 22:07                     ` Vladimir 'phcoder' Serbinenko
2016-03-08  4:16                       ` Michael Chang
2016-03-08  3:40                     ` Michael Chang
2016-03-08  4:57                       ` Andrei Borzenkov [this message]
2016-03-09 15:18                         ` Matt Fleming
2016-03-09 20:15                           ` Linux loader EFI handover (was: Bugs and tasks for 2.02[~rc1]) Andrei Borzenkov
2016-03-10 14:21                             ` Matt Fleming
2016-03-11 17:46                               ` Linux loader EFI handover Andrei Borzenkov
2016-03-07 21:42                 ` Bugs and tasks for 2.02[~rc1] Matt Fleming
2016-03-11 15:51                   ` Vladimir 'phcoder' Serbinenko
2016-03-14 15:17                     ` Matt Fleming
2016-03-15 17:38                       ` Vladimir 'phcoder' Serbinenko
2016-03-22 17:54                         ` Peter Jones
2016-03-07 21:14             ` Peter Jones
2016-03-07 21:50               ` Vladimir 'phcoder' Serbinenko
2016-03-07 21:10           ` Peter Jones
2016-03-11 18:01             ` Andrei Borzenkov
2016-03-07 21:03         ` Peter Jones
2016-03-07 21:08           ` Andrei Borzenkov
2016-03-07 21:26             ` Peter Jones
2016-03-07 21:08           ` Vladimir 'phcoder' Serbinenko
2016-03-08 17:57       ` Andrei Borzenkov
2016-03-08 21:47         ` Peter Jones
2016-03-11 18:38           ` Andrei Borzenkov
2016-03-09  6:38 ` Olaf Hering
2016-03-09  7:54   ` Michael Chang
2016-03-09  8:13     ` Andrei Borzenkov
2016-03-11 16:04   ` Vladimir 'phcoder' Serbinenko
2016-04-13  8:49     ` Olaf Hering
2016-03-13  6:30 ` Andrei Borzenkov
2016-03-22 18:48 ` Vladimir 'phcoder' Serbinenko
2016-03-22 19:51   ` Andrei Borzenkov
     [not found]     ` <20160328145903.GF17944@char.us.oracle.com>
2016-04-12 16:44       ` Konrad Rzeszutek Wilk
2016-04-18  4:20       ` Vladimir 'phcoder' Serbinenko
2016-04-18  4:18     ` Vladimir 'phcoder' Serbinenko
2016-04-12 17:53 ` Bruce Dubbs
2016-04-18  4:20   ` Vladimir 'phcoder' Serbinenko
  -- strict thread matches above, loose matches on Subject: below --
2016-03-03 14:47 Juergen Gross
2016-03-09 10:52 ` Daniel Kiper
2016-03-11 15:47   ` Vladimir 'phcoder' Serbinenko
2016-03-11 15:57     ` Juergen Gross

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=56DE5BBF.5050108@gmail.com \
    --to=arvidjaar@gmail.com \
    --cc=cjwatson@debian.org \
    --cc=grub-devel@gnu.org \
    --cc=matt@codeblueprint.co.uk \
    --cc=phcoder@gmail.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 NNTP newsgroup(s).