Re: [PATCH 09/25] powerpc: ability to create execute-disabled pkeys

2017-10-28 Thread Ram Pai
On Tue, Oct 24, 2017 at 10:06:18AM +0530, Aneesh Kumar K.V wrote: > Ram Pai writes: > > > powerpc has hardware support to disable execute on a pkey. > > This patch enables the ability to create execute-disabled > > keys. > > Can you summarize here how this works? Access to IAMR is > privileged

Re: [PATCH 09/25] powerpc: ability to create execute-disabled pkeys

2017-10-24 Thread Ram Pai
On Tue, Oct 24, 2017 at 12:28:35PM +0530, Aneesh Kumar K.V wrote: > Ram Pai writes: > > > On Wed, Oct 18, 2017 at 02:42:56PM +1100, Balbir Singh wrote: > >> On Fri, 8 Sep 2017 15:44:57 -0700 > >> Ram Pai wrote: > >> > >> > powerpc has hardware support to disable execute on a pkey. > >> > This

Re: [PATCH 09/25] powerpc: ability to create execute-disabled pkeys

2017-10-23 Thread Aneesh Kumar K.V
Ram Pai writes: > On Wed, Oct 18, 2017 at 02:42:56PM +1100, Balbir Singh wrote: >> On Fri, 8 Sep 2017 15:44:57 -0700 >> Ram Pai wrote: >> >> > powerpc has hardware support to disable execute on a pkey. >> > This patch enables the ability to create execute-disabled >> > keys. >> > >> > Signed-

Re: [PATCH 09/25] powerpc: ability to create execute-disabled pkeys

2017-10-23 Thread Aneesh Kumar K.V
Ram Pai writes: > powerpc has hardware support to disable execute on a pkey. > This patch enables the ability to create execute-disabled > keys. Can you summarize here how this works? Access to IAMR is privileged so how will keys framework work with IAMR? -aneesh

Re: [PATCH 09/25] powerpc: ability to create execute-disabled pkeys

2017-10-17 Thread Ram Pai
On Wed, Oct 18, 2017 at 02:42:56PM +1100, Balbir Singh wrote: > On Fri, 8 Sep 2017 15:44:57 -0700 > Ram Pai wrote: > > > powerpc has hardware support to disable execute on a pkey. > > This patch enables the ability to create execute-disabled > > keys. > > > > Signed-off-by: Ram Pai > > --- > >

Re: [PATCH 09/25] powerpc: ability to create execute-disabled pkeys

2017-10-17 Thread Balbir Singh
On Fri, 8 Sep 2017 15:44:57 -0700 Ram Pai wrote: > powerpc has hardware support to disable execute on a pkey. > This patch enables the ability to create execute-disabled > keys. > > Signed-off-by: Ram Pai > --- > arch/powerpc/include/uapi/asm/mman.h |6 ++ > arch/powerpc/mm/pkeys.c