[PATCH v1 0/8] Enable STRICT_KERNEL_RWX

Naveen N. Rao naveen.n.rao at linux.vnet.ibm.com
Wed May 31 00:32:46 AEST 2017


On 2017/05/25 04:57PM, Balbir Singh wrote:
> On Thu, 25 May 2017 13:36:42 +1000
> Balbir Singh <bsingharora at 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



More information about the Linuxppc-dev mailing list