Re: [PATCH 16/37] x86, pkeys: notify userspace about protection key faults

From: Thomas Gleixner
Date: Fri Nov 27 2015 - 04:50:54 EST


On Mon, 16 Nov 2015, Dave Hansen wrote:
> Note that _pkey is a 64-bit value. The current hardware only
> supports 4-bit protection keys. We do this because there is
> _plenty_ of space in _sigfault and it is possible that future
> processors would support more than 4 bits of protection keys.
>
> Signed-off-by: Dave Hansen <dave.hansen@xxxxxxxxxxxxxxx>
> ---
>
> b/arch/x86/include/asm/pgtable_types.h | 5 ++
> b/arch/x86/mm/fault.c | 59 ++++++++++++++++++++++++++++++++-
> b/include/uapi/asm-generic/siginfo.h | 17 ++++++---
> b/kernel/signal.c | 4 ++

I'd be nice to split the core changes from the x86 implementation.

Other than that: Reviewed-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/