Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp79082yba; Mon, 20 May 2019 05:20:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqzp8bYHqOiI8JjG2KCT35GZMosdGg5CctvlwXD7ZrNr/kxjg3A3Wh2T+9e1Gmiahw8NicXR X-Received: by 2002:a17:902:2983:: with SMTP id h3mr49446425plb.267.1558354822601; Mon, 20 May 2019 05:20:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558354822; cv=none; d=google.com; s=arc-20160816; b=cCH0GAFaqxCOwR4C8FhqOxEkYSdSMzG50A3crU69UNmlv1pAKM1TXpCGkQKoXNZzVv y0Zr2FGVlCBSaJLqtM+nPrOS3jrhmKxOhBGh09W+51OvIE3Mm/zSIvPt+afQ4jbdQIAk B70L566sna5oOrLPXmdJclcScu+O4PuDfC2SnRUALjdUXpjvoNK8YsefHbaNsnjfqYsA vT+6yLlTMIXZFN3rU0qXbGGhfGP3WkKUWb3SKcBqMipgK0v2RloIs0r3KPEciUJqTmwN mxCeLnuXfjanCgAnrSbmf2mGxD8l28R+scPuULgXxQde3oHSAseQ443xqzBtf9LQcW8X aB+A== 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=vz+3hhu1pXcH9M5OFtn/hxepgGeBtHOBgWL2MSiwWB4=; b=zzHPFX8d/SnbnS1z4gSSgctSGQjK0Dl/wVEhudo0i4KfJ3pvV8uMIM65p0/hzgqtYH WuebT5fBYdQVZnafa73FI5NjCNWAnoxJNQteH5zGJ4WFgnWACUXP/9pf5P6O/SVsG/b8 o7k1CkSHPg4D/29INdGJ6vj/eAOTt+2aEESRa+bRuBNieEJHb5Eo93HYHi2DU7TTIFNb LAV+mPRHhLGm5LSY2rcVRUvOrYNsgBK3z1siHQGoGSL+BxhSkeroejLkH76MNpoKG8yC XmJPBtrlEAIPjIQKbxWoJ1a6vm7MJzlG9soBC0TIzAx5vJ/doGdoxEw38FQQP2mxoY55 I+Uw== 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 v83si17284340pgb.461.2019.05.20.05.20.07; Mon, 20 May 2019 05:20:22 -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 S1731303AbfETLmq (ORCPT + 99 others); Mon, 20 May 2019 07:42:46 -0400 Received: from mga02.intel.com ([134.134.136.20]:30629 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725372AbfETLmq (ORCPT ); Mon, 20 May 2019 07:42:46 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 May 2019 04:42:45 -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:42:29 -0700 Date: Mon, 20 May 2019 14:42:28 +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: <20190520114228.GE27805@linux.intel.com> References: <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> <20190517154128.GA15006@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190517154128.GA15006@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 Fri, May 17, 2019 at 08:41:28AM -0700, Sean Christopherson wrote: > It was a requirement prior to the API rework in v20, i.e. unless someone > was really quick on the draw after the v20 update all existing userspace > implementations mmap() the enclave before ECREATE. Requiring a valid > enclave VMA for EADD shoudn't be too onerous. Still underlining: it is not required. /Jarkko