Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10272036ybi; Thu, 11 Jul 2019 02:37:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqzn3ixd9ea0zIdFeTeF2casLgug8SwO7xIjRUzUAr28esQU0uq17zxIXnykIa0jXDQihlm9 X-Received: by 2002:a65:6401:: with SMTP id a1mr3433202pgv.42.1562837831649; Thu, 11 Jul 2019 02:37:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562837831; cv=none; d=google.com; s=arc-20160816; b=xNF3921cOZgA/M15pTvKTjLj+nji4pf/PakOhc3QbCyl7JUKC0WJyFxlhuvXuefcv8 fRtnmGXHsuRW7dmsSHDn2WWqkyLqkK+bCpXSe92DBgxW5TCCepp+g1wbviAs5KH7yCdi fKOFO04BZMoAyZH4pMGR4E9Ag8TE0t/JDXspKaYPFV94QSQlzSseEAjvP7B5wt8HZ/cD iNbhfFvBjPRHNn9KUwhbgfCYiPETUBD0FU/1c3pD15UfztTPLLb6j2KVzbZgtNyGv41q Re2SXGjQNzBBJcpoPw2x8mPfDQe9EhrIOoXe/U4Paw6zWs3wZTT/eBeHb2RITDJYmKtf bV8w== 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=pEQjQud+3PIcMjzh16beUuyC/TH3UNJWej7pbBX87DU=; b=NuJeb9OchBkEDXKEMPJVzE/5c2S1lvHjTW2qBNxvJVXBQvoWNPuYCokgAnilWnNmMz HKe3A1R/Xjia1wva0CnqBJOkzMnRzSkgcmwtlfRR04Wl2M6Xw56zjNm2s5iYiEHgHUv3 2KHxteuEkMlLYqTIbhjqN2XbvrHybMQSNRhvtWldz01VVy0sCJImmlJXPiYUh8lU74Mf 19co7oVZl4vjU6C6mRbqlRCr1kKVjNhrLTH8kw5zqLFmInnTQxfbpUVVYV5c0nyxbXjn aGbX5U0iBPu/QEDpm34EQhs2Pa51rCLsWXyo5sm8NdOYKMfZ5kuERo+VaDOrGaIvTXko p0PA== 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 h65si4790726pfe.216.2019.07.11.02.36.56; Thu, 11 Jul 2019 02:37:11 -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 S1728292AbfGKJg0 (ORCPT + 99 others); Thu, 11 Jul 2019 05:36:26 -0400 Received: from mga02.intel.com ([134.134.136.20]:62994 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726088AbfGKJgZ (ORCPT ); Thu, 11 Jul 2019 05:36:25 -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 orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Jul 2019 02:36:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,478,1557212400"; d="scan'208";a="167975960" 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:36:20 -0700 Date: Thu, 11 Jul 2019 12:36:21 +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: <20190711093621.4wstj7bc7w6wxxj2@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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 03:54:20PM -0700, Xing, Cedric wrote: > On 7/10/2019 3:46 PM, 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? > > There is a lengthy discussion on its usefulness so I don't want to repeat. > In short, it allows using untrusted stack as a convenient method to exchange > data with the enclave. It is currently being used by Intel's SGX SDK for > e/o-calls parameters. > > > > 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. > > Sure. > > Any other questions I can help with? I dissected my concerns in other email. We can merge this feature after v21 if it makes sense. /Jarkko