Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp9725795ybi; Wed, 10 Jul 2019 15:49:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqwmm94uKNdj7ndCLJBCKYjbCtT/bHWYYJTTuuKXcQLIAiTjpAqG6wN8gAowX29YDVM7LZQh X-Received: by 2002:a65:50cb:: with SMTP id s11mr698927pgp.371.1562798964811; Wed, 10 Jul 2019 15:49:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562798964; cv=none; d=google.com; s=arc-20160816; b=YNGaiLvEao21V+jUJkYkDHF+Kv0hb6gdmsgZE7GKP4J07ExjFi3gsoEj8k6FQRgTwI vaQLcy/JztC3xDHFGWJ+akZ8J2BfHQcOM6Tw7uIQUm7/N6RRRztjDTuW45z8Sp8pU7VN vkI+uut7/iOfWtqGZumdhpPiqpT11Eg65oGD/xLuyywIWZmLe9hcm8TMkkaSvvnMNoJb MN/WoTTyktwUgCSoMlLqH8Rt0rmxjUF/p6saj6jHQdu8CVbE/quwqp+hfcSIYWAdSuXA 73usiCP5KxnmVBirsCqcd3n/p4ud7ko2EVy0VKLQg9d/cfgUdWIYBmhWj6EZJv+IMj0e 8E3g== 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=ooTS1F3s6HbogwssqhgL9w6CE+d7FskTTavrxf87p3U=; b=GeJaokVQjZrDBGj/vWk2Vy4qz2Ty9TJmz0nBTHB8n1nrqgv6a7XZuJmxe0O++z+gxx 5/0DRsJALSaxJVhn0XzqQVb1MXtDP2kAiemW2EI73JP5L3eRDwj7xmH7+VT6xpiwgbIm /StXDymnnyV6blfbj1dMjY1f0yw8iQfoF8YpFCrvew9P9ZfVF3YRnGnaKODuc0UpxhuP XV0L+WbYiiTWbuESUMrUwzVIVY0k3fqwvS9+xTd3NFa3LWgsBcfBV+twIp78BnJsd5H3 jxvUfuHZDMsnzFSBX8Z4fF/FOyGfBWL14qAg/NS79c/eRfgARZgLKfyrQdXTLEMW+YRF TITg== 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 b21si3047623plz.21.2019.07.10.15.49.07; Wed, 10 Jul 2019 15:49:24 -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 S1727581AbfGJWqn (ORCPT + 99 others); Wed, 10 Jul 2019 18:46:43 -0400 Received: from mga01.intel.com ([192.55.52.88]:3827 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726708AbfGJWqn (ORCPT ); Wed, 10 Jul 2019 18:46:43 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Jul 2019 15:46:42 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,476,1557212400"; d="scan'208";a="173986954" Received: from teutenbb-mobl1.ger.corp.intel.com (HELO localhost) ([10.252.50.108]) by FMSMGA003.fm.intel.com with ESMTP; 10 Jul 2019 15:46:38 -0700 Date: Thu, 11 Jul 2019 01:46:28 +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: <20190710224628.epjxwlpqqxdurmzo@linux.intel.com> References: <20190424062623.4345-1-cedric.xing@intel.com> <20190710111719.nnoedfo4wvbfghq7@linux.intel.com> <686e47d2-f45c-6828-39d1-48374925de6c@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <686e47d2-f45c-6828-39d1-48374925de6c@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 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. /Jarkko