Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp113653ybt; Thu, 25 Jun 2020 16:48:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyB+BH9Fitfr+9p+t7qDnje2WacU0Y+pBQ3klEJ5O9hjoSc6x7aJxNiEPXgILq/7DZNv48O X-Received: by 2002:a17:906:c452:: with SMTP id ck18mr205548ejb.415.1593128920660; Thu, 25 Jun 2020 16:48:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593128920; cv=none; d=google.com; s=arc-20160816; b=vICqEVcqNob4qLJCtg6z6/5tlm5DH0+XvLCy2QajSRRX9YpmgNb96c0aItY8RiFLJW udXlnhpNpeqlYJmMrSj3QHT2/nVLt1fHEE4whLbi3+lWQAuTv1Z7RYzBpboG5aqZ2I21 Z9lw7M7kXQMow0EzP7VvXMhInPfmdhKOy/GsnhbDxn+MmUrNqumoIsDNMT88UP7G5pQ+ /hX0DlWVDBypas4vQT0JGacRPSYhOXreRkZ3fsNhcMAaQvXDaAygMRaRSH/D3gmK55z3 WRmKEjZKv5QceAfZjOv8AwXGhEUR74iN/5llKhHT7dzz2HsUulDJfIv5Ng54JK671w9Y 1fWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=mV2GFi5uUirEpGOmNey03GsFqhtvCXeArkllqsG6/gc=; b=WV5In5+ii+mLilLnvOnF7throUVNrDTWcL5JeOwnrxGZxuFio3XFEKTmGUi5Ebn76T 7Q4y/t40KHYcj9EYeWnCWF7wkF/0hTaljZleWTu/m74+gfxYz4JXVgjA1GLk/e2ApDFd 1qGoWma6T68nRMn/en9HynJ7s6TgStz+oBsnHC4waRw/NdTWtZ8Uj6RoxPJHwVgzmBqT 8zpkBbqgzH0+4j0PmGicRMMN47k3JcwR5LPyjc/dbX+IbUJZNO/l90RwZLDtl3R6E4QH qF24r0uCTqdqTwfsdVx0Tu1YC5Nb1WIJ+Z6UWCyCyfp3Si/qHGgLG0W19U25ixbszIYk lHbg== 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 u6si2144794ejf.218.2020.06.25.16.48.17; Thu, 25 Jun 2020 16:48:40 -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 S2406517AbgFYW06 (ORCPT + 99 others); Thu, 25 Jun 2020 18:26:58 -0400 Received: from mga12.intel.com ([192.55.52.136]:53997 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2403905AbgFYW06 (ORCPT ); Thu, 25 Jun 2020 18:26:58 -0400 IronPort-SDR: CSMZOrRMrY9tL1XyD5yRmcoRi5QpGZbQP0CbG7TOCwjDsYxL+k6S5JAMn2fy23nmF4Poj9r/Ow 3Rh+Pzv8mcoA== X-IronPort-AV: E=McAfee;i="6000,8403,9663"; a="124748794" X-IronPort-AV: E=Sophos;i="5.75,280,1589266800"; d="scan'208";a="124748794" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga106.fm.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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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