Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1137506imu; Sat, 15 Dec 2018 15:28:56 -0800 (PST) X-Google-Smtp-Source: AFSGD/XTirK07wg2GKQ5fJIuo5lutDTVwGR4g/Cs0NqBkaOa5Nx3BvozvzlPTudWiKs1ipQPe68K X-Received: by 2002:a63:b4c:: with SMTP id a12mr7590028pgl.131.1544916536318; Sat, 15 Dec 2018 15:28:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544916536; cv=none; d=google.com; s=arc-20160816; b=hi7mvOlRyXFg/hyENI9ixAX+JBXH93MqwGLyb93hPjqIrPSdcyeMoEp7/VULVh2Q3C c+P3VtBZYo/VfZ8MxM8qolnBcu7S60MD9i9E8EQrV6HByb5/8mRkMNcHsNfFQas6FK/m /+cJcQg960peH0ToQiqJjh0W3KA7tA4dCfE+MkvhjS3KX+4149KdlhmQ9xFeKdvmjLh9 V5olcD5iQ83/j6Q3gHo/2TRHVDLMhLuDi12sjzSvBamo1lorqAzY5mHaqEGMaVS0xk7M /dX2X1JEvFBh0JGxqIV46tpvYRTpvHY9uOXLqLr67ierBDHk2idrn1br269tLfXA5iqn 3cHQ== 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:reply-to:message-id :subject:cc:to:from:date; bh=Td+Wvfx8GVjMes/ZG1i4IpziuqeoMiYTJPmqCkBpH+k=; b=kgmU6gJT/UpTnA1tAvofo5aF9Q9WYt3JA5u6VsXh3teLa71AOCxRi4q4Ku408CuOPo kuV85cEBTt4i4AecJwqaypGbkul1xfJ5yy8UoR5PpUmIyIO+hipC8IidwGWW54STy9GY mxQRMjLlGPKHKhJOTN1cjurZBhsC+2j178hRFi7b0OUMAaIohlXfG9BDdUui3jSMu6R6 x64fFpORSCjhok1QIytrWN1vyB2+3P/+fjW5xaakJbA0aV3weiJsIM8lBp4X7uh0plBn MnO7Xo82IM9o+zkM6pQy7B2zG8TcPfLrDnc/FpjfUt1PV64NLT6jf7/UNvilcLzHxnNT p8aQ== 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 h19si7543949plr.67.2018.12.15.15.28.03; Sat, 15 Dec 2018 15:28:56 -0800 (PST) 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 S1728813AbeLOXZ3 (ORCPT + 99 others); Sat, 15 Dec 2018 18:25:29 -0500 Received: from wind.enjellic.com ([76.10.64.91]:57290 "EHLO wind.enjellic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726615AbeLOXZ3 (ORCPT ); Sat, 15 Dec 2018 18:25:29 -0500 Received: from wind.enjellic.com (localhost [127.0.0.1]) by wind.enjellic.com (8.15.2/8.15.2) with ESMTP id wBFNMWWb023336; Sat, 15 Dec 2018 17:22:32 -0600 Received: (from greg@localhost) by wind.enjellic.com (8.15.2/8.15.2/Submit) id wBFNMVui023334; Sat, 15 Dec 2018 17:22:31 -0600 Date: Sat, 15 Dec 2018 17:22:31 -0600 From: "Dr. Greg" To: Sean Christopherson Cc: Jarkko Sakkinen , Andy Lutomirski , Andy Lutomirski , X86 ML , Platform Driver , linux-sgx@vger.kernel.org, Dave Hansen , nhorman@redhat.com, npmccallum@redhat.com, "Ayoun, Serge" , shay.katz-zamir@intel.com, haitao.huang@linux.intel.com, Andy Shevchenko , Thomas Gleixner , "Svahn, Kai" , mark.shanahan@intel.com, Suresh Siddha , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Darren Hart , Andy Shevchenko , LKML , jethro@fortanix.com Subject: Re: [PATCH v17 18/23] platform/x86: Intel SGX driver Message-ID: <20181215232231.GA22773@wind.enjellic.com> Reply-To: "Dr. Greg" References: <20181126230436.GA6737@linux.intel.com> <20181127085533.GA12247@wind.enjellic.com> <20181127164129.GB4170@linux.intel.com> <20181128104941.GA23077@wind.enjellic.com> <20181128192228.GC9023@linux.intel.com> <20181210104908.GA23132@wind.enjellic.com> <20181212180036.GC6333@linux.intel.com> <20181214235917.GA14049@wind.enjellic.com> <20181215000627.GA5799@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181215000627.GA5799@linux.intel.com> User-Agent: Mutt/1.4i X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.3 (wind.enjellic.com [127.0.0.1]); Sat, 15 Dec 2018 17:22:33 -0600 (CST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 14, 2018 at 04:06:27PM -0800, Sean Christopherson wrote: Good afternoon, I hope the weekend is going well for everyone. > On Fri, Dec 14, 2018 at 05:59:17PM -0600, Dr. Greg wrote: > > On Wed, Dec 12, 2018 at 08:00:36PM +0200, Jarkko Sakkinen wrote: > > > > Good evening, I hope the week has gone well for everyone. > > > > > On Mon, Dec 10, 2018 at 04:49:08AM -0600, Dr. Greg wrote: > > > > In the meantime, I wanted to confirm that your jarkko-sgx/master > > > > branch contains the proposed driver that is headed upstream. > > > > Before adding the SFLC patches we thought it best to run the > > > > driver through some testing in order to verify that any problems > > > > we generated where attributable to our work and not the base > > > > driver. > > > > > > The master branch is by definition unstable at the moment i.e. it > > > can sometimes (not often) contain unfinished changes. Use next for > > > testing. I update next when I consider the master contents "stable > > > enough". > > > > I noticed in the last day or so that you appeared to sync > > jarkko-sgx/master with jarkko-sgx/next, so I checked out a local > > branch against jarkko-sgx/next and ran it against our unit tests. > > Based on what we are seeing the driver is still experiencing issues > > with initialization of a non-trivial enclave. > master branch is broken, looks like the VMA code Jarkko is reworking is > buggy. I should be able to help debug this next week. > > [ 504.149548] ------------[ cut here ]------------ > [ 504.149550] kernel BUG at /home/sean/go/src/kernel.org/linux/mm/mmap.c:669! Rodger, dodger. Let us know when you think you have something working pushed up into one of the branches and we will put it on the bench here in the lab and see what our runtime is able to do with it. BTW, your new vDSO work appears to be shaping up well. Just out of curiosity though, how are you testing and validating the new vDSO based exception handler if it isn't possible to initialize and run an enclave with the new driver? We will look forward to hearing from you. Have a good remainder of the weekend. Dr. Greg As always, Dr. G.W. Wettstein, Ph.D. Enjellic Systems Development, LLC. 4206 N. 19th Ave. Specializing in information infra-structure Fargo, ND 58102 development. PH: 701-281-1686 FAX: 701-281-3949 EMAIL: greg@enjellic.com ------------------------------------------------------------------------------ "Don't worry about people stealing your ideas. If your ideas are any good, you'll have to ram them down people's throats." -- Howard Aiken