Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2713072imu; Mon, 17 Dec 2018 06:40:59 -0800 (PST) X-Google-Smtp-Source: AFSGD/VcqhXoXqXOnwuVv9Q2B5KUN92E88Tl/RWgUpo3KWod3wZFMMhfQg+7JAsP57uNhckIBQd7 X-Received: by 2002:a17:902:d806:: with SMTP id a6mr12323754plz.172.1545057659914; Mon, 17 Dec 2018 06:40:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545057659; cv=none; d=google.com; s=arc-20160816; b=R2Z3is+37W1RyvKwb1Q5LaxCjmxnl9UT3dNT/V1ohTnszH1BcWFooHry9aDTCPKvUZ S4afu0HsSZQYs57bLXq+80NWnEpwZIQ8Mh5Y9vEARIHm6aS7QneUlvs04P1v3Dp1n42K kN6CL/8KpkF2leQJOUAEqFnqsxxlrLuCWRctlutlpSu51yP0lESOKTUBGK169Z0Ac9UZ yJfU9UJnK5K1xx2sM8JCIGbx1jLpGeJLATabQSL9BYYwyTwj5ZXvttnnzI/MUG704bdr k1ts9O6EQTAwNX0jAPaW2gIA2wFMLO46qNXu0bIGJvClIVynNqILspxOrvTZJtoAebUd /vBQ== 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; bh=RN95DY1eZAKXC/fQ3RsXiRQ9cRBVgNcJ/ep/mEcAPjA=; b=SyR9iNdLQLU8PIdqWt0BrRdFEjmih8GkZmUSzM/nrhFMZjJhAwtZVKj6e1WS9eKfdf ExmrFS0S7fsNUxQRG5+Xg6TwZAkOqFxwb6QPIVMZxcdZODxCrFGd9WiPxdDZ8ddl6sVe jtuz473DERyujAMe42Pc5BuvuT/nlTXu1MhVdWfGbwuDawiMkywQViEVpAzl4/ZwIiXY ncYQNUoB1/ITbq8UN5u3nbixUZDCTEeqh3Gsu+Ao7wPBtbdbWs671HfTksgkuhvz6/HC 9yWxxCNBMWkf2gbuIoCJ5pa1eYW/3AibMpU4v0iuE/xt2Erqim7REquT9kiXOziCt6It z9kg== 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 r39si11267298pld.434.2018.12.17.06.40.44; Mon, 17 Dec 2018 06:40:59 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732482AbeLQO1X (ORCPT + 99 others); Mon, 17 Dec 2018 09:27:23 -0500 Received: from mga04.intel.com ([192.55.52.120]:56576 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726315AbeLQO1X (ORCPT ); Mon, 17 Dec 2018 09:27:23 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Dec 2018 06:27:22 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,365,1539673200"; d="scan'208";a="110108395" Received: from sjchrist-coffee.jf.intel.com (HELO linux.intel.com) ([10.54.74.154]) by fmsmga008.fm.intel.com with ESMTP; 17 Dec 2018 06:27:22 -0800 Date: Mon, 17 Dec 2018 06:27:21 -0800 From: Sean Christopherson To: "Dr. Greg" 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: <20181217142721.GA12491@linux.intel.com> References: <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> <20181215232231.GA22773@wind.enjellic.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181215232231.GA22773@wind.enjellic.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Dec 15, 2018 at 05:22:31PM -0600, Dr. Greg wrote: > 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? Cherry-pick the patches to a stable version of the driver, the vDSO code doesn't use any of the SGX APIs.