Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10274683ybi; Thu, 11 Jul 2019 02:40:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqxP71n9k9UWG17k89aDkzvI4YbjU4z7vvE4IcrBSmO85jaI/zEoHC/c9FVD6SSFbRn8vl0n X-Received: by 2002:a17:902:8207:: with SMTP id x7mr3573223pln.63.1562838003086; Thu, 11 Jul 2019 02:40:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562838003; cv=none; d=google.com; s=arc-20160816; b=dzWbYzaIcimhM+WCcDbj8wYX2uhN5bOPgWSevh4HzqNavZq6FeApvQ30kIoscp9J61 hRcNZNRip6gdFovHXUD7aOrZrAERwIMDBrKH6mpA5sh6nX93CjjPNf4e1hBMj3WwHvFZ UiLC0gOa1X1s7r7TN06P9Z9UxVjq2eXIZUb3OC9Ezo0TvonyxMg9zmE554XNMPY/on6v XVCYN8yx/njYt/Yi4tAVKJrPARCYLxLXxBxMoYnrR9FQeDgtwziG47BbJzWRDuwJgK7d h3yy4a3hgIgJJzdXdNYkyOa7AffylSvG9KAmhdYL5L62exVcrX4p3srHrgoO9XY84QSn WwNQ== 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; bh=ZsBJgT3s7skV6+jGB5XqJbnhgRJ4iiWa1tvmIjXB72s=; b=jyQM1h4CvxpSmNNzGc60CK9wOkLbZKINgmfeFLjramwL9QFPFn80JyxqxMFsaEgtwb yN05UZoPQIOjIWe7g8QfXmKGWH4N5vw6lBi1IeDhgsqBZmAUyy96tW+G/0SIqfBreLuo kWGQsS0ApGMvWWr+t+y+yDDYq/4HD9xoUQ+mSrN02KeS1KS9fPJoFJIR4Zgm/6Ddu5a7 VlXLelU1gGdIawpydtWpkyK5CDQaGY5+p5aKPMVCxdaP+lkWs6C5xFQW8+UKPQCCNr88 pNe+WuWtHwdyFVRkmED7yvSOYxApuE1Bg936K7ipbOSY4KCFQE1OW4dBel2rNinHE2tv ZbcA== 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 n20si4509869plp.395.2019.07.11.02.39.47; Thu, 11 Jul 2019 02:40:03 -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 S1728304AbfGKJiN (ORCPT + 99 others); Thu, 11 Jul 2019 05:38:13 -0400 Received: from mga05.intel.com ([192.55.52.43]:49129 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727595AbfGKJiM (ORCPT ); Thu, 11 Jul 2019 05:38:12 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Jul 2019 02:38:12 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,478,1557212400"; d="scan'208";a="167976225" Received: from spoledic-mobl.ger.corp.intel.com (HELO localhost) ([10.252.50.84]) by fmsmga007.fm.intel.com with ESMTP; 11 Jul 2019 02:38:08 -0700 Date: Thu, 11 Jul 2019 12:38:09 +0300 From: Jarkko Sakkinen To: "Xing, Cedric" Cc: linux-kernel@vger.kernel.org, linux-sgx@vger.kernel.org, akpm@linux-foundation.org, dave.hansen@intel.com, sean.j.christopherson@intel.com, serge.ayoun@intel.com, shay.katz-zamir@intel.com, haitao.huang@intel.com, kai.svahn@intel.com, kai.huang@intel.com Subject: Re: [RFC PATCH v2 0/3] An alternative __vdso_sgx_enter_enclave() to allow enclave/host parameter passing using untrusted stack Message-ID: <20190711093809.4ogxe25laeoyp4ve@linux.intel.com> References: <20190424062623.4345-1-cedric.xing@intel.com> <20190710111719.nnoedfo4wvbfghq7@linux.intel.com> <686e47d2-f45c-6828-39d1-48374925de6c@intel.com> <20190710224628.epjxwlpqqxdurmzo@linux.intel.com> <20190710231538.dkc7tyeyvns53737@linux.intel.com> <27cf0fc7-71c6-7dc1-f031-86bf887f1fe1@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <27cf0fc7-71c6-7dc1-f031-86bf887f1fe1@intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 10, 2019 at 04:37:41PM -0700, Xing, Cedric wrote: > On 7/10/2019 4:15 PM, Jarkko Sakkinen wrote: > > On Thu, Jul 11, 2019 at 01:46:28AM +0300, Jarkko Sakkinen wrote: > > > On Wed, Jul 10, 2019 at 11:08:37AM -0700, Xing, Cedric wrote: > > > > > With these conclusions I think the current vDSO API is sufficient for > > > > > Linux. > > > > > > > > The new vDSO API is to support data exchange on stack. It has nothing to do > > > > with debugging. BTW, the community has closed on this. > > > > > > And how that is useful? > > > > > > > The CFI directives are for stack unwinding. They don't affect what the code > > > > does so you can just treat them as NOPs if you don't understand what they > > > > do. However, they are useful to not only debuggers but also exception > > > > handling code. libunwind also has a setjmp()/longjmp() implementation based > > > > on CFI directives. > > > > > > Of course I won't merge code of which usefulness I don't understand. > > > > I re-read the cover letter [1] because it usually is the place > > to "pitch" a feature. > > > > It fails to address two things: > > > > 1. How and in what circumstances is an untrusted stack is a better > > vessel for handling exceptions than the register based approach > > that we already have? > > We are not judging which vessel is better (or the best) among all possible > vessels. We are trying to enable more vessels. Every vessel has its pros and > cons so there's *no* single best vessel. I think reasonable metric is actually the coverage of the Intel SDK based enclaves. How widely are they in the wild? If the user base is large, it should be reasonable to support this just based on that. /Jarkko