[PATCH v5 16/23] powerpc/book3s64/kuap: Restrict access to userspace based on userspace AMR
Sandipan Das
sandipan.osd at gmail.com
Sun Oct 18 15:00:10 AEDT 2020
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.
>
> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar at linux.ibm.com>
> ---
> arch/powerpc/include/asm/book3s/64/kup.h | 12 +++++++++---
> 1 file changed, 9 insertions(+), 3 deletions(-)
>
Reviewed-by: Sandipan Das <sandipan at linux.ibm.com>
More information about the Linuxppc-dev
mailing list