Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10889060ybi; Thu, 11 Jul 2019 12:50:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqwtnJ/1PsToenEvoq/Rv21r05Xh6mB+5hwfWnMOKPjZhyYBRbppT8+hSOkgrdSKtLKX7xfw X-Received: by 2002:a17:902:8bc1:: with SMTP id r1mr6615738plo.42.1562874611633; Thu, 11 Jul 2019 12:50:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562874611; cv=none; d=google.com; s=arc-20160816; b=dXh/Q2SscuF//QfMySgGeT54BanBG/vkpLWXBRIhzgFN/alnyLiO7xgcxpYPCUmJhx umF2JX2rw1nk1Lsa6yZz5YJUL8dHuaTm7/t2uGi2hoFp/FjOanZiYsiCo2Y4eXidq375 d5p8yi0jYjG7geAtkJQvAGrHIc5v1UNyU0HvcRgeprMY/2exLkB919sqPGOzcGE/b0GG Dgm/O06kkQwK9GNMQXwVyyo/gmF+hmsEDNWTsyiwb95C/uW+RmDoldL4Gh4zx3JbGM8A zde+A1l5OeVpLg3wtLiLIp7FzfDHLpFS3sWROE8+eiYcGxEBVUBoirbRZyJ3Wrf44D8j 1QGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=UwnRGBhxeM5IpYjDYKsXPaja+DVUWbgENmqcuTrfEh4=; b=wiZP9MN1VQ6l8ppXor6Uu9sENLC49GUC4XxgbgOlAvHPhxrOq9s0hWgiUcXunKcEts Gn8oTd+p5KgBubPb/bmiera1FFK1lgFdNM+MVlLh2Iy5B6DJA8KRhZizaAoAJJGT3Emq GS+TKqh0oS9lghuIHnn2RGxSNQncjg6HrVHfcbF3I8tmBMtogiqBSSr5vFlUsifhns3V CM6DWLjV0kwuS5oVFx114ut9Uobwjlhnw4GhLPhAiQvYaY/TEUNUd9+cKwUspwZbH+bP gw2v26fOF6eIGYd9Q560BjQTBOwdBVGulv+ZfjhveFLlujZTkUpOJButLCx/4ZR3ziVC PVTA== 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 v11si5644920pjn.44.2019.07.11.12.49.54; Thu, 11 Jul 2019 12:50: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 S1728960AbfGKTtH (ORCPT + 99 others); Thu, 11 Jul 2019 15:49:07 -0400 Received: from mga11.intel.com ([192.55.52.93]:39776 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726116AbfGKTtG (ORCPT ); Thu, 11 Jul 2019 15:49:06 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Jul 2019 12:49:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,479,1557212400"; d="scan'208";a="168730721" Received: from bxing-desk.ccr.corp.intel.com (HELO [134.134.148.187]) ([134.134.148.187]) by orsmga003.jf.intel.com with ESMTP; 11 Jul 2019 12:49:06 -0700 Subject: Re: [RFC PATCH v2 0/3] An alternative __vdso_sgx_enter_enclave() to allow enclave/host parameter passing using untrusted stack To: Jarkko Sakkinen 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 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> <20190711093621.4wstj7bc7w6wxxj2@linux.intel.com> From: "Xing, Cedric" Message-ID: Date: Thu, 11 Jul 2019 12:49:04 -0700 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <20190711093621.4wstj7bc7w6wxxj2@linux.intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/11/2019 2:36 AM, Jarkko Sakkinen wrote: > 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. Sent out v3 of vDSO changes last night. I hope your concerns have been properly addressed. The new vDSO API is a community consensus. I can help on whatever technical problems you may have but I don't see a reason you should reject it. > /Jarkko >