Re: [PATCH v3 12/25] arm64: handle PKEY/POE faults

2023-12-13 Thread Joey Gouly
Hi, On Mon, Dec 11, 2023 at 06:18:17PM +, Catalin Marinas wrote: > On Fri, Nov 24, 2023 at 04:34:57PM +, Joey Gouly wrote: > > @@ -497,6 +498,23 @@ static void do_bad_area(unsigned long far, unsigned > > long esr, > > #define VM_FAULT_BADMAP((__force vm_fault_t)0x01) > >

Re: [PATCH v3 12/25] arm64: handle PKEY/POE faults

2023-12-11 Thread Catalin Marinas
On Fri, Nov 24, 2023 at 04:34:57PM +, Joey Gouly wrote: > @@ -497,6 +498,23 @@ static void do_bad_area(unsigned long far, unsigned long > esr, > #define VM_FAULT_BADMAP ((__force vm_fault_t)0x01) > #define VM_FAULT_BADACCESS ((__force vm_fault_t)0x02) > > +static boo

[PATCH v3 12/25] arm64: handle PKEY/POE faults

2023-11-24 Thread Joey Gouly
If a memory fault occurs that is due to an overlay/pkey fault, report that to userspace with a SEGV_PKUERR. Signed-off-by: Joey Gouly Cc: Catalin Marinas Cc: Will Deacon --- arch/arm64/include/asm/traps.h | 1 + arch/arm64/kernel/traps.c | 12 -- arch/arm64/mm/fault.c |