Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp1462463ybm; Thu, 23 May 2019 01:12:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqzhkKElV1hG9+1dnDpA5Y68thJk++Z4W7PWlwPtWDYfsyfP7rUoKo98Jmx3nhhtKTVBU8NG X-Received: by 2002:a65:63c8:: with SMTP id n8mr90873630pgv.96.1558599154981; Thu, 23 May 2019 01:12:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558599154; cv=none; d=google.com; s=arc-20160816; b=aGN8AUIBOEA3TUj7Blva3WeVYInDhKsf5pFk4D1FQOzBKZH5D5gvvQuHXjo+/83B7Y dlNhtaZej/P7925zWMhTpl824pMTzyRvZdm3vUE50dL3O4qD9ulFwNtcFjOcv3qoAfKB 1LHW7Y2I/XY38hpMK4KrgwCTul6prnEqiWn3VetR4WjDDosiDzqBTq8K1UWTGH5q9ERt dXznEVziOxurSjaIJ5YZnDySdiQG9Va4FTDl5Lt3i3DThcUySS+Tj8/q8Ih+VaqbVeQN esquSszIgbXLrOtwxZ0d2m6vFEKNC90yZuIK8GSZ5LkLk5oAmUHNnmEw1xxTEDm6A1TA xeog== 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=up1PVDTGemHg5GjRdNmNgvJMY9Rp7SdxkMk5WvYYoL4=; b=RXbQcTA3sKYdI/tl4iJS0qGQ8HSAsAc8GT3Lbm6fJ42ehHyB2ZSB2fgQ22Z6Y0spoz 7SwLuxoV2Gpzo7oY/BCZsJCGSrNEhjjgKVYtZ6ToKEneEeTbHt8T2ixKsWjtxAsVI/Ic rrDZjsYVPuE0gclnTP7PzUuFndWj2sOaPa+6n0pG6jknAk8Kx29rcmtdg66Lg0CBeD4Q LO07no/4uWBJ4uw3Jh8+DaKbw4+C9Lu+IfuIWKphQBSVxYbCGA4k2nZOaUZEfqzCQwDA VTUZgFOSyZROLFsghN9uU7gY67kVJrLFbSRu41BnAkuIzCIU83QRsoPoxC3PWh2aiFXb SphA== 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 b14si30474783pgk.423.2019.05.23.01.12.16; Thu, 23 May 2019 01:12:34 -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 S1730028AbfEWILB (ORCPT + 99 others); Thu, 23 May 2019 04:11:01 -0400 Received: from mga07.intel.com ([134.134.136.100]:11568 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726070AbfEWILA (ORCPT ); Thu, 23 May 2019 04:11:00 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 May 2019 01:10:59 -0700 X-ExtLoop1: 1 Received: from jsakkine-mobl1.tm.intel.com (HELO localhost) ([10.237.50.189]) by orsmga007.jf.intel.com with ESMTP; 23 May 2019 01:10:48 -0700 Date: Thu, 23 May 2019 11:10:48 +0300 From: Jarkko Sakkinen To: Andy Lutomirski Cc: Sean Christopherson , Stephen Smalley , James Morris , "Serge E. Hallyn" , LSM List , Paul Moore , 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: <20190523081048.GA10955@linux.intel.com> References: <20190517000331.GD11204@linux.intel.com> <20190520114105.GD27805@linux.intel.com> <20190521151836.GA4843@linux.intel.com> <20190521155140.GE22089@linux.intel.com> <20190522132022.GC31176@linux.intel.com> <20190522132227.GD31176@linux.intel.com> <0e183cce-c4b4-0e10-dbb6-bd81bea58b66@tycho.nsa.gov> <20190522153836.GA24833@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.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 Wed, May 22, 2019 at 03:42:45PM -0700, Andy Lutomirski wrote: > As far as I know from this whole discussion, we still haven't come up > with any credible way to avoid tracking, per enclave page, whether > that page came from unmodified PROT_EXEC memory. So is this in the context that the enclave is read from another VMA and not through a file descriptor? Is that locked in? /Jarkko