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)
> >
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
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 |