Re: [PATCH 18/25] powerpc: check key protection for user page access

2017-10-19 Thread Ram Pai
On Thu, Oct 19, 2017 at 10:08:57AM +1100, Balbir Singh wrote: > On Wed, 18 Oct 2017 14:29:24 -0700 > Ram Pai wrote: > > > On Thu, Oct 19, 2017 at 06:57:32AM +1100, Balbir Singh wrote: > > > On Fri, 8 Sep 2017 15:45:06 -0700 > > > Ram Pai wrote: > > > > > > > Make sure that the kernel does no

Re: [PATCH 18/25] powerpc: check key protection for user page access

2017-10-18 Thread Balbir Singh
On Wed, 18 Oct 2017 14:29:24 -0700 Ram Pai wrote: > On Thu, Oct 19, 2017 at 06:57:32AM +1100, Balbir Singh wrote: > > On Fri, 8 Sep 2017 15:45:06 -0700 > > Ram Pai wrote: > > > > > Make sure that the kernel does not access user pages without > > > checking their key-protection. > > > > >

Re: [PATCH 18/25] powerpc: check key protection for user page access

2017-10-18 Thread Ram Pai
On Thu, Oct 19, 2017 at 06:57:32AM +1100, Balbir Singh wrote: > On Fri, 8 Sep 2017 15:45:06 -0700 > Ram Pai wrote: > > > Make sure that the kernel does not access user pages without > > checking their key-protection. > > > > Why? This makes the routines AMR/thread specific? Looks like > x86 doe

Re: [PATCH 18/25] powerpc: check key protection for user page access

2017-10-18 Thread Balbir Singh
On Fri, 8 Sep 2017 15:45:06 -0700 Ram Pai wrote: > Make sure that the kernel does not access user pages without > checking their key-protection. > Why? This makes the routines AMR/thread specific? Looks like x86 does this as well, but these routines are used by GUP from the kernel. Balbir Sing