Re: [PATCH v5 16/23] powerpc/book3s64/kuap: Restrict access to userspace based on userspace AMR

2020-10-17 Thread Sandipan Das
On 27/08/20 9:39 am, Aneesh Kumar K.V wrote: > If an application has configured address protection such that read/write is > denied using pkey even the kernel should receive a FAULT on accessing the > same. > > This patch use user AMR value stored in pt_regs.kuap to achieve the same. > > Sign

[PATCH v5 16/23] powerpc/book3s64/kuap: Restrict access to userspace based on userspace AMR

2020-08-26 Thread Aneesh Kumar K.V
If an application has configured address protection such that read/write is denied using pkey even the kernel should receive a FAULT on accessing the same. This patch use user AMR value stored in pt_regs.kuap to achieve the same. Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/include/asm/book