Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp76578yba; Mon, 20 May 2019 05:17:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqzE7+x12/eGo5TJ2Ib6Y1+O3scip4US+i2vBFhCo2dAxt8mwhQZKusfI4+/v++X9MgAVz3O X-Received: by 2002:a63:2c4a:: with SMTP id s71mr58143826pgs.343.1558354673709; Mon, 20 May 2019 05:17:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558354673; cv=none; d=google.com; s=arc-20160816; b=VGaaRAnyEMRIPL/AXd1IMqPp+wfxh1KwS1hVRx8EoIJGF8LrhwWmWx2vdg83wj4W5R Fy2uMYRJS4hRH3RbAkjjYN3C4v/Vngb8JXPg3B6MCc5Dcz/pEOxYJLe7JM2km1B7Qca2 H0muVe+ATs22hbb45lGF54p25VxxEZL+dZHS9niZ3G4it5CMdFi04qZ/oaxG+Awi+M8v xtH4FWujXSZXhOn2ImAbuk8CTb27f4UwA6aCBDU3p7BDBxNbB9ceSM7PY2dC2YLhMpXN rYVDuPdudahTNiDNVEsCS7TBvybnysfvPb6rxUZZ+LjO6DIIjADmLEsNlBUuXnDDBq6S svuQ== 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; bh=JIOMxxM359a/WHR0ywkT3+9W3yUfVa+zdA6kCtS1K5Y=; b=CqaYQz8QuT7kZ13lZWubViX+pnTz0AzW+SqEuiRYwb2iFMuYTrt/Ej0dybDvBvNai4 IHGK5r5PbkTym65gsRO1ub0FeEs1pSGIb4uSRwsw1e/O/icGJru3Tksgj2qf2KOmXb4o /p/PDD7F+UDJZ0nrqyKkYcUyneccy10F+91qK7c715IzfcAlWLndryI9Hn00oYOSy036 Sfk1YEUn1eFs9cXPVl4f9rEKIYU9NAhtJI7e28eOuT1gbodxr7f4gBHgta46ZarJbxH9 7W/ppsUmFZbeM9MaOfldN+Y/1RkrODsry0Z5QMh7fIqv7FKmNhaYB5BO0iUadKfftK6L K7YQ== 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 t20si18041246pfh.238.2019.05.20.05.17.39; Mon, 20 May 2019 05:17:53 -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 S1732222AbfETLgt (ORCPT + 99 others); Mon, 20 May 2019 07:36:49 -0400 Received: from mga05.intel.com ([192.55.52.43]:25764 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727626AbfETLgs (ORCPT ); Mon, 20 May 2019 07:36:48 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 May 2019 04:36:47 -0700 X-ExtLoop1: 1 Received: from mhauser-mobl.ger.corp.intel.com (HELO localhost) ([10.252.47.244]) by orsmga006.jf.intel.com with ESMTP; 20 May 2019 04:36:32 -0700 Date: Mon, 20 May 2019 14:36:31 +0300 From: Jarkko Sakkinen To: Sean Christopherson Cc: Andy Lutomirski , James Morris , "Serge E. Hallyn" , LSM List , Paul Moore , Stephen Smalley , Eric Paris , selinux@vger.kernel.org, Jethro Beekman , "Xing, Cedric" , "Hansen, Dave" , Thomas Gleixner , "Dr. Greg" , 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: SGX vs LSM (Re: [PATCH v20 00/28] Intel SGX1 support) Message-ID: <20190520113631.GC27805@linux.intel.com> References: <6da269d8-7ebb-4177-b6a7-50cc5b435cf4@fortanix.com> <20190513102926.GD8743@linux.intel.com> <20190514104323.GA7591@linux.intel.com> <20190514204527.GC1977@linux.intel.com> <20190515013031.GF1977@linux.intel.com> <20190517000331.GD11204@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190517000331.GD11204@linux.intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 16, 2019 at 05:03:31PM -0700, Sean Christopherson wrote: > The SGX ioctl() would need to take mmap_sem for write, but we can mitigate > that issue by changing the ioctl() to take a range of memory instead of a > single page. That'd also provide "EADD batching" that folks have > requested. This should be easy enough to add as the EADD operations are already batched internally to a worker thread. /Jarkko