Re: [RFC v2 09/12] powerpc: Deliver SEGV signal on pkey violation.

2017-06-20 Thread Ram Pai
On Wed, Jun 21, 2017 at 08:48:20AM +0530, Anshuman Khandual wrote: > On 06/21/2017 05:26 AM, Ram Pai wrote: > > On Tue, Jun 20, 2017 at 12:24:53PM +0530, Anshuman Khandual wrote: > >> On 06/17/2017 09:22 AM, Ram Pai wrote: > >>> The value of the AMR register at the time of exception > >>> is made a

Re: [RFC v2 09/12] powerpc: Deliver SEGV signal on pkey violation.

2017-06-20 Thread Anshuman Khandual
On 06/21/2017 05:26 AM, Ram Pai wrote: > On Tue, Jun 20, 2017 at 12:24:53PM +0530, Anshuman Khandual wrote: >> On 06/17/2017 09:22 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. >>> >>> This field can be used to

Re: [RFC v2 09/12] powerpc: Deliver SEGV signal on pkey violation.

2017-06-20 Thread Ram Pai
On Tue, Jun 20, 2017 at 12:24:53PM +0530, Anshuman Khandual wrote: > On 06/17/2017 09:22 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. > > > > This field can be used to reprogram the permission bits of > > any

Re: [RFC v2 09/12] powerpc: Deliver SEGV signal on pkey violation.

2017-06-19 Thread Anshuman Khandual
On 06/17/2017 09:22 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. > > This field can be used to reprogram the permission bits of > any valid pkey. > > Similarly the value of the pkey, whose protection got violate