From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Gleixner Subject: Re: [PATCH 26/31] x86, pkeys: add arch_validate_pkey() Date: Fri, 8 Jan 2016 20:34:27 +0100 (CET) Message-ID: References: <20160107000104.1A105322@viggo.jf.intel.com> <20160107000141.DC5BF73E@viggo.jf.intel.com> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Return-path: In-Reply-To: <20160107000141.DC5BF73E@viggo.jf.intel.com> Sender: linux-kernel-owner@vger.kernel.org To: Dave Hansen Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, x86@kernel.org, dave.hansen@linux.intel.com List-Id: linux-mm.kvack.org On Wed, 6 Jan 2016, Dave Hansen wrote: > > From: Dave Hansen > > The syscall-level code is passed a protection key and need to > return an appropriate error code if the protection key is bogus. > We will be using this in subsequent patches. > > Note that this also begins a series of arch-specific calls that > we need to expose in otherwise arch-independent code. We create > a linux/pkeys.h header where we will put *all* the stubs for > these functions. > > Signed-off-by: Dave Hansen Reviewed-by: Thomas Gleixner