Re: [PATCH 1/2] powerpc/64s: Fix entry flush patching w/strict RWX & hash

2021-05-15 Thread Michael Ellerman
On Fri, 14 May 2021 00:07:59 +1000, Michael Ellerman wrote: > The entry flush mitigation can be enabled/disabled at runtime. When this > happens it results in the kernel patching its own instructions to > enable/disable the mitigation sequence. > > With strict kernel RWX enabled instruction

[PATCH 1/2] powerpc/64s: Fix entry flush patching w/strict RWX & hash

2021-05-13 Thread Michael Ellerman
The entry flush mitigation can be enabled/disabled at runtime. When this happens it results in the kernel patching its own instructions to enable/disable the mitigation sequence. With strict kernel RWX enabled instruction patching happens via a secondary mapping of the kernel text, so that we