Re: [PATCH 3/5] powerpc/lib: Use a temporary mm for code patching

2020-06-10 Thread Christopher M. Riedl
On Wed Jun 3, 2020 at 9:12 AM, Christophe Leroy wrote: > > > > > Le 03/06/2020 à 07:19, Christopher M. Riedl a écrit : > > Currently, code patching a STRICT_KERNEL_RWX exposes the temporary > > mappings to other CPUs. These mappings should be kept local to the CPU > > doing the patching. Use the

Re: [PATCH 3/5] powerpc/lib: Use a temporary mm for code patching

2020-06-03 Thread Christophe Leroy
Le 03/06/2020 à 07:19, Christopher M. Riedl a écrit : Currently, code patching a STRICT_KERNEL_RWX exposes the temporary mappings to other CPUs. These mappings should be kept local to the CPU doing the patching. Use the pre-initialized temporary mm and patching address for this purpose. Also

[PATCH 3/5] powerpc/lib: Use a temporary mm for code patching

2020-06-02 Thread Christopher M. Riedl
Currently, code patching a STRICT_KERNEL_RWX exposes the temporary mappings to other CPUs. These mappings should be kept local to the CPU doing the patching. Use the pre-initialized temporary mm and patching address for this purpose. Also add a check after patching to ensure the patch succeeded.