Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp5283281imm; Tue, 19 Jun 2018 08:01:15 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJtavgY3G2Z8kOCcix+WTAQtjFCX/gWQQdwQ5L6tO0tO5u6UDeGI9xTD4sgshEij3Sl7Ka5 X-Received: by 2002:a17:902:b60c:: with SMTP id b12-v6mr19374150pls.44.1529420475888; Tue, 19 Jun 2018 08:01:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529420475; cv=none; d=google.com; s=arc-20160816; b=vsu/xEpqzeVDNnjo7iZpqHTBYn68YhRViSDMCGNxiECu8mshHE8FGtOjeBoJ/Uje0N CSLGyqQ5moX0qGwM2FesIX4v932gPFKqDE1SWfIdy2u+KdwvsykM8NZ1hzbZIwQYtWPx lGFngMtPqQkQ/3u8xj7/WECM/8ZgNU6M889Nz3Mwnyt6hPkRVYj5dDF/xV9HB+ps/uit lfadcQ0M2tp5pLJOgQo51+sGZqrLPLX5QERtM3rAcVFReha5FmVZi21NGw66DFwYJxj6 aJGSuErQ6a0atGdSEdGTJQQzC8SOJwzEdzvICaDW+QZap5nD5v2P2IhNPS+QpeqUB+DF NBvg== 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:arc-authentication-results; bh=7BAqHpuvUcdcwkR2L0l0PFYHBn68NsMo0z0G8K2jjDk=; b=IYZD77lNrX6o3oatFwLwQd3kIr62LUJs71cd2pUwwxAU/uHuKMvLvDCVQNIO35RCdf zMPh4scYgvu2nr60xAubd+Vrfq5LF9cY5YPKylJijZs2hOcIIXkfCWphD9vSm/qmI5Bu pU+Vwj7wYobiiEVCAL17jVS2CHHurNF4jMWq5kR/jKQ6cn483NLr5dra8J/ePV96L991 Z+iwXB8d84CJprGvP3bKhhVRypA8C+D5igFKoaWHNtg/QzUHJipO0ZAxQgBmlbj6XOOc a11bwRvYegVT5k2kOT/Ga65h2s1QgPBTjjfzR3lXRVfPmwCVfW7qtEQIYx69K+JJyAGL KkLw== 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 i1-v6si17215331plt.183.2018.06.19.08.00.58; Tue, 19 Jun 2018 08:01:15 -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 S966483AbeFSPAJ (ORCPT + 99 others); Tue, 19 Jun 2018 11:00:09 -0400 Received: from mga06.intel.com ([134.134.136.31]:48010 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756803AbeFSPAG (ORCPT ); Tue, 19 Jun 2018 11:00:06 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Jun 2018 08:00:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,243,1526367600"; d="scan'208";a="58513290" Received: from aluisell-mobl2.ger.corp.intel.com (HELO localhost) ([10.249.254.128]) by FMSMGA003.fm.intel.com with ESMTP; 19 Jun 2018 07:59:45 -0700 Date: Tue, 19 Jun 2018 17:59:43 +0300 From: Jarkko Sakkinen To: Pavel Machek Cc: x86@kernel.org, platform-driver-x86@vger.kernel.org, dave.hansen@intel.com, sean.j.christopherson@intel.com, nhorman@redhat.com, npmccallum@redhat.com, Alexei Starovoitov , Andi Kleen , Andrew Morton , Andy Lutomirski , Borislav Petkov , "David S. Miller" , David Woodhouse , Greg Kroah-Hartman , "H. Peter Anvin" , Ingo Molnar , "open list:INTEL SGX" , Janakarajan Natarajan , "Kirill A. Shutemov" , Konrad Rzeszutek Wilk , "open list:KERNEL VIRTUAL MACHINE FOR X86 (KVM/x86)" , Len Brown , Linus Walleij , "open list:CRYPTO API" , "open list:DOCUMENTATION" , open list , "open list:SPARSE CHECKER" , Mauro Carvalho Chehab , Peter Zijlstra , "Rafael J. Wysocki" , Randy Dunlap , Ricardo Neri , Thomas Gleixner , Tom Lendacky , Vikas Shivappa Subject: Re: [PATCH v11 00/13] Intel SGX1 support Message-ID: <20180619145943.GC8034@linux.intel.com> References: <20180608171216.26521-1-jarkko.sakkinen@linux.intel.com> <20180612105011.GA26931@amd> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180612105011.GA26931@amd> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 12, 2018 at 12:50:12PM +0200, Pavel Machek wrote: > On Fri 2018-06-08 19:09:35, Jarkko Sakkinen wrote: > > Intel(R) SGX is a set of CPU instructions that can be used by applications > > to set aside private regions of code and data. The code outside the enclave > > is disallowed to access the memory inside the enclave by the CPU access > > control. In a way you can think that SGX provides inverted sandbox. It > > protects the application from a malicious host. > > Do you intend to allow non-root applications to use SGX? > > What are non-evil uses for SGX? > > ...because it is quite useful for some kinds of evil: The default permissions for the device are 600. /Jarkko