Re: [RFC PATCH 00/12] x86: Trenchboot secure late launch Linux kernel support

From: Matthew Garrett
Date: Wed Mar 25 2020 - 16:29:17 EST


On Wed, Mar 25, 2020 at 12:43 PM Ross Philipson
<ross.philipson@xxxxxxxxxx> wrote:
> To enable the kernel to be launched by GETSEC or SKINIT, a stub must be
> built into the setup section of the compressed kernel to handle the
> specific state that the late launch process leaves the BSP. This is a
> lot like the EFI stub that is found in the same area. Also this stub
> must measure everything that is going to be used as early as possible.
> This stub code and subsequent code must also deal with the specific
> state that the late launch leaves the APs in.

How does this integrate with the EFI entry point? That's the expected
entry point on most modern x86. What's calling ExitBootServices() in
this flow, and does the secure launch have to occur after it? It'd be
a lot easier if you could still use the firmware's TPM code rather
than carrying yet another copy.