Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp45370ybg; Sun, 31 May 2020 16:16:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZpKfc1iG864f+qtEX9jWejo8pe9Pwar2mA/pdmzA8Oc6UddeO/ZCfZKJb2+k0qO6817/v X-Received: by 2002:a17:907:20f4:: with SMTP id rh20mr3082022ejb.55.1590966987309; Sun, 31 May 2020 16:16:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590966987; cv=none; d=google.com; s=arc-20160816; b=dx+arxbV/ahg25R8Hoy+tGdvI8wimNw1bNyf5lzwNWU6tSfVbZAFFWzHsHciIMSJzz EoX7wbqRkkl4ftRGVZlvqHIUOwVpWZG9QVM+0G8zuPCaJZJZ3ZkeoI9zqw9C7fzz5CyB 4ISRFNrgTKggBSYp+yFKBvdS65ZgLDQMUZVbbX+PxQLSlu1RTxvZ7uPdl4FE4vdeOny6 CbDEd96Tjs7/e2udYF0BnIhlfLm8XFynNXYRhjVjvREe+M9StULIOdgWyt2vDO/oG+ZF suIIwCS2OVkt6bmjqFHT9otBzy7q8VvbaauD20KO+tR/5GstZ5oRV4ewKsk7nY81opzs YViA== 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=EKm5rAsYNCHCneVUw2AHXIYKf8E7cb/jJCOmEGX3Z/U=; b=l85OAOAYuuF/BQQjs6270Uj2B52zh9BsDVnWjplQNEWLBqX+hszB2g5Rp8PcexZVeF 2zKPpy+sifn+hznJVyilD14g6cwgrwgzBcIM3Trv1SLUMyefJZa9ixuRk8MYr6ZKK1Nd GF4viubRBEDU5/xoURYzsEYwqRm9MO7G9zZtN59Q0bCneLMr233TmpPSdmeMwX5XAZda mZ/wll8qAspqpOE8TpjHzeQ8jNeaA5qb/Mt98lqfRo8Xq8JKusHv8+UEDkZV8nTG9fJR bEb3MD1Ib/tHy4bHSgeKjH1fJkNpRod6xHJmKv/HFVR9roXZM321PjPTuCyln8Nfgpp8 4euw== 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 h7si9829520edz.91.2020.05.31.16.16.04; Sun, 31 May 2020 16:16:27 -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 S1728451AbgEaXMj (ORCPT + 99 others); Sun, 31 May 2020 19:12:39 -0400 Received: from mga17.intel.com ([192.55.52.151]:40271 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728255AbgEaXMj (ORCPT ); Sun, 31 May 2020 19:12:39 -0400 IronPort-SDR: gGjzBsu4San1pLzDhPZbIigeaePMMoW8oLqIhiNux+WfelH2jXttStnqqz0WmeSy8eboLe5bHd eeWPLfVlGKwQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 May 2020 16:12:38 -0700 IronPort-SDR: U/BX8FEyI0at2h6lSS3YaPcvQOiM4l3ZkffvFnD6V+dbok1zaKVgXVKnFWz6G7DVeNumuzz/VF IRx77a6JJD6Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,458,1583222400"; d="scan'208";a="415608645" Received: from hbetts-mobl.ger.corp.intel.com (HELO localhost) ([10.252.59.178]) by orsmga004.jf.intel.com with ESMTP; 31 May 2020 16:12:29 -0700 Date: Mon, 1 Jun 2020 02:12:27 +0300 From: Jarkko Sakkinen To: Dave Hansen Cc: linux-kernel@vger.kernel.org, x86@kernel.org, linux-sgx@vger.kernel.org, akpm@linux-foundation.org, sean.j.christopherson@intel.com, nhorman@redhat.com, npmccallum@redhat.com, haitao.huang@intel.com, andriy.shevchenko@linux.intel.com, tglx@linutronix.de, kai.svahn@intel.com, bp@alien8.de, josh@joshtriplett.org, luto@kernel.org, kai.huang@intel.com, rientjes@google.com, cedric.xing@intel.com, puiterwijk@redhat.com, Jethro Beekman Subject: Re: [PATCH v30 09/20] mm: Introduce vm_ops->may_mprotect() Message-ID: <20200531231227.GA236202@linux.intel.com> References: <20200515004410.723949-1-jarkko.sakkinen@linux.intel.com> <20200515004410.723949-10-jarkko.sakkinen@linux.intel.com> <66a227f2-8056-6318-111e-3b0abd5d94c3@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <66a227f2-8056-6318-111e-3b0abd5d94c3@intel.com> 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 Fri, May 29, 2020 at 11:28:56AM -0700, Dave Hansen wrote: > On 5/14/20 5:43 PM, Jarkko Sakkinen wrote: > > From: Sean Christopherson > > > > Add vm_ops()->may_mprotect() to check additional constrains set by a > > subsystem for a mprotect() call. > > This changelog needs some more detail about why this is needed. It > would also be nice to include thought about what else it could get used > for and what subsystems can expect by doing this and what the mm core is > expected to do. Point taken. I added a description on how it is used. /Jarkko