Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2646781yba; Mon, 22 Apr 2019 10:24:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqxr3guf39vAZD9Zpdk6bUT9R7tq/G/hqulY1OgLFYa1Ane/0KzzJ/IvhzsFmVEE+7b/H1m0 X-Received: by 2002:a62:ee0a:: with SMTP id e10mr21447208pfi.6.1555953897466; Mon, 22 Apr 2019 10:24:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555953897; cv=none; d=google.com; s=arc-20160816; b=zyVKQaoRxH308TZ8WIvKGBnEgDA37CD6K+F6qlw4/k6U0MTweN7zsYkGAlzGdPg/De Fv9PtO87sV3sod7jtSyoeJLagrIelhHVV+PtKlNnMIoLze3LtdH4gi8Xcrp6CvZu0HcH G0fKdz1BQUa2j0YWn710UQz3xYpfkooT1Ol/VM6JQPgjxvM8EpIdt4LWz+JxnZJYzE8U eXZerecp6m0hd9+ZW/gfvh9KB83V3Yvf3/adHW2uBfgI50Hb7IdxTacfd2WSCKnPcmx/ /VqGZq47JAIYDCBWDZi2L5xOfOamQiAV3lp+HvdVQrRbMXQKyxfV3vDWsCbYWdWR3HLO Xyog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Z6x1cZ1+PvBEaiA8jAs5ZHpH48nhXSoJhE8akzAaOtg=; b=iiyH3inRxrzxCRa4uJqUX+UG+zSeYnuWP/g3529xZY13wTJd//sGROuJnzEMA2fux5 wamZFn55OdRau1u0ZStsr4AztPKJTdFWJ8SJocjE2j24ZGcl4QZOVLM3zQOohlIyGoVn K+y/dH2I2fuY/Af/DeQxQebchIc0I5Qo6Xc3/mEd1CoTcUygSsLDrzBh6zTQDAKA9brR avpanThWPcQ5NcwiYBFhpf41tpkuDGNDL99/heKe15rFDrKUIsDxXXNqn0a3owKpO4x8 LcfcCwCeKLp19wYasXM2lkwtfUYHJutSgc0PAPhZrmXxRIeaP70BHv495KnG7a+uSste upoA== 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 e35si14186953plb.38.2019.04.22.10.24.41; Mon, 22 Apr 2019 10:24:57 -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 S1728386AbfDVQsg (ORCPT + 99 others); Mon, 22 Apr 2019 12:48:36 -0400 Received: from mga05.intel.com ([192.55.52.43]:62086 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728215AbfDVQsa (ORCPT ); Mon, 22 Apr 2019 12:48:30 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Apr 2019 09:48:29 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,382,1549958400"; d="scan'208";a="339732309" Received: from sjchrist-coffee.jf.intel.com (HELO linux.intel.com) ([10.54.74.181]) by fmsmga005.fm.intel.com with ESMTP; 22 Apr 2019 09:48:28 -0700 Date: Mon, 22 Apr 2019 09:48:27 -0700 From: Sean Christopherson To: "Dr. Greg" Cc: Thomas Gleixner , Jethro Beekman , Andy Lutomirski , Andy Lutomirski , Dave Hansen , Jarkko Sakkinen , Linus Torvalds , LKML , X86 ML , "linux-sgx@vger.kernel.org" , Andrew Morton , "nhorman@redhat.com" , "npmccallum@redhat.com" , "Ayoun, Serge" , "Katz-zamir, Shay" , "Huang, Haitao" , Andy Shevchenko , "Svahn, Kai" , Borislav Petkov , Josh Triplett , "Huang, Kai" , David Rientjes Subject: Re: [PATCH v20 00/28] Intel SGX1 support Message-ID: <20190422164827.GC1236@linux.intel.com> References: <2AE80EA3-799E-4808-BBE4-3872F425BCF8@amacapital.net> <49b28ca1-6e66-87d9-2202-84c58f13fb99@fortanix.com> <444537E3-4156-41FB-83CA-57C5B660523F@amacapital.net> <5854e66a-950e-1b12-5393-d9cdd15367dc@fortanix.com> <20190420160247.GA17291@wind.enjellic.com> <20190422150119.GA1236@linux.intel.com> <20190422162411.GA27389@wind.enjellic.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190422162411.GA27389@wind.enjellic.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 22, 2019 at 11:24:11AM -0500, Dr. Greg wrote: > On Mon, Apr 22, 2019 at 08:01:19AM -0700, Sean Christopherson wrote: > > Good morning to everyone, I hope the week is starting well. > > > On Sat, Apr 20, 2019 at 11:02:47AM -0500, Dr. Greg wrote: > > > We understand and support the need for the LSM to trap these > > > events, but what does LSM provenance mean if the platform is > > > compromised? That is, technically, the target application for SGX > > > technology. > > > No, it's not. Protecting the kernel/platform from a malicious > > entity is outside the scope of SGX. > > You must have misinterpreted my statement, providing security > guarantees in the face of a compromised platform is exactly what SGX > was designed to do and is how Intel is marketing the technology. Right, and loading a malicious enclave doesn't change those guarantees (for other enclaves). Ergo, restricting which enclaves can execute is orthogonal to the security provided by SGX.