Re: [PATCH v5 16/23] powerpc/book3s64/kuap: Restrict access to userspace based on userspace AMR
From: Sandipan Das <hidden>
Date: 2020-10-18 04:02:11
From: Sandipan Das <hidden>
Date: 2020-10-18 04:02:11
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 <redacted> --- arch/powerpc/include/asm/book3s/64/kup.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-)
Reviewed-by: Sandipan Das <redacted>