Re: [PATCH v2 07/10] powerpc/8xx: Add Kernel Userspace Access Protection

2019-04-18 Thread Michael Ellerman
Christophe Leroy writes: > diff --git a/arch/powerpc/include/asm/nohash/32/kup-8xx.h > b/arch/powerpc/include/asm/nohash/32/kup-8xx.h > new file mode 100644 > index ..a44cc6c1b901 > --- /dev/null > +++ b/arch/powerpc/include/asm/nohash/32/kup-8xx.h > @@ -0,0 +1,68 @@ > +/* SPDX-Licens

[PATCH v2 07/10] powerpc/8xx: Add Kernel Userspace Access Protection

2019-03-11 Thread Christophe Leroy
This patch adds Kernel Userspace Access Protection on the 8xx. When a page is RO or RW, it is set RO or RW for Key 0 and NA for Key 1. Up to now, the User group is defined with Key 0 for both User and Supervisor. By changing the group to Key 0 for User and Key 1 for Supervisor, this patch preven