[PATCH] powerpc/44x: Implement Kernel Userspace Exec Protection (KUEP)

2021-06-01 Thread Christophe Leroy
Powerpc 44x has two bits for exec protection in TLBs: one for user (UX) and one for superviser (SX). Clear SX on user pages in TLB miss handlers to provide KUEP. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/nohash/32/mmu-44x.h | 1 + arch/powerpc/kernel/head_44x.S

Re: [PATCH] powerpc/44x: Implement Kernel Userspace Exec Protection (KUEP)

2021-06-17 Thread Michael Ellerman
On Wed, 2 Jun 2021 06:42:10 + (UTC), Christophe Leroy wrote: > Powerpc 44x has two bits for exec protection in TLBs: one > for user (UX) and one for superviser (SX). > > Clear SX on user pages in TLB miss handlers to provide KUEP. Applied to powerpc/next. [1/1] powerpc/44x: Implement Kernel