Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2618280ybv; Fri, 14 Feb 2020 23:33:02 -0800 (PST) X-Google-Smtp-Source: APXvYqwoeUEnFu4wprtK5LAJylaF2aZPg/M82/pzTKGofa634pVjWOXTvABxSkCs3TV4I1yn1d/v X-Received: by 2002:aca:d610:: with SMTP id n16mr4401976oig.108.1581751982361; Fri, 14 Feb 2020 23:33:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581751982; cv=none; d=google.com; s=arc-20160816; b=vO31SYaqlLNK5byY/95KcwvNRLtASAthXyT4hWuoSdTyueUqxYLRtyrowshKl1luO4 2kZmKSPn383tQBl/WdVGo7EE0PZUY5HE4MxAicnXPporGtQpD/wnlFPbunaBopgOgnbl kofI6gUzz6awUEQddpQ7xqAx3Kfmi5RgYt+gxhKpFuYvwE6WS5+NZsyhRxMy6xJO3IfA +7uku6rLpXfeCaV/LEu59JFVsd9l3NQcgyj4/0mIBLjv48RRM4VHm/tKN5480OSqMCi9 zxlLNHKcGCJpeXioK6NfQ9U6laxlz6ZlAUpJxsYgCrb2jRYh6g9aD/glwQvijtue2gi3 hL/Q== 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=Kh18p8Q/yOVyc0o7B1vWK7Cg7q5kgRgoZwBmxFXcXbY=; b=uatGqTfA2PxUbOWwWCIKUc7602Rr/3cSnUe1DZIj1KQ2mmk1DW1U9uWaQbd0DzWQs7 9/vPFg5sKGzLOAmKQdME/VYEODRZKD48DupufEhjHCBUE2/OgU9aeqEaMA0V+2boVG+o zJqXEwCiPTLg5AMPq92y3++eJOKXZEz2hAwIQYVhI9Tho7LOGiZw2UN7CY21wC9+3wVt vHC9yUn7gBmh+sizo0IeTAfs9ok0PjcA8h5U7QIMR8FW0BtcjRj0jLFmzoQPaHFXQRfP cmIY9y4wRZ0PJlkO8iMv3fb1UOSQn9jZzNo+6CWQnzFOkC4jbyXrDRmiSB9nIHSHNwzj BA4A== 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 r1si4156546otq.298.2020.02.14.23.32.49; Fri, 14 Feb 2020 23:33:02 -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 S1725901AbgBOHcp (ORCPT + 99 others); Sat, 15 Feb 2020 02:32:45 -0500 Received: from mga04.intel.com ([192.55.52.120]:64567 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725810AbgBOHcp (ORCPT ); Sat, 15 Feb 2020 02:32:45 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Feb 2020 23:32:43 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,443,1574150400"; d="scan'208";a="227856904" Received: from kfinglet-mobl.ger.corp.intel.com (HELO localhost) ([10.252.22.140]) by orsmga008.jf.intel.com with ESMTP; 14 Feb 2020 23:32:33 -0800 Date: Sat, 15 Feb 2020 09:32:34 +0200 From: Jarkko Sakkinen To: Jethro Beekman Cc: linux-kernel@vger.kernel.org, x86@kernel.org, linux-sgx@vger.kernel.org, akpm@linux-foundation.org, dave.hansen@intel.com, sean.j.christopherson@intel.com, nhorman@redhat.com, npmccallum@redhat.com, haitao.huang@intel.com, andriy.shevchenko@linux.intel.com, tglx@linutronix.de, kai.svahn@intel.com, bp@alien8.de, josh@joshtriplett.org, luto@kernel.org, kai.huang@intel.com, rientjes@google.com, cedric.xing@intel.com, puiterwijk@redhat.com, linux-security-module@vger.kernel.org, Suresh Siddha , Haitao Huang Subject: Re: [PATCH v26 10/22] x86/sgx: Linux Enclave Driver Message-ID: <20200215073234.GD9958@linux.intel.com> References: <20200209212609.7928-1-jarkko.sakkinen@linux.intel.com> <20200209212609.7928-11-jarkko.sakkinen@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: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 13, 2020 at 02:59:52PM +0100, Jethro Beekman wrote: > Besides only partially measuring a page, there are some other fringe > cases that are technically possible, although I haven't seen any > toolchains that do that. These include not interleaving EADD and > EEXTEND, not using logical ordering for the EEXTENDs, and call EEXTEND > multiple times on the same chunk. Maximum interoperability would > require supporting any EADD/EEXTEND sequence. The reason why EEXTEND deals with chunks is nothing to do with the granularity but just to amortize the algorithm. I did ask about this and this is the answer that I got. I think it is perfectly sane for Linux to define ABI here in at this level. > Tested-by: Jethro Beekman Thanks you. > Sorry for being super late with this, I know you asked me for feedback > about this specific point in October. However, I did previously > mention several times that being able to measure individual 256-byte > chunks is necessary. NP. /Jarkko