Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp916647pxk; Fri, 25 Sep 2020 00:56:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxYpBBmRLV8GaiUgjdzuk/o58HbhpGSY6cqhQ+81zWIzKAvL/uYXvKMDbxuFl8BVx1cPLiV X-Received: by 2002:a05:6402:b1a:: with SMTP id bm26mr2669211edb.209.1601020583422; Fri, 25 Sep 2020 00:56:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601020583; cv=none; d=google.com; s=arc-20160816; b=lNHEeLUWd2HdIsGwqHlQTiuvYg4x2LJ3t0mJWvDc+XFVHZJqIrA7wwDl4K76cu75RF 6q+rrANVmdMiu6kbfHwb4YwEITEJG7w3db4rP0MIEiQBk0UuhGJbsvOrEUQtlmx09JAG d2Nkc6yD/4lN+NTyZFayl03AuBaShh7z4XQEffbEndUpZvOQbiQFgS6fs1OcEpj8esZe aPDiPzKfb+lxe2OJojyqAqQJ7BPpXjkf/6ijCJTPff7ySgepRdPYoEiBA2cxpEiNtFU2 inja8lM7lop3ccxW/aKFNiQ9Zd6ORQE/w/bBIMqNr+GNN7jDJuWETtCEci1FHA8xKKbc BtWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=11+dIJIDWsv9Zmwi47xIt/rSGrfD4jLF7wfjT5CA6jM=; b=klgaeanAVbP+g9iJEYFH/CNPJmwgwVFGgiyhrcl5zK1YEVX0jTsWZqaZDg8ORI7+vp T6kE0ShkpPvlz1NfOla+1wZhphXDNNSkpx6C+G7+2ZWZeBIFexBr3z+pIec7bFhC/3c+ bclytcpiZ+6rDkWe46iyqh52QQkhovmWQf1fnsYKwTBeWaBeyxdptv/sXmUeM8SJ+ajp 7ciG9s+l1IDOcOz3vBLRG5D2VUGGHdKUulK7JwwTYjyTq2k3IXeYCNUOZ0LWhV/1IPCs G80BwP2tdrRf/tHgpuCD8eWVQjIYRiUtiuGOVLOl2ubFOaLLttK0fDqXpWo3QApWkwv3 jR7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=KyNDgmBc; 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=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f2si1340871edn.26.2020.09.25.00.55.53; Fri, 25 Sep 2020 00:56:23 -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; dkim=pass header.i=@alien8.de header.s=dkim header.b=KyNDgmBc; 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=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727489AbgIYHvN (ORCPT + 99 others); Fri, 25 Sep 2020 03:51:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727068AbgIYHvN (ORCPT ); Fri, 25 Sep 2020 03:51:13 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2153DC0613CE; Fri, 25 Sep 2020 00:51:13 -0700 (PDT) Received: from zn.tnic (p200300ec2f0b3a00d3756fc4b2470eaa.dip0.t-ipconnect.de [IPv6:2003:ec:2f0b:3a00:d375:6fc4:b247:eaa]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id A494B1EC0430; Fri, 25 Sep 2020 09:51:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1601020271; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=11+dIJIDWsv9Zmwi47xIt/rSGrfD4jLF7wfjT5CA6jM=; b=KyNDgmBc0z3FncZjzextI094HFVFRr2mggIQ84SJ9qwTxE0e14C7/l3srzWAe4X/lQq0vj IorTTvTDkX1amBHxVNA16X11tGaUWEPm6VQhI5znh5QcDvPS+FIcna4KvsvFKFZDzFd30i e4XdAM42bVpFg0aIZ2Iwng8tvB86chM= Date: Fri, 25 Sep 2020 09:51:04 +0200 From: Borislav Petkov To: Jarkko Sakkinen 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: <20200925075104.GD16872@zn.tnic> 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> <20200924115119.GD56811@linux.intel.com> <20200924155751.GJ5030@zn.tnic> <20200924203859.GD108958@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200924203859.GD108958@linux.intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 24, 2020 at 11:38:59PM +0300, Jarkko Sakkinen wrote: > I assume this is a rethorical question Of course - our text should not be write-only. > and I notice what I suggested > looks as bad as my earlier commit message :-) > > So, I gave it some thought that and decided to "open code" the paragraph > as > > "Add sgx_vma_access() function that implements 'access' virtual function > of struct vm_operations_struct. Use formentioned leaf instructions to "aforementioned" > achieve read and write primitives for the enclave memory." I'd say "to provide read and write access to enclave memory." -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette