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>
This commit is contained in:

committed by
Michael Ellerman

parent
99cd130232
commit
c5cc1f4df6
@@ -202,6 +202,11 @@ static inline int arch_set_user_pkey_access(struct task_struct *tsk, int pkey,
|
||||
return __arch_set_user_pkey_access(tsk, pkey, init_val);
|
||||
}
|
||||
|
||||
static inline bool arch_pkeys_enabled(void)
|
||||
{
|
||||
return !static_branch_likely(&pkey_disabled);
|
||||
}
|
||||
|
||||
extern void pkey_mm_init(struct mm_struct *mm);
|
||||
extern void thread_pkey_regs_save(struct thread_struct *thread);
|
||||
extern void thread_pkey_regs_restore(struct thread_struct *new_thread,
|
||||
|
Reference in New Issue
Block a user