[RFC 0/2] Consolidate patch_instruction
LEROY Christophe
christophe.leroy at c-s.fr
Wed May 17 06:20:15 AEST 2017
Balbir Singh <bsingharora at gmail.com> a écrit :
> patch_instruction is enhanced in this RFC to support
> patching via a different virtual address (text_poke_area).
> The mapping of text_poke_area->addr is RW and not RWX.
> This way the mapping allows write for patching and then we tear
> down the mapping. The downside is that we introduce a spinlock
> which serializes our patching to one patch at a time.
Very nice patch, would fit great with my patch for impmementing
CONFIG_DEBUG_RODATA (https://patchwork.ozlabs.org/patch/754289 ).
Would avoid having to set the text area back to RW for patching
Christophe
>
> In this patchset we also consolidate instruction changes
> in kprobes to use patch_instruction().
>
> Balbir Singh (2):
> powerpc/lib/code-patching: Enhance code patching
> powerpc/kprobes: Move kprobes over to patch_instruction
>
> arch/powerpc/kernel/kprobes.c | 4 +-
> arch/powerpc/lib/code-patching.c | 88
> ++++++++++++++++++++++++++++++++++++++--
> 2 files changed, 86 insertions(+), 6 deletions(-)
>
> --
> 2.9.3
More information about the Linuxppc-dev
mailing list