Re: [PATCH 26/31] x86, pkeys: add arch_validate_pkey()
From: Thomas Gleixner
Date: Fri Jan 08 2016 - 14:35:25 EST
On Wed, 6 Jan 2016, Dave Hansen wrote:
>
> From: Dave Hansen <dave.hansen@xxxxxxxxxxxxxxx>
>
> 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 <dave.hansen@xxxxxxxxxxxxxxx>
Reviewed-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>