On 2017/05/25 04:57PM, Balbir Singh wrote: > On Thu, 25 May 2017 13:36:42 +1000 > Balbir Singh <bsinghar...@gmail.com> wrote: > > > Enable STRICT_KERNEL_RWX for PPC64/BOOK3S > > > > These patches enable RX mappings of kernel text. > > rodata is mapped RX as well as a trade-off, there > > are more details in the patch description > > > > As a prerequisite for R/O text, patch_instruction > > is moved over to using a separate mapping that > > allows write to kernel text. xmon/ftrace/kprobes > > have been moved over to work with patch_instruction > > > > I think optprobes needs to be moved over as well. > I did not realize we have the optprobe_trampoline in > text (yikes!!)
Ah, you noticed. Yes, this is a product of the limited range we have for immediate branches. - Naveen