Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp489438ybm; Fri, 29 May 2020 05:14:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwSsEhAzrY0TvvC7YYS3hw/fOrk+yUvy0FAPs6cKavW9NSO+qtgV1OiHxw0InT/xPb9ETzY X-Received: by 2002:aa7:c681:: with SMTP id n1mr8170544edq.333.1590754447370; Fri, 29 May 2020 05:14:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590754447; cv=none; d=google.com; s=arc-20160816; b=yM/Bhr/O77yw57ZqViIxhBGtOw3D8UiR1wTkhHqs2zJ3Fze3l/KRk9k85lK4LPitK6 sRGzCzS83yvrerNdR++4bwUeh+OXJlN9ZwHz+IZRgPoUBHpXOAD8gNiPEGncBZqTC1Hf WuFw5yY7p+6HHJ/OOEl0IeF99tVzL3wTnaEaC7pCf3JvNxbdKHR5051axjZlvSFc8K8M 1lkMYnn3KU+gWtR/FTdDTDywJNDpEYZr6GwAYu+iB6MBw0Eh4qLfME5y7MmLeA8W3igG Z+JJcydLnN/xEpDao+tf20ASJfPyQ+f6cRLsDouoD7AEcFvSG4HmW/wVwMbEg5bwrpDS IIaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=fme/ekO6mAFo1VevPB2Wamp5hira7XgWhTb1mRZL0U4=; b=qwfzFItMdjEP4aHA8inFk9OiHrYoM9XftseiJRHKR3lu7P63P3lL1TOoa3P03Z2eub 1063LdhI+Js3t9fZN4qZTO5M5uNJScOovXwqTMymLWtJcxJTl135p6Rcc5v0ssmBflft 2BP/3utNA/0IkmPom6ywiHz7iX80M8jCa3QUZ5LrOoD/xJyjhjDYcHApgM4+NsHOX4oo Sr96LA9ccfYP0+pBfnruhF2GkTwrXTR0Q4/THkPvFAqd9TkZstu5pEFamolAW7Kx+ziV hbT0JxrVsb33T8rxjfNzX9ptymMpYD0Kp2+RrcUr9EXhoW9P9vSbTZK/2kFWbuH7nTxt StpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=LcyrG+cm; 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=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dj24si2948421edb.266.2020.05.29.05.13.42; Fri, 29 May 2020 05:14:07 -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=@alien8.de header.s=dkim header.b=LcyrG+cm; 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=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727047AbgE2MKp (ORCPT + 99 others); Fri, 29 May 2020 08:10:45 -0400 Received: from mail.skyhub.de ([5.9.137.197]:45864 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725865AbgE2MKo (ORCPT ); Fri, 29 May 2020 08:10:44 -0400 Received: from zn.tnic (p200300ec2f0f5e0065ddb5c3466bc22e.dip0.t-ipconnect.de [IPv6:2003:ec:2f0f:5e00:65dd:b5c3:466b:c22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 90DD31EC0322; Fri, 29 May 2020 14:10:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1590754243; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=fme/ekO6mAFo1VevPB2Wamp5hira7XgWhTb1mRZL0U4=; b=LcyrG+cmwwpLX+o0JQl1zIoxCxanONmg2wiJWs4F5IegP7PRg18vBlIXRKwhjpwJSEgLPI wp+tLtAIrRJQ6VvWBdEBSnOtY+p5FNmjRW57S0BYFrBoZtAIE5SVOW5LoD4vZ2tEn258lq 8FWZfbwGa9PdfJ3MzXK4wFWiYzMbpd0= Date: Fri, 29 May 2020 14:10:38 +0200 From: Borislav Petkov To: Jarkko Sakkinen 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: <20200529121038.GG9011@zn.tnic> References: <20200515004410.723949-1-jarkko.sakkinen@linux.intel.com> <20200515004410.723949-10-jarkko.sakkinen@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200515004410.723949-10-jarkko.sakkinen@linux.intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette