Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3443835pxk; Mon, 28 Sep 2020 18:40:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJySSfpVAhA+wsnWflTZKZzf/25yECdWHvakJOrhKB7v5rUB41tXVq7KO6kA9GDt4Mt9zuy7 X-Received: by 2002:a17:906:9386:: with SMTP id l6mr1515073ejx.302.1601343631528; Mon, 28 Sep 2020 18:40:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601343631; cv=none; d=google.com; s=arc-20160816; b=S/f/ZvjHVzbEZAZDzvENbewhKb96AQDaqHy4Naba+5g0qs6Ok+VOBfWJicnIhV5b9D M0qoy3lON+xwUCTKH/70/eMGptwCOQmg1aquozz42r4zuqp4o/WsfI82NoQqmT7itXtC 0r564PDfIcDborcaV7wgpTl7VCBG0ECTinP6cg0PUfNI7jAkgqR0s9budKD+sEuPeHtk DAxdPcgJiMdX6dYT7Vkbva4ZNDiQa9vaaDJrS4Pj724HvTSpXfg+yawhG6hDFXXBZEjV XX5luwkt3l6hATjtkSIrtOc06L5lhbvwBXqNeJ7tzdW5nGcRT5nr8jf82A92RN1fMSYM 2CCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:in-reply-to:cc:references:message-id:date :subject:mime-version:from:content-transfer-encoding:dkim-signature; bh=5NPObd62S6aBUFhQDjWfIQs23I/Y2IDiU6H1RNmK13s=; b=QXSJUrsZip3NWVQpyDxQHAUHpN5luQ0qhsxD4/TRJDfmDeOl3Hr+7HeOANniZOY8er DfXAN0zcw0t7OMi3WdYRdigXmZ3DNv8N/XkIGYyaoQz8fHybDr4aM0CpWb65AGYIutzl vnah6FFDlSePdYKrFhRKn8dtzRzYCxifog6AjTdx7RV7knkSIzPTF3wk4Qu0yq7sfYMu HbSchoEtOxJJKw9gMaXLk2xVik2CisnAvKYxwt3jzTzgavPNN1NmkShwtwAJVSL2irU0 OoercXUd7oPq62xlLLtrrkaPH0WIk2RHx9ml5eMzydKvKOmNNVj6u+IsdwrfLEjLbU/P juew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=WJ1q7OFP; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e2si1859848edv.242.2020.09.28.18.40.02; Mon, 28 Sep 2020 18:40:31 -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=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=WJ1q7OFP; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727478AbgI2Bh7 (ORCPT + 99 others); Mon, 28 Sep 2020 21:37:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727185AbgI2Bh6 (ORCPT ); Mon, 28 Sep 2020 21:37:58 -0400 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 722EEC061755 for ; Mon, 28 Sep 2020 18:37:58 -0700 (PDT) Received: by mail-pg1-x541.google.com with SMTP id d13so2508256pgl.6 for ; Mon, 28 Sep 2020 18:37:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amacapital-net.20150623.gappssmtp.com; s=20150623; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=5NPObd62S6aBUFhQDjWfIQs23I/Y2IDiU6H1RNmK13s=; b=WJ1q7OFPBQmaPBAuQv1cuQ1jqGuJUbyiza+3H3+5zHx34lFbUrydjc70ppNBxmY5ZU 1KWPSFDT0UEAEURObrsKVN8A2K5ouY8hMdEQKHZBDc2bwNBmSUAruDRqXPpEgeJANYXQ okHjxUheB+c8HzhvQyVhEcbRccfh+CrvsEg2HZlYfLqaku2S1zFfaDypxp/f38jrKYaW Ug31t+mfiuaWVhaYYqlExyiZFffjJQ31w5dbdVtt6ZUNTqN4UNVGx9u/wTVA7RfZUI+Q oqOVutNXs8c0JXlKcwiS8dlClx2nSAyAWPS75do9EmENmM7EOzaMXVYd+WUr1zdH8Tgr m2XA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=5NPObd62S6aBUFhQDjWfIQs23I/Y2IDiU6H1RNmK13s=; b=KQwU7B4475vTM9NCArBa65ATylS07jtZpwMs51yT9QeijxGdceponJFvOckjOeUc5v 42rDRNYSHrOO9lUqUvjuNZLK1H8E+XZqbk7J95DKHSSjKgg0y4C96Fj3WxrjrnDFmEGa SJwdSmP4O3EqkeDZL25ZsiRyXTRYN0FEtgyxKZzTn/DD9aEJvqzzgOAztX/pQp2TWOg1 li6gRt5pei8ndiJjLNhzj3IMwH1mWjm5V7g493oAJAgMNetEF72S8eHosv8ywmsynpg9 YQaDcHCo2Q84UlLvxYGFhsuAK6Gkqb2+tlrVvZ4PsuCL5/czF5a3/bmj3ta28JaYFdar M8oA== X-Gm-Message-State: AOAM533IpyZfPGG0Bfh5VFU8Ynvt0M3lKTyMUwH23TGEQENn/jZNl1Ak j2lOvHbo9fewcb4Ov0u4stwTuA== X-Received: by 2002:a63:4854:: with SMTP id x20mr1452634pgk.220.1601343477985; Mon, 28 Sep 2020 18:37:57 -0700 (PDT) Received: from ?IPv6:2601:646:c200:1ef2:1921:87c6:634:c91c? ([2601:646:c200:1ef2:1921:87c6:634:c91c]) by smtp.gmail.com with ESMTPSA id s2sm2394079pjg.52.2020.09.28.18.37.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 28 Sep 2020 18:37:56 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Andy Lutomirski Mime-Version: 1.0 (1.0) Subject: Re: [PATCH v38 10/24] mm: Add vm_ops->mprotect() Date: Mon, 28 Sep 2020 18:37:54 -0700 Message-Id: References: <20200928201959.GA3856@linux.intel.com> Cc: Dave Hansen , Sean Christopherson , Haitao Huang , Andy Lutomirski , X86 ML , linux-sgx@vger.kernel.org, LKML , Linux-MM , Andrew Morton , Matthew Wilcox , Jethro Beekman , Darren Kenny , Andy Shevchenko , asapek@google.com, Borislav Petkov , "Xing, Cedric" , chenalexchen@google.com, Conrad Parker , cyhanish@google.com, "Huang, Haitao" , Josh Triplett , "Huang, Kai" , "Svahn, Kai" , Keith Moyer , Christian Ludloff , Neil Horman , Nathaniel McCallum , Patrick Uiterwijk , David Rientjes , Thomas Gleixner , yaozhangx@google.com In-Reply-To: <20200928201959.GA3856@linux.intel.com> To: Jarkko Sakkinen X-Mailer: iPhone Mail (18A393) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Sep 28, 2020, at 1:20 PM, Jarkko Sakkinen wrote: >=20 > =EF=BB=BFOn Mon, Sep 28, 2020 at 12:45:27PM -0700, Dave Hansen wrote: >>> On 9/28/20 12:32 PM, Jarkko Sakkinen wrote: >>> My problem is that I fully agree what you say in your description but >>> disagree on that EMODPE should not be mentioned. >>=20 >> I'll just be very clear: I'm not willing to ack any patch with a >> changelog that has more than a passing mention of EMODPE. >>=20 >> Do what you think is best, but if sticking to your guns may deplete the >> pool of folks willing to ack your patch. >=20 > I do see it mentioned in other responses too in this thread, and not > just mine. >=20 > And here is even a request to get it to the changelog: >=20 > https://lore.kernel.org/linux-sgx/1B23E216-0229-4BDD-8B09-807256A54AF5@ama= capital.net/ >=20 > I'm absolutely fine not to mention EMODPE but after re-reading the > thread, it is not like there is one voice on it. I don't really > care all that much whether it is mentioned or not but there should > be some reasonable logic behind the decision. I don=E2=80=99t personally care that much about EMODPE but, you could probab= ly get the point across with something like: SGX=E2=80=99s EPCM permission bits do not obviate the need to enforce these r= ules in the PTEs because enclaves can freely modify the EPCM permissions usi= ng EMODPE. IOW, EMODPE is not really special here; rather, EMODPE=E2=80=99s existence d= emonstrates that EADD / EEXTEND are not special.