Home
last modified time | relevance | path

Searched hist:"4 d6c551e9f548f7675a01eff229d09ab41162a25" (Results 1 – 1 of 1) sorted by relevance

/linux/arch/powerpc/include/asm/book3s/64/
H A Dkup.hdiff 4d6c551e9f548f7675a01eff229d09ab41162a25 Fri Nov 27 05:44:17 CET 2020 Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com> powerpc/book3s64/kuap: Restrict access to userspace based on userspace AMR

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.amr to achieve the same.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Reviewed-by: Sandipan Das <sandipan@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20201127044424.40686-16-aneesh.kumar@linux.ibm.com