Re: [PATCH v5 7/8] powerpc/64s: Initialize and use a temporary mm for patching on Radix

2021-08-11 Thread Christopher M. Riedl
On Thu Aug 5, 2021 at 4:48 AM CDT, Christophe Leroy wrote: > > > Le 13/07/2021 à 07:31, Christopher M. Riedl a écrit : > > When code patching a STRICT_KERNEL_RWX kernel the page containing the > > address to be patched is temporarily mapped as writeable. Currently, a > > per-cpu vmalloc patch area

Re: [PATCH v5 7/8] powerpc/64s: Initialize and use a temporary mm for patching on Radix

2021-08-05 Thread Christophe Leroy
Le 13/07/2021 à 07:31, Christopher M. Riedl a écrit : When code patching a STRICT_KERNEL_RWX kernel the page containing the address to be patched is temporarily mapped as writeable. Currently, a per-cpu vmalloc patch area is used for this purpose. While the patch area is per-cpu, the temporary

[PATCH v5 7/8] powerpc/64s: Initialize and use a temporary mm for patching on Radix

2021-07-12 Thread Christopher M. Riedl
When code patching a STRICT_KERNEL_RWX kernel the page containing the address to be patched is temporarily mapped as writeable. Currently, a per-cpu vmalloc patch area is used for this purpose. While the patch area is per-cpu, the temporary page mapping is inserted into the kernel page tables for t