Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1293478ybi; Thu, 30 May 2019 15:05:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqxjT7HissfpDRl9pZwFaMEI4y+HQV5p8hAcH8N6114vSs7XMrTvRC5xVn+o0okFq4o6dpqO X-Received: by 2002:a65:628d:: with SMTP id f13mr5643578pgv.177.1559253906416; Thu, 30 May 2019 15:05:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559253906; cv=none; d=google.com; s=arc-20160816; b=GHWAyRrqZloaaTItYmL2wzPG/ZZnYsecbiCXuYjKvESz5MH60fKIJRh/IIrqBbtLXg bRrNoycUySDnk8flmnwqAFPZ8W4+X9YzjnnY915xsMCl4LAuAJXc9Ce6+M/+788WnsV4 0UhszwxmCMUVLpe2txjSPl8VEchSzWo7iNGOlRY+sYi2NNUQDjKaX52wPK2sruTVkSIV dqNELpC2xDcTonT2LT3sDoJTLrAYoQ8VDx+pD0LUpDlI5KHbDgxhDxy3O2sv49qNQ/Ls ECt58fc8Z7b33hnlS5Q0PBvSTh2mCA3DdajwYeB4XEjYtFksVvLKqrAEhPfGAyk2MQ96 mQ5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :dlp-reaction:dlp-version:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from; bh=Ug7XmaSucNYiRrq7eHkv8JZ4DxFZmfZmTHbQgjCaUUE=; b=wUM1eiURygCQZBlU+um8XtcKVC2Ow1MwJ9wtCb6C6cIppVrVOAGiX169alPqhtVDLV xAzGUk1kpclYIDO+dnFgP+BmR8oyh3kAkAIsGTvtmDGLHPujrK2UIAkJgENOaBXeXDoQ cAUXrPP0Gyr7rqHF2c13izwjpGCLTMp8fodnOF5FQ51L0qyGlHWz/HVX+uULwLa9B7tW TSNSAhCwpIqgFKsSYBiuYME5yvvljsabSBFM0yRLV0HRJBRL+cx4IYUnlPqW5WTQzNvy Bgw/hC7+v/CbbFbKEzOUGXW5ou8nu64wmKURhAqE2zMj62dAe0OuB+xlU5KdjR/r4fQH dGMw== 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 t25si4057004pgk.442.2019.05.30.15.04.50; Thu, 30 May 2019 15:05:06 -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 S1727032AbfE3WDi (ORCPT + 99 others); Thu, 30 May 2019 18:03:38 -0400 Received: from mga04.intel.com ([192.55.52.120]:42231 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726590AbfE3WDh (ORCPT ); Thu, 30 May 2019 18:03:37 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 30 May 2019 14:48:45 -0700 X-ExtLoop1: 1 Received: from orsmsx107.amr.corp.intel.com ([10.22.240.5]) by orsmga004.jf.intel.com with ESMTP; 30 May 2019 14:48:44 -0700 Received: from orsmsx158.amr.corp.intel.com (10.22.240.20) by ORSMSX107.amr.corp.intel.com (10.22.240.5) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 30 May 2019 14:48:44 -0700 Received: from orsmsx116.amr.corp.intel.com ([169.254.7.165]) by ORSMSX158.amr.corp.intel.com ([169.254.10.135]) with mapi id 14.03.0415.000; Thu, 30 May 2019 14:48:44 -0700 From: "Xing, Cedric" To: Andy Lutomirski , "Christopherson, Sean J" CC: Stephen Smalley , William Roberts , Jarkko Sakkinen , James Morris , "Serge E. Hallyn" , LSM List , Paul Moore , Eric Paris , "selinux@vger.kernel.org" , Jethro Beekman , "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) Thread-Topic: SGX vs LSM (Re: [PATCH v20 00/28] Intel SGX1 support) Thread-Index: AQHVC0vUmIXibKT8TUm/EUnHn2XAfqZu5q2AgAAGWoCABXOKgIABz2SAgAAI9ACAAWgPAIAAAJWAgAAJhACAAByGAIAAdoKAgABA+ICAAIOmAIAAQKcAgAAWeICAAIbLAIAAGyYA///WAeCAARtHgIAAIeCAgAADbAD//5AmcIAAjJAAgAAHN4CAABd5AIAAFI2AgAARBICAAPo7MIAArTmA///E0eAAlLibAAAlK2+AABHNCZAAIP3eAAAAS7MAAAEoiAAAAm/EAAADvKcAAALHiIAACtLzcA== Date: Thu, 30 May 2019 21:48:43 +0000 Message-ID: <960B34DE67B9E140824F1DCDEC400C0F654EB8BA@ORSMSX116.amr.corp.intel.com> References: <960B34DE67B9E140824F1DCDEC400C0F654E965F@ORSMSX116.amr.corp.intel.com> <960B34DE67B9E140824F1DCDEC400C0F654E9824@ORSMSX116.amr.corp.intel.com> <20190528202407.GB13158@linux.intel.com> <285f279f-b500-27f0-ab42-fb1dbcc5ab18@tycho.nsa.gov> <960B34DE67B9E140824F1DCDEC400C0F654EB487@ORSMSX116.amr.corp.intel.com> <678a37af-797d-7bd5-a406-32548a270e3d@tycho.nsa.gov> <20190530180110.GB23930@linux.intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZTMwZTgwYzYtZGJkZC00MGQyLWI4NGEtNjBjMjQ1MWJhMTQ5IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiNDFtTTBzNzA5ektIVUhZMVhZQ0pUWlpPUzlkeGEwR1I0RXVJejNDd25DU1hqUVFaMGM1SVAxbHdcL0U1dmV6V0MifQ== x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.600.7 dlp-reaction: no-action x-originating-ip: [10.22.254.139] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgQW5keSwNCg0KSSdtIGp1c3QgY3VyaW91cyBob3cgU2VhbiBjb252aW5jZWQgeW91IHRoYXQg Ik1BWFBFUk0gZG9lc24ndCB3b3JrIi4gTW9yZSBzcGVjaWZpY2FsbHksIEknbSBvYmplY3Rpbmcg dG8gdGhlIHN0YXRlbWVudCBvZiAidGhlIGVuY2xhdmUgbG9hZGVyIHdvbid0IGtub3cgYXQgbG9h ZCB0aW1lIH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