Subject: [PATCH 5/8] efi: Get the secure boot status [ver #6]

From: [email-masked] (David Howells)
Date: Mon, 23 Jan 2017 22:11:43 +0000

Matt Fleming <[email-masked]> wrote:

> >  (4) extract_kernel() calls sanitize_boot_params() which would otherwise clear
> >      the secure-boot flag.
>  
> The ->sentinel flag should be clear (because you zero'd boot_params on
> alloc), so the code inside of sanitize_boot_params() should never
> trigger for the secure boot case.

But it *does* trigger, otherwise I wouldn't've noticed this.

David