From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AAC42C433E1 for ; Thu, 25 Jun 2020 22:27:00 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 746D320767 for ; Thu, 25 Jun 2020 22:27:00 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 746D320767 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id DEC836B0003; Thu, 25 Jun 2020 18:26:59 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id D9B8B6B0005; Thu, 25 Jun 2020 18:26:59 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C8A996B0006; Thu, 25 Jun 2020 18:26:59 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0115.hostedemail.com [216.40.44.115]) by kanga.kvack.org (Postfix) with ESMTP id AF47B6B0003 for ; Thu, 25 Jun 2020 18:26:59 -0400 (EDT) Received: from smtpin18.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 455B2824556B for ; Thu, 25 Jun 2020 22:26:59 +0000 (UTC) X-FDA: 76969170558.18.plate94_3d0739426e50 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin18.hostedemail.com (Postfix) with ESMTP id 23812100ED9D7 for ; Thu, 25 Jun 2020 22:26:59 +0000 (UTC) X-HE-Tag: plate94_3d0739426e50 X-Filterd-Recvd-Size: 3167 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by imf27.hostedemail.com (Postfix) with ESMTP for ; Thu, 25 Jun 2020 22:26:58 +0000 (UTC) IronPort-SDR: 7X9JI9QKBGu3GUZcVDCPRpKKJGji2dUA5sicpP9sGXQmj47UhrpUAl8I5+2XHxHvGt4vynJWqm r0rstcCiiLCg== X-IronPort-AV: E=McAfee;i="6000,8403,9663"; a="132543522" X-IronPort-AV: E=Sophos;i="5.75,280,1589266800"; d="scan'208";a="132543522" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jun 2020 15:26:57 -0700 IronPort-SDR: njrzfzUtC8+nKGs2G/NpEGTxfFgOHOL5/y/dxmYAdoTlhAZQdS5hDwd7PXU8vh3BpEittZ6s/v aH6Qpljz7c0w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,280,1589266800"; d="scan'208";a="276176831" Received: from jproldan-mobl.ger.corp.intel.com (HELO localhost) ([10.252.49.123]) by orsmga003.jf.intel.com with ESMTP; 25 Jun 2020 15:26:46 -0700 Date: Fri, 26 Jun 2020 01:26:45 +0300 From: Jarkko Sakkinen To: Borislav Petkov Cc: x86@kernel.org, linux-sgx@vger.kernel.org, linux-kernel@vger.kernel.org, Sean Christopherson , 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, tglx@linutronix.de, yaozhangx@google.com, linux-mm@kvack.org Subject: Re: [PATCH v33 10/21] mm: Introduce vm_ops->may_mprotect() Message-ID: <20200625222645.GK20341@linux.intel.com> References: <20200617220844.57423-1-jarkko.sakkinen@linux.intel.com> <20200617220844.57423-11-jarkko.sakkinen@linux.intel.com> <20200625171416.GI20319@zn.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200625171416.GI20319@zn.tnic> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Rspamd-Queue-Id: 23812100ED9D7 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam01 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Thu, Jun 25, 2020 at 07:14:16PM +0200, Borislav Petkov wrote: > On Thu, Jun 18, 2020 at 01:08:32AM +0300, Jarkko Sakkinen wrote: > > From: Sean Christopherson > > > > Add vm_ops()->may_mprotect() to check additional constraints. > > > > SGX uses this callback to add two constraints: > > > > 1. Verify that the address range does not have holes: for each page > > address, there is an actual enclave page created. > > 2. Mapped permissions do not surpass the lowest enclave page permissions > > in the address range. > > > > linux-mm@kvack.org > > Andrew Morton > > Something ate the Cc:s. Lemme add the mm list, akpm is already on Cc. > > Leaving in the rest for mm folks. Thank you. So it seems. I've fixed them now. /Jarkko