Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp5292339imm; Tue, 19 Jun 2018 08:07:19 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKKXUsFuIVtJOvjDqL4xSTzSJXW1UO38iVV+R88Jt2qsYa2GwdC1cJ876xDUYzWUfUphM5M X-Received: by 2002:a63:91c8:: with SMTP id l191-v6mr15355092pge.53.1529420839352; Tue, 19 Jun 2018 08:07:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529420839; cv=none; d=google.com; s=arc-20160816; b=V+qhDXwGH6ZQ9avgwm6lBzEZyexnBes2wpT/meBXGQjEHqCkgKg18m+2CRIgjz3j6y vKzB5DHLfMoXeQkffMndwk4ilJYIkkf8BKvuYGPHF55auOTYKW5EHh2/bEAu87FgQmnA eKULn5YHmw1/Gil3IgWjhZuE2m7iefrgErZ0on6l67i+i0uS+lxUGjvftPDsEP1Ia2eD OY6xEtzrtK2re/CHEklXfGNipEOUwd55+18a0RqnvDc2mnQ0LjUixptytJkOXRsbJD+F n+7eNaq1DOI3ggnJUVroHK2wwEDGDSnb1L3Hbcz56JZ7VdCZVyEcADjAclBxLN4iI2tk 60gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=Jr8Wb2l3xX4ZxZXfH5LjYodyzljt3uwZy+vHwUF+dq0=; b=IMGqAUQg6J7sYAkYSZqHqyhaSmG6Ycc3Yi/MjEPFm9NEJNXZdS7aWixX3fvQE5dkcJ yGN0ogeul4m4gBUX5p/2fiO1SiVGFI30vrO+VcOJSqwIoC1pxJJ5wV56G9wEmGjLNwOC ycMNgcL0886W/BHjHOCVk8kf4cGizp5gmAYi9/8GDa4WrFp0di+bndWKAElHK4ZRFxOq qcG4yeLjNioc7G3gQZ967n1njNPh4lzaKf7+QCtP0SccaELbFT/nBzh/vk8tVjDWNLAh FFGEm8itQ087TQkDhQ8eel257E0XjUC3PLTb4VxRIw06zqpPQ+Lo5hlfDc41Pn/VZ0dF cj8Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y2-v6si14651591pgr.677.2018.06.19.08.07.05; Tue, 19 Jun 2018 08:07:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757201AbeFSPF6 (ORCPT + 99 others); Tue, 19 Jun 2018 11:05:58 -0400 Received: from mga02.intel.com ([134.134.136.20]:49800 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756712AbeFSPF4 (ORCPT ); Tue, 19 Jun 2018 11:05:56 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Jun 2018 08:05:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,243,1526367600"; d="scan'208";a="58515059" Received: from aluisell-mobl2.ger.corp.intel.com (HELO localhost) ([10.249.254.128]) by FMSMGA003.fm.intel.com with ESMTP; 19 Jun 2018 08:05:51 -0700 Date: Tue, 19 Jun 2018 18:05:50 +0300 From: Jarkko Sakkinen To: Andy Lutomirski Cc: X86 ML , Platform Driver , nhorman@redhat.com, npmccallum@redhat.com, LKML , Ingo Molnar , intel-sgx-kernel-dev@lists.01.org, "H. Peter Anvin" , Darren Hart , Thomas Gleixner , andy@infradead.org Subject: Re: [intel-sgx-kernel-dev] [PATCH v11 13/13] intel_sgx: in-kernel launch enclave Message-ID: <20180619150550.GD8034@linux.intel.com> References: <20180608171216.26521-1-jarkko.sakkinen@linux.intel.com> <20180608171216.26521-14-jarkko.sakkinen@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 08, 2018 at 11:50:14AM -0700, Andy Lutomirski wrote: > On Fri, Jun 8, 2018 at 10:32 AM Jarkko Sakkinen > wrote: > > > > The Launch Enclave (LE) generates cryptographic launch tokens for user > > enclaves. A launch token is used by EINIT to check whether the enclave > > is authorized to launch or not. By having its own launch enclave, Linux > > has full control of the enclave launch process. > > > > LE is wrapped into a user space proxy program that reads enclave > > signatures outputs launch tokens. The kernel-side glue code is > > implemented by using the user space helper framework. The IPC between > > the LE proxy program and kernel is handled with an anonymous inode. > > > > The commit also adds enclave signing tool that is used by kbuild to > > measure and sign the launch enclave. CONFIG_INTEL_SGX_SIGNING_KEY points > > to a PEM-file for the 3072-bit RSA key that is used as the LE public key > > pair. The default location is: > > It might be nice to use the infrastructure that Alexei added for > bpfilter (the umh_blob stuff) here, which is slated for merging in > this merge window. > > --Andy Thanks, not familiar with this work. Is there any documentation for it available? /Jarkko