lkml.org 
[lkml]   [2018]   [Jun]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: [intel-sgx-kernel-dev] [PATCH v11 13/13] intel_sgx: in-kernel launch enclave
    On Mon, Jun 25, 2018 at 11:45 AM Andy Lutomirski <luto@kernel.org> wrote:
    >
    > On Mon, Jun 25, 2018 at 2:41 AM Jarkko Sakkinen
    > <jarkko.sakkinen@linux.intel.com> wrote:
    > >
    > > On Thu, 2018-06-21 at 08:32 -0400, Nathaniel McCallum wrote:
    > > > This implies that it should be possible to create MSR activation (and
    > > > an embedded launch enclave?) entirely as a UEFI module. The kernel
    > > > would still get to manage who has access to /dev/sgx and other
    > > > important non-cryptographic policy details. Users would still be able
    > > > to control the cryptographic policy details (via BIOS Secure Boot
    > > > configuration that exists today). Distributions could still control
    > > > cryptographic policy details via signing of the UEFI module with their
    > > > own Secure Boot key (or using something like shim). The UEFI module
    > > > (and possibly the external launch enclave) could be distributed via
    > > > linux-firmware.
    > > >
    > > > Andy/Neil, does this work for you?
    > >
    > > Nothing against having UEFI module for MSR activation step.
    > >
    > > And we would move the existing in-kernel LE to firmware so that it is
    > > avaible for locked-in-to-non-Intel-values case?
    > >
    >
    > This is a hell of a lot of complexity. To get it right we'd need an
    > actual formal spec of what firmware is supposed to do and how it
    > integrates with the kernel, and we'd need a reason why it's useful.

    What do you want the kernel's behavior to be in the case where an FLC
    CPU is present, but the MSRs have been locked by the BIOS? Because I
    think the workflow for the UEFI module idea is the same.

    > I'm personally rather strongly in favor of the vastly simpler model in
    > which we first merge SGX without LE support at all. Instead we use
    > the approach where we just twiddle the MSRs to launch normal enclaves
    > without an init token at all, which is probably considerably faster
    > and will remove several thousand lines of code. If and when a bona
    > fide use case for LE support shows up, we can work out the details and
    > merge it.

    I'm also okay with an incremental approach, BTW. I just want us to
    think through the issues. And I do think that SGX root kits are a
    serious threat. But I'm willing to move in stages. In fact, if we can
    merge something without any LE support faster, I'm in favor of doing
    so.

    > Right now, we're talking about a lot of design considerations, a lot
    > of interoperability considerations, and a lot of code to support a use
    > case that doesn't clearly exist.

    I agree.

    \
     
     \ /
      Last update: 2018-06-25 23:28    [W:2.907 / U:0.016 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site