Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp5595541imm; Tue, 19 Jun 2018 13:05:30 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJp3gogKOEQIaitjaPzKoP1873zALTWLyaxnPN15sZGtBkUK4lOanvxSVFyPrxq9Pvsmv1k X-Received: by 2002:a63:5014:: with SMTP id e20-v6mr16040996pgb.133.1529438729934; Tue, 19 Jun 2018 13:05:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529438729; cv=none; d=google.com; s=arc-20160816; b=mbMhhiZoTLh534tOZi4ap9NrF+WkCHg3MeNyD8ZpJiFNa4fKCYtnv7V+GBzPeJWunq 04ziXKabIXpJHCLC1mBE7Y157X9NTIxuq0dZaVVxXyDN3y04arkJkV+XvYRzzMiPITzC 51pLN0O0TKgWgJkb44aFzFUc2T5NK8H01xv1pvbN/oVc1kHJlGXt2aDUizNsUiBvwzt5 DB8vJqM69fToSu7RCV1uq79Q/kWlxvmVgY1WfZiq2O4UHxgZQrLbtdJeIuIlcgMqW5yV Lz3Dg7jHAeK5qgDvK6kE33oJyzfZeqrHlQJKzHFTBw6DENmqwCBmXa5AIUhLpv1TdyPC +qiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=rcZ6aX1hspMIcJq+ApQFmne9QruXzLD8d8MLcghofsU=; b=hc9JPwyhAYeNpzTz9MoD1PMtqgsJr8hJkVL7i82z6xBqgjb4PSsszr7rE19SLkX9sI PHvWyHjyHlXYZX2ZW+Ib26uTBwua/YKLKyhmgZ25W1KrRLgQ32WvPdpvSROwij7+Vr41 2OVpWBhAWNEJJyKVnhYYOKYTi0gBlJBV47e5GeIexWYL9haFEzgCW9K5fsMOO2jRFljk PJdMH+3N7+ib29Tvefjx+nFm1SwKiY0V8w1hKxZoncrefxOOuhBbUpXRnN0b5NS92nW1 61RCqaze+vjac+eWtbYE9/BedCjbgBGrfoMhLRBOtrbV0D5znlsbjBfPYCxZPGvMfcNJ fsyQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g12-v6si364695pla.194.2018.06.19.13.05.02; Tue, 19 Jun 2018 13:05:29 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030665AbeFSUEV (ORCPT + 99 others); Tue, 19 Jun 2018 16:04:21 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:53572 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030259AbeFSUET (ORCPT ); Tue, 19 Jun 2018 16:04:19 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 21DF98051E; Tue, 19 Jun 2018 22:04:16 +0200 (CEST) Date: Tue, 19 Jun 2018 22:04:15 +0200 From: Pavel Machek To: Jarkko Sakkinen 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: <20180619200414.GA3143@amd> References: <20180608171216.26521-1-jarkko.sakkinen@linux.intel.com> <20180612105011.GA26931@amd> <20180619145943.GC8034@linux.intel.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="5mCyUwZo2JvN/JJP" Content-Disposition: inline In-Reply-To: <20180619145943.GC8034@linux.intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --5mCyUwZo2JvN/JJP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue 2018-06-19 17:59:43, Jarkko Sakkinen wrote: > 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 applica= tions > > > to set aside private regions of code and data. The code outside the e= nclave > > > is disallowed to access the memory inside the enclave by the CPU acce= ss > > > control. In a way you can think that SGX provides inverted sandbox. = It > > > protects the application from a malicious host. > >=20 > > Do you intend to allow non-root applications to use SGX? > >=20 > > What are non-evil uses for SGX? > >=20 > > ...because it is quite useful for some kinds of evil: >=20 > The default permissions for the device are 600. Good. This does not belong to non-root. But question still remains: What are some non-evil uses for SGX? Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --5mCyUwZo2JvN/JJP Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlspYb4ACgkQMOfwapXb+vJoHgCfQETW41371wt6g9JNvkkPCbRX L7kAn1QrI68f6vHPl4zK49NAGUx7naPO =WZ8V -----END PGP SIGNATURE----- --5mCyUwZo2JvN/JJP--