Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3675164imm; Mon, 25 Jun 2018 02:43:25 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJfp+xJQPPV6v5flesjudg9R3H71JPDm/5OQEte9nU4a84bLDQJiZRsYnvy6y5sH4Lsr546 X-Received: by 2002:a63:aa03:: with SMTP id e3-v6mr10148578pgf.169.1529919805115; Mon, 25 Jun 2018 02:43:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529919805; cv=none; d=google.com; s=arc-20160816; b=V1qBbHtl7QaUO/3T3sXuXM/Y7GIISGmmFZxopXjvG1tOOlt4yfZGb5ZSu+rQdIZiWW kKutXmqGAkUCJwmi1rGMzElSPcYudSfknsU3pZOPS7gZ5eFLfEn/PDGEOvJuqttKBIbv OxO2Q7a+IHFnkCHp2fqCm2C//p+pAuAh0oqmIe8ngHd9MIjQDgB7AG1b2vNuhiPMVv3M 81qPh6ozCLuYjZ8s4mfG1pkdGuX1kN3yrF2HJwgn3Og47YMiOFeWmo5PZYALopnTofpu M6q5pZPcY0lpofCaRws0NGPOuS0WK5qTx3yPaYam1CIqa+CVOlTekTZlJigyrL+UDjhe +yyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:date:cc:to:from:subject :message-id:arc-authentication-results; bh=4YXtjDoiaVguJzwH8d5KBt0Z/PgFV4cCuTOp/1PrdZM=; b=Xq6n3PVJFMlRlfuIxYoKilSKT3ZLfSuYEe8BvKsT2PQlyjNmYLaYOsarvT2tNiK8IP ga0IJLIcXlVlPMcBeb4cvNbmeZ30Y7CqZOeJ32dIGhcVj8vcYthjTdQOb0UjjMKlOcwP kWttl6AwQGsVRWnxGcZbzWjaD2K5LDhk1YwNpjZ0/QOAY+3bcsyJGljxNb9b6ipAAq7D imMeLKsrsj480qPZ5b1tM2VuARdxC8ZvfdUivWWfm/GRFiNCad8vLU8T1xzWE832Jd1C DYk8GRQIXyqae4btxRZdXREyTSeK1ZBD13kcRMI1yhBD9QFQqtgtuzxpG4aB+3S6PRnh rpAg== 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 c2-v6si13934997pfm.26.2018.06.25.02.43.10; Mon, 25 Jun 2018 02:43:25 -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 S1754900AbeFYJlQ (ORCPT + 99 others); Mon, 25 Jun 2018 05:41:16 -0400 Received: from mga03.intel.com ([134.134.136.65]:61801 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754378AbeFYJlO (ORCPT ); Mon, 25 Jun 2018 05:41:14 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Jun 2018 02:41:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,269,1526367600"; d="scan'208";a="66080172" Received: from jsakkine-mobl1.tm.intel.com ([10.237.50.42]) by fmsmga004.fm.intel.com with ESMTP; 25 Jun 2018 02:41:09 -0700 Message-ID: <73b7e4e3712074b73f4ac8211699d24dfdced6bf.camel@linux.intel.com> Subject: Re: [intel-sgx-kernel-dev] [PATCH v11 13/13] intel_sgx: in-kernel launch enclave From: Jarkko Sakkinen To: Nathaniel McCallum , sean.j.christopherson@intel.com Cc: jethro@fortanix.com, luto@kernel.org, Neil Horman , x86@kernel.org, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, mingo@redhat.com, intel-sgx-kernel-dev@lists.01.org, hpa@zytor.com, dvhart@infradead.org, tglx@linutronix.de, andy@infradead.org, Peter Jones Date: Mon, 25 Jun 2018 12:41:08 +0300 In-Reply-To: References: <20180608171216.26521-14-jarkko.sakkinen@linux.intel.com> <20180611115255.GC22164@hmswarspite.think-freely.org> <20180612174535.GE19168@hmswarspite.think-freely.org> <20180620210158.GA24328@linux.intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.1-2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? /Jarkko