Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp756063ybm; Fri, 29 May 2020 11:20:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwG+SACqDWyHOZCBcffPRVI4BNh0h0S3yvUU/u50w/AYSpOkUwXqxBXprhBlvE4lQ+23JKB X-Received: by 2002:a17:906:7e43:: with SMTP id z3mr8496573ejr.221.1590776437854; Fri, 29 May 2020 11:20:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590776437; cv=none; d=google.com; s=arc-20160816; b=RqjCz6CCULxBQBQ2dexhR+sSn0NfvhIlqgcED+Xm00kVkhebIVTDBVwqDYr9jbPDD9 fK7n2W2O9hbWxwM3QOD0HdubiTlQdg8czV/FCXjpHMI7Cg2fuXlP2YLQEMxO6E0h7yhY ICXy9GfP7XlA4EsrFOz47RL32L8fHusdGGGi6B6aZO3S3gjjIr8mdcl/oVS9oM8eN46o QFLVb4tn8846QMythiMQwYUEepZpgug2+eFHGXYyKoEHiCibDI1XJllT91ORsm4sjkhK glCN8Mi9MHVcl1Vbpi2cqz0jlY4LI3sftGgzw9gfiWxZld7gG535jrUUrogGpFdxf4wW xFlg== 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=jxB4Zoefm+CHdOTF1PsgtNg2aJja1ynPKgw5NuUXkrw=; b=NcHj2nSh6EcHlrCnhTY8yPnrqo8s7ZF3H1CSSnMjJfMZCXlOfofYEA0MeAl0WkAuFd bYN3vYoAwBTouT2n58YIQUsSZKlTwbSElpAwcWJv5s29Oc63YfbdYHncgPy3kuFVWb8F 1BLLoUpHNKMgbt5twiazOjBfGQfC6eAxMNLCevuyXkPbmh/MH9ylhkrFIQe8g9IjfS0v I8Vr5+0X9zDHTeDCIpwFuamOw+1G3lEkE9l6evpvLiv/aYVVrhvEcMUA8awlMrMovpIv pGIjtmumAkkiKXzFPRabfPqp0rU0lINn236tFlV7gxQMqvqbn7y5/2qhIvPfs27WW2HS jQSw== 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 w5si6165993eja.332.2020.05.29.11.20.14; Fri, 29 May 2020 11:20:37 -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 S1727770AbgE2SSP (ORCPT + 99 others); Fri, 29 May 2020 14:18:15 -0400 Received: from mga07.intel.com ([134.134.136.100]:14877 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725839AbgE2SSO (ORCPT ); Fri, 29 May 2020 14:18:14 -0400 IronPort-SDR: 8xNUVoEBsKC4ZkUC5SNTwKOkPGwVFLU8L44XJBzO2XiXYdlroZb2ZQ2N3Bg9kltiwYhr5xibGO l4AhyFahfZPA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 May 2020 11:18:14 -0700 IronPort-SDR: 8RsTl9qsuI5P+30Zhq0yHWiULLqrhQrAg436HmmZSkpbvH7ycsLa5ipWODEoyTCkdpjMpPm2Li Q4zXcSlHavVw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,449,1583222400"; d="scan'208";a="292462276" Received: from ssudnits-mobl1.ger.corp.intel.com (HELO localhost) ([10.252.46.116]) by fmsmga004.fm.intel.com with ESMTP; 29 May 2020 11:18:05 -0700 Date: Fri, 29 May 2020 21:18:03 +0300 From: Jarkko Sakkinen To: Borislav Petkov Cc: linux-kernel@vger.kernel.org, x86@kernel.org, linux-sgx@vger.kernel.org, akpm@linux-foundation.org, dave.hansen@intel.com, 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, 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: <20200529181803.GA4990@linux.intel.com> References: <20200515004410.723949-1-jarkko.sakkinen@linux.intel.com> <20200515004410.723949-10-jarkko.sakkinen@linux.intel.com> <20200529121038.GG9011@zn.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200529121038.GG9011@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 Fri, May 29, 2020 at 02:10:38PM +0200, Borislav Petkov wrote: > On Fri, May 15, 2020 at 03:43:59AM +0300, Jarkko Sakkinen wrote: > > From: Sean Christopherson > > > > Add vm_ops()->may_mprotect() to check additional constrains set by a > > "constraints" > > > subsystem for a mprotect() call. > > > > Signed-off-by: Sean Christopherson > > Acked-by: Jethro Beekman > > Signed-off-by: Jarkko Sakkinen > > --- > > include/linux/mm.h | 2 ++ > > mm/mprotect.c | 14 +++++++++++--- > > 2 files changed, 13 insertions(+), 3 deletions(-) > > This needs an ACK from an mm person. Good point. I'll add the needed cc's. /Jarkko