From: "Bryan O'Donoghue" <pure.logic@nexus-software.ie>
To: Jan Kiszka <jan.kiszka@siemens.com>,
"Kweh, Hock Leong" <hock.leong.kweh@intel.com>,
Andy Shevchenko <andy.shevchenko@gmail.com>
Cc: Matt Fleming <matt@codeblueprint.co.uk>,
Ard Biesheuvel <ard.biesheuvel@linaro.org>,
"linux-efi@vger.kernel.org" <linux-efi@vger.kernel.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Borislav Petkov <bp@alien8.de>,
"Ong, Boon Leong" <boon.leong.ong@intel.com>,
"Mok, Tze Siong" <tze.siong.mok@intel.com>
Subject: Re: [PATCH 0/2] efi: Enhance capsule loader to support signed Quark images
Date: Fri, 17 Feb 2017 11:42:34 +0000 [thread overview]
Message-ID: <ef2d9e8b-9a6e-4790-da1c-a76f1496fdcb@nexus-software.ie> (raw)
In-Reply-To: <87df71cd-8f45-351f-30bb-ac7e66005c2a@siemens.com>
On 17/02/17 10:14, Jan Kiszka wrote:
> On 2017-02-17 10:51, Bryan O'Donoghue wrote:
>> On 17/02/17 08:23, Kweh, Hock Leong wrote:
>>> And to have UEFI expand
>>> it capsule support and take in signed binary would be a more secured way.
>>> So, influencing UEFI community to have such support would be the right
>>> move throughout the discussion. That is my summary.
>>
>> CSH stands for "Clanton Secure Header" - Clanton being the internal
>> code-name for Quark X1000 prior to release.
>>
>> There is no chance the UEFI standard (which can be used on ARM and
>> potentially other architectures) will accept a SoC specific
>> route-of-trust prepended header.
>>
>> Sure some kind of binary signed headers might become part of the
>> standard eventually but, definitely _not_ a CSH.
>>
>> The fact is CSH exists in the real-world and a UEFI firmware supports
>> accepting the CSH/UEFI-capsule pair for updating itself.
>>
>> I think a far more practical solution is to accommodate the defacto
>> implementation (the only ? current implementation). To me it defies
>> reason to have Quark X1000 be the only system (that I know of) capable
>> of doing a capsule update - have capsule code in the kernel - but _not_
>> support the header prepended to that capsule that the Quark
>> firmware/bootrom require.
>>
>> Right now the capsule code is dead code on Quark x1000. Let's do the
>> right thing and make it usable. I fully support having a
>> separate/parallel conversation with the UEFI body but, I'd be amazed if
>> the "Clanton Secure Header" made it into the standard...
>>
>
> To be precise, CSH is only required on X102x. The X100x SoCs, those are
> also found on the Galileo Gen2 maker board, do not support secure boot
> and do not use the header.
The CSH is supported on the non-secure SoCs - the BSP on Gen1 certainly did.
https://downloadcenter.intel.com/download/23197/Intel-Quark-SoC-X1000-Board-Support-Package-BSP-
- > QuarkPlatformPkg/Platform/Dxe/PlatformInit/DxeCapsuleSecurity.c
CreateCapsuleBufferForWriting()
Looks like it will tolerate a lack of CSH but, obviously that's no
solution for the secure boot parts.
> IIRC, there used to be an eval system with
> the X1020 as well, but I think it's no longer available.
>
> Interestingly, the capsule file found in Intel's Galileo firmware update
> package [1] contains the CSH header. But I only succeeded flashing it on
> a Gen2 by removing the header first.
Hmm - the out of the box firmware will accept capsules from the website.
Gen1 and Gen2 should be the same in that respect - if you use the BSP
kernel.
You should validate the out-of-the-box capsule update - with the kernel
on SPI flash works with the CSH in place.
Next step then is to get it working on tip-of-tree.
I have one Gen1 left (which I won't be experimenting with) - and I think
one Gen2 (which I don't especially mind blowing up).
Let's take the time to validate (or repudiate)
1. Out of the box BSP works with CSH capsules in place
2. New tip-of-tree addition supports CSH capsules
and review.
Stripping the CSH shouldn't be necessary (and breaks the secure boot
parts anyway).
--
bod
prev parent reply other threads:[~2017-02-17 11:42 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-15 18:14 Jan Kiszka
2017-02-15 18:14 ` [PATCH 1/2] efi/capsule: Prepare for loading images with security header Jan Kiszka
2017-02-15 18:14 ` [PATCH 2/2] efi/capsule: Add support for Quark " Jan Kiszka
2017-02-17 1:30 ` Bryan O'Donoghue
2017-03-24 16:44 ` Jan Kiszka
2017-02-15 18:17 ` [PATCH 0/2] efi: Enhance capsule loader to support signed Quark images Ard Biesheuvel
2017-02-15 18:47 ` Jan Kiszka
2017-02-15 18:41 ` Andy Shevchenko
2017-02-15 18:46 ` Andy Shevchenko
2017-02-15 18:50 ` Jan Kiszka
2017-02-15 18:59 ` Jan Kiszka
2017-02-16 3:00 ` Kweh, Hock Leong
2017-02-16 7:29 ` Jan Kiszka
2017-02-18 21:48 ` Ard Biesheuvel
2017-02-19 13:33 ` Jan Kiszka
2017-02-20 1:33 ` Bryan O'Donoghue
2017-02-20 1:52 ` Jan Kiszka
2017-03-24 15:18 ` Jan Kiszka
2017-02-17 0:53 ` Bryan O'Donoghue
2017-02-17 8:23 ` Kweh, Hock Leong
2017-02-17 9:24 ` Jan Kiszka
2017-02-28 12:12 ` Matt Fleming
2017-02-28 12:20 ` Jan Kiszka
2017-02-28 12:29 ` Matt Fleming
2017-02-28 13:25 ` Ard Biesheuvel
2017-02-28 13:35 ` Andy Shevchenko
2017-02-28 13:36 ` Andy Shevchenko
2017-02-28 15:07 ` Bryan O'Donoghue
2017-02-28 15:09 ` Bryan O'Donoghue
2017-02-28 15:27 ` Andy Shevchenko
2017-02-28 16:52 ` Bryan O'Donoghue
2017-02-28 17:18 ` Andy Shevchenko
2017-02-28 17:42 ` Bryan O'Donoghue
2017-03-01 14:02 ` Bryan O'Donoghue
2017-03-01 14:55 ` Andy Shevchenko
2017-02-17 9:51 ` Bryan O'Donoghue
2017-02-17 10:14 ` Jan Kiszka
2017-02-17 11:42 ` Bryan O'Donoghue [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=ef2d9e8b-9a6e-4790-da1c-a76f1496fdcb@nexus-software.ie \
--to=pure.logic@nexus-software.ie \
--cc=andy.shevchenko@gmail.com \
--cc=ard.biesheuvel@linaro.org \
--cc=boon.leong.ong@intel.com \
--cc=bp@alien8.de \
--cc=hock.leong.kweh@intel.com \
--cc=jan.kiszka@siemens.com \
--cc=linux-efi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=matt@codeblueprint.co.uk \
--cc=tze.siong.mok@intel.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
all inboxes | Powered by JetHome®