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.ku...@linux.ibm.com> > --- > arch/powerpc/include/asm/book3s/64/kup.h | 12 +++++++++--- > 1 file changed, 9 insertions(+), 3 deletions(-) > Reviewed-by: Sandipan Das <sandi...@linux.ibm.com>
- [PATCH v5 12/23] powerpc/book3s64/pkeys: Inherit correctl... Aneesh Kumar K.V
- [PATCH v5 13/23] powerpc/book3s64/pkeys: Reset userspace ... Aneesh Kumar K.V
- [PATCH v5 14/23] powerpc/ptrace-view: Use pt_regs values ... Aneesh Kumar K.V
- [PATCH v5 15/23] powerpc/book3s64/pkeys: Don't update SPR... Aneesh Kumar K.V
- [PATCH v5 17/23] powerpc/book3s64/kuap: Improve error rep... Aneesh Kumar K.V
- [PATCH v5 16/23] powerpc/book3s64/kuap: Restrict access t... Aneesh Kumar K.V
- Re: [PATCH v5 16/23] powerpc/book3s64/kuap: Restrict... Sandipan Das
- [PATCH v5 18/23] powerpc/book3s64/kuap: Use Key 3 to impl... Aneesh Kumar K.V
- [PATCH v5 19/23] powerpc/book3s64/kuep: Use Key 3 to impl... Aneesh Kumar K.V
- [PATCH v5 20/23] powerpc/book3s64/hash/kuap: Enable kuap ... Aneesh Kumar K.V
- Re: [PATCH v5 20/23] powerpc/book3s64/hash/kuap: Ena... Michael Ellerman
- Re: [PATCH v5 20/23] powerpc/book3s64/hash/kuap: Ena... Sandipan Das
- [PATCH v5 21/23] powerpc/book3s64/hash/kuep: Enable KUEP ... Aneesh Kumar K.V
- [PATCH v5 22/23] powerpc/book3s64/hash/kup: Don't hardcod... Aneesh Kumar K.V