OSDN Git Service

powerpc/ptrace: Add memory protection key regset
authorThiago Jung Bauermann <bauerman@linux.vnet.ibm.com>
Fri, 19 Jan 2018 01:50:43 +0000 (17:50 -0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 20 Jan 2018 11:59:06 +0000 (22:59 +1100)
commitc5cc1f4df6b16646f8fae7aab523c1820bf916e8
tree83164522643b8dc08f2825b3c7643f88cc74f0b5
parent99cd1302327a2ccaedf905e9f6a8d8fd234bd485
powerpc/ptrace: Add memory protection key regset

The AMR/IAMR/UAMOR are part of the program context.
Allow it to be accessed via ptrace and through core files.

Signed-off-by: Ram Pai <linuxram@us.ibm.com>
Signed-off-by: Thiago Jung Bauermann <bauerman@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/pkeys.h
arch/powerpc/include/uapi/asm/elf.h
arch/powerpc/kernel/ptrace.c
arch/powerpc/kernel/traps.c
include/uapi/linux/elf.h