Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1683926
| From | Anshuman Khandual <khandual@linux.vnet.ibm.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [RFC v5 33/38] powerpc: Deliver SEGV signal on pkey violation |
| Date | 2017-07-10 05:20 +0200 |
| Message-ID | <u1xoS-80y-7@gated-at.bofh.it> (permalink) |
| References | <u001X-3kP-3@gated-at.bofh.it> <u001Y-3kP-23@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 07/06/2017 02:52 AM, Ram Pai wrote:
> The value of the AMR register at the time of exception
> is made available in gp_regs[PT_AMR] of the siginfo.
>
> The value of the pkey, whose protection got violated,
> is made available in si_pkey field of the siginfo structure.
>
> Signed-off-by: Ram Pai <linuxram@us.ibm.com>
> ---
> arch/powerpc/include/uapi/asm/ptrace.h | 3 ++-
> arch/powerpc/kernel/signal_32.c | 5 +++++
> arch/powerpc/kernel/signal_64.c | 4 ++++
> arch/powerpc/kernel/traps.c | 14 ++++++++++++++
> 4 files changed, 25 insertions(+), 1 deletions(-)
>
> diff --git a/arch/powerpc/include/uapi/asm/ptrace.h b/arch/powerpc/include/uapi/asm/ptrace.h
> index 8036b38..7ec2428 100644
> --- a/arch/powerpc/include/uapi/asm/ptrace.h
> +++ b/arch/powerpc/include/uapi/asm/ptrace.h
> @@ -108,8 +108,9 @@ struct pt_regs {
> #define PT_DAR 41
> #define PT_DSISR 42
> #define PT_RESULT 43
> -#define PT_DSCR 44
> #define PT_REGS_COUNT 44
> +#define PT_DSCR 44
> +#define PT_AMR 45
Why PT_DSCR was moved down ? This change is redundant here.
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[RFC v5 33/38] powerpc: Deliver SEGV signal on pkey violation Ram Pai <linuxram@us.ibm.com> - 2017-07-05 23:30 +0200 Re: [RFC v5 33/38] powerpc: Deliver SEGV signal on pkey violation Anshuman Khandual <khandual@linux.vnet.ibm.com> - 2017-07-10 05:20 +0200
csiph-web