Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp247687pxk; Thu, 24 Sep 2020 04:54:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx17tRuN1x2Or3F/hhsdArqX5IYTwIOUXckF9srXw8IpWaAu2jsrm7IwDfhuD7Lugt7OPCR X-Received: by 2002:a17:906:7116:: with SMTP id x22mr615985ejj.426.1600948455565; Thu, 24 Sep 2020 04:54:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600948455; cv=none; d=google.com; s=arc-20160816; b=oNrftLbGGRRzk/lxwTUXfnSlFLJH4DdsgfxRJW9EiVKgZ0yCxD0AqiSMa9F8X4ggGk s7zUEmCm8pcQG22PZzkZDONnD29sjck+t4vijthTElmvu87lNXq6SGjBeI7qnYEX0i7k OrM2orNN3Tdjcfh+BIuJKxASVfy9mkNd5haFg8iOOAnx1L24/uXileBEb7ED27ZK4fwl dHuJxeH/HIRJGtK/LmRn9ksGmsbfcLMfrRPmwFlUQ+TDl2qE66nwcetCqfKiIl414oRm 33CSDUz/A4X0TWRJdVQETg4iABZbhUleW5BFfB0313oCuXQFn+uCuNek7MQMxLKzbOnV shmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=4Wme1/NvG7EzmX/3HL5f8QHgRD7O9PU/OhkXedEupn0=; b=buwhynPxJc3lK/RAKvuFIvtMX/lQRB3y2YERybLIXgeth3+mPYhaF6gcN4sP2XkNUg LRw81Zh9gfNMSIkmC/xiFIli8YssABYpDXgql9Kym0LIrHOu7rySF+UIvqcNcdYwlS02 eruokpVs0FIw2lHp6mRk3JjY8IvELyR9+XEKUVJ7KGZ3WvWqKFYWzqSOjc6kiT1yiNsY IiW9FkHwW3hw8uo8vmG/e0Aa9dL953HU6aq20LTieGOYPAhHNB2jOMmHDxnKu6Fm+QQB buBIkaMc+yoQk9Zx0sOenMa4/j6UhRodTAKMDBprYsQeTumweGeZJLHipcxsU/VS6COu FEgA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id v13si1878386edw.171.2020.09.24.04.53.52; Thu, 24 Sep 2020 04:54:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1727534AbgIXLvh (ORCPT + 99 others); Thu, 24 Sep 2020 07:51:37 -0400 Received: from mga11.intel.com ([192.55.52.93]:61315 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726406AbgIXLvg (ORCPT ); Thu, 24 Sep 2020 07:51:36 -0400 IronPort-SDR: l8lAhbA0vyXR6OfmwRhmcmf7eJxgdGmwHnD4FV5X82KkzOBlaxE9cH81Oemk59SUMjWB5wJ/9U 8/qZabo++/lw== X-IronPort-AV: E=McAfee;i="6000,8403,9753"; a="158543409" X-IronPort-AV: E=Sophos;i="5.77,297,1596524400"; d="scan'208";a="158543409" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2020 04:51:36 -0700 IronPort-SDR: axKEzJ+naiD8BxaCi/Sqvbsokl8YS4+Pmp/HC3IPcg0my/4p960nQFUsDaJ81EJc3z0Kel5bqi 1tGkQsTnXNDw== X-IronPort-AV: E=Sophos;i="5.77,297,1596524400"; d="scan'208";a="486873220" Received: from gkleinma-mobl1.ger.corp.intel.com (HELO localhost) ([10.249.32.187]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2020 04:51:30 -0700 Date: Thu, 24 Sep 2020 14:51:28 +0300 From: Jarkko Sakkinen To: Borislav Petkov Cc: x86@kernel.org, linux-sgx@vger.kernel.org, linux-kernel@vger.kernel.org, Jethro Beekman , akpm@linux-foundation.org, andriy.shevchenko@linux.intel.com, asapek@google.com, cedric.xing@intel.com, chenalexchen@google.com, conradparker@google.com, cyhanish@google.com, dave.hansen@intel.com, haitao.huang@intel.com, josh@joshtriplett.org, kai.huang@intel.com, kai.svahn@intel.com, kmoy@google.com, ludloff@google.com, luto@kernel.org, nhorman@redhat.com, npmccallum@redhat.com, puiterwijk@redhat.com, rientjes@google.com, sean.j.christopherson@intel.com, tglx@linutronix.de, yaozhangx@google.com Subject: Re: [PATCH v38 17/24] x86/sgx: ptrace() support for the SGX driver Message-ID: <20200924115119.GD56811@linux.intel.com> References: <20200915112842.897265-1-jarkko.sakkinen@linux.intel.com> <20200915112842.897265-18-jarkko.sakkinen@linux.intel.com> <20200922154424.GL22660@zn.tnic> <20200923132037.GA5160@linux.intel.com> <20200923161733.GP28545@zn.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200923161733.GP28545@zn.tnic> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 23, 2020 at 06:17:33PM +0200, Borislav Petkov wrote: > > Add 'access' implementation to vm_ops with the help of these functions. > > "Add an ->access virtual MM function for accessing the enclave's memory... " Thank you. I wrote the last paragraph like this: "Add an '->access' virtual function for accessing the enclave's memory to vm_ops by using these functions. This allows to use ptrace() with debug enclaves." > -- > Regards/Gruss, > Boris. > > https://people.kernel.org/tglx/notes-about-netiquette /Jarkko